aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-03-22 09:30:41 -0400
committergorhill <rhill@raymondhill.net>2015-03-22 09:30:50 -0400
commit53b55a6b13ede2acc3c5d034f5235b42a33724a0 (patch)
treed9b51d1728d6a17d53c80bed16d89d48e06f3ec8 /src/js
parente750e99ffa527ec75e0618d1da37006977c21382 (diff)
downloaduBlock-53b55a6b13ede2acc3c5d034f5235b42a33724a0.zip
uBlock-53b55a6b13ede2acc3c5d034f5235b42a33724a0.tar.gz
uBlock-53b55a6b13ede2acc3c5d034f5235b42a33724a0.tar.bz2
oops: forgot about why we can't do this. Will leave the commented out code in there as a reminder.
Diffstat (limited to 'src/js')
-rw-r--r--src/js/pagestore.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/pagestore.js b/src/js/pagestore.js
index ced62ce..c24c8ae 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