Bug 712761 - Fix returning incorrect object from openURI. r=dougt
☠☠ backed out by b58836d3fa78 ☠ ☠
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 27 Dec 2011 00:58:18 -0500
changeset 84599 3b1e6033d3ff1697a64534a203eaa556a7a50d7e
parent 84598 bb41941cdf9dc5fb1ae30dd179dbf43a81a98684
child 84600 284800b71c20173e70bf33c19099fc217f5efffd
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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
@@ -1080,17 +1080,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) {