From 53b55a6b13ede2acc3c5d034f5235b42a33724a0 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 22 Mar 2015 09:30:41 -0400 Subject: [PATCH] oops: forgot about why we can't do this. Will leave the commented out code in there as a reminder. --- src/js/pagestore.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/pagestore.js b/src/js/pagestore.js index ced62ce1a..c24c8aee5 100644 --- a/src/js/pagestore.js +++ b/src/js/pagestore.js @@ -508,11 +508,11 @@ PageStore.prototype.init = function(tabId, pageURL) { /******************************************************************************/ PageStore.prototype.reuse = function(pageURL, context) { - // This can very well happen under normal circumstances. Leave the context - // unchanged when this happens. - if ( pageURL === this.pageURL ) { - return this; - } + // We can't do this: when force refreshing a page, the page store data + // needs to be reset + //if ( pageURL === this.pageURL ) { + // return this; + //} // If URL changes without a page reload (more and more common), then we // need to keep all that we collected for reuse. In particular, not