aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-03-20 16:34:01 -0400
committergorhill <rhill@raymondhill.net>2015-03-20 16:34:01 -0400
commit5424fcab29818e225070c825cb0a19438f0883d3 (patch)
treef5becf3bb659720e31543d7cb3fef518fc8aa8fc /src/js
parent36617ba3f51f00163eb21a93e8d770bc890683b8 (diff)
downloaduBlock-5424fcab29818e225070c825cb0a19438f0883d3.zip
uBlock-5424fcab29818e225070c825cb0a19438f0883d3.tar.gz
uBlock-5424fcab29818e225070c825cb0a19438f0883d3.tar.bz2
removed obsolete code following fix to #510
Diffstat (limited to 'src/js')
-rw-r--r--src/js/pagestore.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/js/pagestore.js b/src/js/pagestore.js
index 35f8bd5..86dabac 100644
--- a/src/js/pagestore.js
+++ b/src/js/pagestore.js
@@ -468,7 +468,6 @@ PageStore.factory = function(tabId, pageURL) {
PageStore.prototype.init = function(tabId, pageURL) {
this.tabId = tabId;
- this.previousPageURL = '';
this.pageURL = pageURL;
this.pageHostname = µb.URI.hostnameFromURI(pageURL);
@@ -515,7 +514,6 @@ PageStore.prototype.reuse = function(pageURL, context) {
// video thumbnail would not work, because the frame hierarchy structure
// was flushed from memory, while not really being flushed on the page.
if ( context === 'tabUpdated' ) {
- this.previousPageURL = this.pageURL;
this.pageURL = pageURL;
this.pageHostname = µb.URI.hostnameFromURI(pageURL);
this.pageDomain = µb.URI.domainFromHostname(this.pageHostname) || this.pageHostname;
@@ -531,9 +529,7 @@ PageStore.prototype.reuse = function(pageURL, context) {
// A new page is completely reloaded from scratch, reset all.
this.disposeFrameStores();
this.netFilteringCache = this.netFilteringCache.dispose();
- var previousPageURL = this.pageURL;
this.init(this.tabId, pageURL);
- this.previousPageURL = previousPageURL;
return this;
};
@@ -546,7 +542,7 @@ PageStore.prototype.dispose = function() {
// need to release the memory taken by these, which can amount to
// sizeable enough chunks (especially requests, through the request URL
// used as a key).
- this.pageURL = this.previousPageURL =
+ this.pageURL =
this.pageHostname = this.pageDomain =
this.rootHostname = this.rootDomain =
this.requestURL = this.requestHostname = this.requestType = '';