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?
|