Bug 1254865 - Don't send disableglobalhistory state down to browser-child.js in sync message. r=Felipe
authorMike Conley <mconley@mozilla.com>
Wed, 23 Mar 2016 17:27:34 -0400
changeset 290720 f7affb27ef92a63b22e23b4f8703917a0e744cd2
parent 290719 ae25970e4fc50be6e55daae6b28f8330b35a35e6
child 290721 358a4096b0caec9b8f33ca9e387b12888be00b70
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe
bugs1254865
milestone48.0a1
Bug 1254865 - Don't send disableglobalhistory state down to browser-child.js in sync message. r=Felipe MozReview-Commit-ID: 7PRr1ia7VbA
toolkit/content/browser-child.js
toolkit/content/widgets/remote-browser.xml
--- a/toolkit/content/browser-child.js
+++ b/toolkit/content/browser-child.js
@@ -629,13 +629,12 @@ addMessageListener("PermitUnload", msg =
 
 // We may not get any responses to Browser:Init if the browser element
 // is torn down too quickly.
 var outerWindowID = content.QueryInterface(Ci.nsIInterfaceRequestor)
                            .getInterface(Ci.nsIDOMWindowUtils)
                            .outerWindowID;
 var initData = sendSyncMessage("Browser:Init", {outerWindowID: outerWindowID});
 if (initData.length && initData[0]) {
-  docShell.useGlobalHistory = initData[0].useGlobalHistory;
   if (initData[0].initPopup) {
     setTimeout(() => AutoCompletePopup.init(), 0);
   }
 }
--- a/toolkit/content/widgets/remote-browser.xml
+++ b/toolkit/content/widgets/remote-browser.xml
@@ -426,17 +426,16 @@
       <method name="receiveMessage">
         <parameter name="aMessage"/>
         <body><![CDATA[
           let data = aMessage.data;
           switch (aMessage.name) {
             case "Browser:Init":
               this._outerWindowID = data.outerWindowID;
               let result = {};
-              result.useGlobalHistory = !this.hasAttribute("disableglobalhistory");
               result.initPopup = this.autoCompletePopup != null;
               return result;
               break;
             case "DOMTitleChanged":
               this._contentTitle = data.title;
               break;
             case "ImageDocumentLoaded":
               this._imageDocument = {