diff options
author | gorhill <rhill@raymondhill.net> | 2014-08-27 02:01:10 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2014-08-27 02:01:10 -0400 |
commit | 77aae44feeda23d7b13806b640f1e83f440da051 (patch) | |
tree | cc9152dbad87f527e593218ca3f757c033de49f0 /js/pagestore.js | |
parent | ec5dab2c97f1b1a9c7c45cbae24f06fcc5d5e684 (diff) | |
download | uBlock-77aae44feeda23d7b13806b640f1e83f440da051.zip uBlock-77aae44feeda23d7b13806b640f1e83f440da051.tar.gz uBlock-77aae44feeda23d7b13806b640f1e83f440da051.tar.bz2 |
this fixes #185
Diffstat (limited to 'js/pagestore.js')
-rw-r--r-- | js/pagestore.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/pagestore.js b/js/pagestore.js index 1302155..b4afe5b 100644 --- a/js/pagestore.js +++ b/js/pagestore.js @@ -109,7 +109,11 @@ PageStore.prototype.init = function(tabId, pageURL) { this.previousPageURL = ''; this.pageURL = pageURL; this.pageHostname = µb.URI.hostnameFromURI(pageURL); - this.pageDomain = µb.URI.domainFromHostname(this.pageHostname); + + // https://github.com/gorhill/uBlock/issues/185 + // Use hostname if no domain can be extracted + this.pageDomain = µb.URI.domainFromHostname(this.pageHostname) || this.pageHostname; + this.frames = disposeFrameStores(this.frames); this.netFiltering = true; this.netFilteringReadTime = 0; |