Bug 1254865 - Set disableglobalhistory on the thumbnail browser. r=Felipe
authorMike Conley <mconley@mozilla.com>
Thu, 24 Mar 2016 16:18:25 -0400
changeset 290723 2c8a3acfb48c772cfc2f0417738590bc607ce110
parent 290722 f2b8bb605d416b7f396295aec3b5f3703d1272ac
child 290724 2f55fe267f0a232585e269aa29099ab664c074f8
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 - Set disableglobalhistory on the thumbnail browser. r=Felipe MozReview-Commit-ID: 9SXEAo0H0ko
toolkit/components/thumbnails/BackgroundPageThumbs.jsm
--- a/toolkit/components/thumbnails/BackgroundPageThumbs.jsm
+++ b/toolkit/components/thumbnails/BackgroundPageThumbs.jsm
@@ -166,16 +166,17 @@ const BackgroundPageThumbs = {
    */
   _ensureBrowser: function () {
     if (this._thumbBrowser)
       return;
 
     let browser = this._parentWin.document.createElementNS(XUL_NS, "browser");
     browser.setAttribute("type", "content");
     browser.setAttribute("remote", "true");
+    browser.setAttribute("disableglobalhistory", "true");
 
     // Size the browser.  Make its aspect ratio the same as the canvases' that
     // the thumbnails are drawn into; the canvases' aspect ratio is the same as
     // the screen's, so use that.  Aim for a size in the ballpark of 1024x768.
     let [swidth, sheight] = [{}, {}];
     Cc["@mozilla.org/gfx/screenmanager;1"].
       getService(Ci.nsIScreenManager).
       primaryScreen.