From b70f8b5a51235646fa1bb0c0e14cfe3eed15e450 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Tue, 27 Dec 2011 00:58:18 -0500 Subject: [PATCH] Bug 712761 - Fix returning incorrect object from openURI. r=dougt --- mobile/android/chrome/content/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 83865569014..f13d9882c9e 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -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) {