Bug 712761 - Fix returning incorrect object from openURI. r=dougt
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 27 Dec 2011 00:58:18 -0500
changeset 83588 8f2f34d9057944dad72239cc12036633aa9ebc1f
parent 83587 a579327de2c2afcd11676ac4bc226b45b8deeaa8
child 83589 495160d5047a9cc963548057c6d7af31fcbe0f9b
push idunknown
push userunknown
push dateunknown
reviewersdougt
bugs712761
milestone12.0a1
Bug 712761 - Fix returning incorrect object from openURI. r=dougt
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1170,17 +1170,17 @@ nsBrowserAccess.prototype = {
       }
     } catch(e) { }
 
     return browser;
   },
 
   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) {
     let browser = this._getBrowser(aURI, aOpener, aWhere, aContext);
     return browser ? browser.QueryInterface(Ci.nsIFrameLoaderOwner) : null;
   },
 
   isTabContentWindow: function(aWindow) {