Bug 712761 - Fix returning incorrect object from openURI. r=dougt

This commit is contained in:
Kartikaya Gupta 2011-12-27 00:58:18 -05:00
parent 04636147ad
commit bcd4e87f25

View File

@ -1175,7 +1175,7 @@ nsBrowserAccess.prototype = {
openURI: function browser_openURI(aURI, aOpener, aWhere, aContext) {
let browser = this._getBrowser(aURI, aOpener, aWhere, aContext);
return browser ? browser.QueryInterface(Ci.nsIFrameLoaderOwner) : null;
return browser ? browser.contentWindow : null;
},
openURIInFrame: function browser_openURIInFrame(aURI, aOpener, aWhere, aContext) {