mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
bug 311208 fix url/uri confusion in go button onDrop; r=mconnor, a=asa
This commit is contained in:
parent
cf0ad6df47
commit
d4b0212fa1
@ -2677,13 +2677,13 @@ var goButtonObserver = {
|
||||
var xferData = aXferData.data.split("\n");
|
||||
var url = xferData[0] ? xferData[0] : xferData[1];
|
||||
try {
|
||||
getBrowser().dragDropSecurityCheck(aEvent, aDragSession, url);
|
||||
var uri = makeURI(url);
|
||||
getBrowser().dragDropSecurityCheck(aEvent, aDragSession, uri);
|
||||
const secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"]
|
||||
.getService(Components.interfaces.nsIScriptSecurityManager);
|
||||
const nsIScriptSecMan = Components.interfaces.nsIScriptSecurityManager;
|
||||
secMan.checkLoadURI(gBrowser.currentURI, uri, nsIScriptSecMan.DISALLOW_SCRIPT_OR_DATA);
|
||||
loadURI(uri, null, null);
|
||||
loadURI(uri.spec, null, null);
|
||||
} catch (ex) {}
|
||||
},
|
||||
getSupportedFlavours: function ()
|
||||
|
Loading…
Reference in New Issue
Block a user