aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-01-24 12:34:36 -0500
committergorhill <rhill@raymondhill.net>2015-01-24 12:34:36 -0500
commit42db160b93f3a1b812f94bad8d59f027dac75549 (patch)
treefff401f730e5f2cfcf141bb7e97f2747897ec985 /src
parent8dcc99437112fb792cfa099e00059805e62fb0d7 (diff)
downloaduBlock-42db160b93f3a1b812f94bad8d59f027dac75549.zip
uBlock-42db160b93f3a1b812f94bad8d59f027dac75549.tar.gz
uBlock-42db160b93f3a1b812f94bad8d59f027dac75549.tar.bz2
forgot about reload: always rebind
Diffstat (limited to 'src')
-rw-r--r--src/js/tab.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/tab.js b/src/js/tab.js
index f0e6cde..ad167b5 100644
--- a/src/js/tab.js
+++ b/src/js/tab.js
@@ -171,10 +171,10 @@ vAPI.tabs.registerListeners();
return pageStore;
}
- // Rebind according to context
- if ( pageURL !== pageStore.pageURL ) {
- pageStore.reuse(pageURL, context);
- }
+ // Rebind according to context. We rebind even if the URL did not change,
+ // as maybe the tab was force-reloaded, in which case the page stats must
+ // be all reset.
+ pageStore.reuse(pageURL, context);
return pageStore;
};