tabbrowser updateBrowserRemoteness debugging draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 19 Apr 2016 17:52:02 -0500
changeset 375851 ee7e0420e6f75cd28d54b20ba91bfaa82d8c4303
parent 375850 23bf52e94e9beaab8aad1539c55b3812c46c5899
child 375852 0102ecc77b008ea25f7a988da897c4a56bbeeb90
push id20402
push userbmo:jryans@gmail.com
push dateMon, 06 Jun 2016 20:31:20 +0000
milestone49.0a1
tabbrowser updateBrowserRemoteness debugging MozReview-Commit-ID: EZ0vZLR7T6I
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -1546,19 +1546,22 @@
         ]]></body>
       </method>
 
       <method name="updateBrowserRemoteness">
         <parameter name="aBrowser"/>
         <parameter name="aShouldBeRemote"/>
         <body>
           <![CDATA[
+            dump(`Enter updateBrowserRemoteness, should be ${aShouldBeRemote}\n`);
             let isRemote = aBrowser.getAttribute("remote") == "true";
-            if (isRemote == aShouldBeRemote)
+            if (isRemote == aShouldBeRemote) {
+              dump(`Abort, remoteness already set to ${aShouldBeRemote}\n`);
               return false;
+            }
 
             let wasActive = document.activeElement == aBrowser;
 
             // Unmap the old outerWindowID.
             this._outerWindowIDBrowserMap.delete(aBrowser.outerWindowID);
 
             // Unhook our progress listener.
             let tab = this.getTabForBrowser(aBrowser);