Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Who knows what is due the following error?
Old 10-21-2010, 07:55 AM Who knows what is due the following error?
Junior Talker

Posts: 1
Name: manbud
Trades: 0
Hi
Who knows what is due the following error?
Can someone correct this code?
This code is a file from the Firefox and Mozilla site does not secure this code!


HTML Code:
unction customizeWebRank(){var parent_window=null;if(opener&&opener.location.href.indexOf("extensions.xul")!=-1){if(opener.opener&&(opener.opener.location.href.indexOf("browser.xul")!=-1)){parent_window=opener.opener;}
else{var window_service=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);parent_window=window_service.getMostRecentWindow("navigator:browser");}}
else{parent_window=opener;}
parent_window.setTimeout(function(parent){parent.WebRankV2.customize(1);},100,parent_window);return true;}



error line :

else{parent_window=opener;}
parent_window.setTimeout(function(parent){parent.W ebRankV2.customize(1);},100,parent_window);return true;}

****************

Security results

Unsafe JavaScript Tests [help]
  • chrome/webrank.jar/content/options.js (8) : Matched Pattern: "/\bsetTimeout\s*\(/" else{parent_window=opener;}
    parent_window.setTimeout(function(parent){parent.W ebRankV2.customize(1);},100,parent_window);return true;}
Who can modify this line to?
heshmat is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Who knows what is due the following error?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08083 seconds with 12 queries