mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
removed obsolete code following fix to #510
This commit is contained in:
parent
36617ba3f5
commit
5424fcab29
@ -468,7 +468,6 @@ PageStore.factory = function(tabId, pageURL) {
|
|||||||
|
|
||||||
PageStore.prototype.init = function(tabId, pageURL) {
|
PageStore.prototype.init = function(tabId, pageURL) {
|
||||||
this.tabId = tabId;
|
this.tabId = tabId;
|
||||||
this.previousPageURL = '';
|
|
||||||
this.pageURL = pageURL;
|
this.pageURL = pageURL;
|
||||||
this.pageHostname = µb.URI.hostnameFromURI(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
|
// video thumbnail would not work, because the frame hierarchy structure
|
||||||
// was flushed from memory, while not really being flushed on the page.
|
// was flushed from memory, while not really being flushed on the page.
|
||||||
if ( context === 'tabUpdated' ) {
|
if ( context === 'tabUpdated' ) {
|
||||||
this.previousPageURL = this.pageURL;
|
|
||||||
this.pageURL = pageURL;
|
this.pageURL = pageURL;
|
||||||
this.pageHostname = µb.URI.hostnameFromURI(pageURL);
|
this.pageHostname = µb.URI.hostnameFromURI(pageURL);
|
||||||
this.pageDomain = µb.URI.domainFromHostname(this.pageHostname) || this.pageHostname;
|
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.
|
// A new page is completely reloaded from scratch, reset all.
|
||||||
this.disposeFrameStores();
|
this.disposeFrameStores();
|
||||||
this.netFilteringCache = this.netFilteringCache.dispose();
|
this.netFilteringCache = this.netFilteringCache.dispose();
|
||||||
var previousPageURL = this.pageURL;
|
|
||||||
this.init(this.tabId, pageURL);
|
this.init(this.tabId, pageURL);
|
||||||
this.previousPageURL = previousPageURL;
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -546,7 +542,7 @@ PageStore.prototype.dispose = function() {
|
|||||||
// need to release the memory taken by these, which can amount to
|
// need to release the memory taken by these, which can amount to
|
||||||
// sizeable enough chunks (especially requests, through the request URL
|
// sizeable enough chunks (especially requests, through the request URL
|
||||||
// used as a key).
|
// used as a key).
|
||||||
this.pageURL = this.previousPageURL =
|
this.pageURL =
|
||||||
this.pageHostname = this.pageDomain =
|
this.pageHostname = this.pageDomain =
|
||||||
this.rootHostname = this.rootDomain =
|
this.rootHostname = this.rootDomain =
|
||||||
this.requestURL = this.requestHostname = this.requestType = '';
|
this.requestURL = this.requestHostname = this.requestType = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user