Bug 410008 - "urlbar binding should be using |this| rather than |gURLBar|" [p=dao@mozilla.com (Dão Gottwald) r=Mano a1.9=mconnor]

This commit is contained in:
reed@reedloden.com 2007-12-28 19:17:07 -08:00
parent 05c975f918
commit 4b5c25405f

View File

@ -146,14 +146,15 @@
if (url) {
nsDragAndDrop.dragDropSecurityCheck(aEvent, aDragSession, url);
this.value = url;
try {
gURLBar.value = url;
const nsIScriptSecMan = Components.interfaces.nsIScriptSecurityManager;
urlSecurityCheck(gURLBar.value,
urlSecurityCheck(this.value,
gBrowser.contentPrincipal,
nsIScriptSecMan.DISALLOW_INHERIT_PRINCIPAL);
handleURLBarCommand();
} catch (ex) {}
Ci.nsIScriptSecurityManager.DISALLOW_INHERIT_PRINCIPAL);
} catch (ex) {
return;
}
handleURLBarCommand();
}
]]></body>
</method>