Bug 946779 - Disable history in the hidden reader <browser> element r=lucasr
authorMark Finkle <mfinkle@mozilla.com>
Thu, 05 Dec 2013 12:08:55 -0500
changeset 174654 2ae327cecde61451d52afac42824674489a98924
parent 174653 fbc58d273b9c92e6b5e72795dbfe12a272bfd86c
child 174655 8cc62acf53a5dd31bfc5a886da808015979f304c
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr
bugs946779
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 946779 - Disable history in the hidden reader <browser> element r=lucasr
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -7734,16 +7734,17 @@ let Reader = {
   _downloadDocument: function Reader_downloadDocument(url, callback) {
     // We want to parse those arbitrary pages safely, outside the privileged
     // context of chrome. We create a hidden browser element to fetch the
     // loaded page's document object then discard the browser element.
 
     let browser = document.createElement("browser");
     browser.setAttribute("type", "content");
     browser.setAttribute("collapsed", "true");
+    browser.setAttribute("disablehistory", "true");
 
     document.documentElement.appendChild(browser);
     browser.stop();
 
     browser.webNavigation.allowAuth = false;
     browser.webNavigation.allowImages = false;
     browser.webNavigation.allowJavascript = false;
     browser.webNavigation.allowMetaRedirects = true;