Session history back debugging draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Wed, 04 May 2016 19:44:23 -0500
changeset 375855 580e16cf701869f16e6ab5b0f735ace37160fdcc
parent 375854 e83de1952158493db7e7bd7fd6e3704c0e81edd4
child 375856 6e29163512d2e56e9cbe016ee1c88504f86e2d9f
push id20402
push userbmo:jryans@gmail.com
push dateMon, 06 Jun 2016 20:31:20 +0000
milestone49.0a1
Session history back debugging MozReview-Commit-ID: 73z4Boqa6PY
toolkit/content/browser-child.js
--- a/toolkit/content/browser-child.js
+++ b/toolkit/content/browser-child.js
@@ -284,16 +284,19 @@ var WebNavigation =  {
       fn();
     } finally {
       this._inLoadURI = false;
       WebProgressListener.sendLoadCallResult();
     }
   },
 
   goBack: function() {
+    dump(`Trying to go back...\n`)
+    let history = this.webNavigation.sessionHistory.QueryInterface(Ci.nsISHistoryInternal);
+    dump(`History count: ${history.count}\n`)
     if (this.webNavigation.canGoBack) {
       this._wrapURIChangeCall(() => this.webNavigation.goBack());
     }
   },
 
   goForward: function() {
     if (this.webNavigation.canGoForward) {
       this._wrapURIChangeCall(() => this.webNavigation.goForward());