Bug 630145 Regression: History not saved r=mfinkle
authorBenjamin Stover <bstover@mozilla.com>
Mon, 31 Jan 2011 10:57:03 -0800
changeset 67334 ec7e1eebc28187d47999502769f37bc2f9853d1e
parent 67333 24caf4b44e11f88f042a35e77e870164e29e022e
child 67335 c331861c7b138af315ff492e3ef56cd28af261f8
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs630145
Bug 630145 Regression: History not saved r=mfinkle
mobile/chrome/content/content.js
--- a/mobile/chrome/content/content.js
+++ b/mobile/chrome/content/content.js
@@ -248,16 +248,18 @@ let Content = {
       addEventListener("DOMActivate", this, true);
 
     addEventListener("MozApplicationManifest", this, false);
     addEventListener("command", this, false);
     addEventListener("pagehide", this, false);
     addEventListener("keypress", this, false, false);
 
     this._formAssistant = new FormAssistant();
+
+    docShell.QueryInterface(Ci.nsIDocShellHistory).useGlobalHistory = true;
   },
 
   handleEvent: function handleEvent(aEvent) {
     switch (aEvent.type) {
       // If the keypress is a trusted event and has not been consume by content
       // let's send it back to the chrome process to have it handle shortcuts
       case "keypress":
         let timer = new Util.Timeout(function() {