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 7f85e8a8e4
commit b70f8b5a51

View File

@ -1085,7 +1085,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) {