mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
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:
parent
05c975f918
commit
4b5c25405f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user