mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
this may fix #450
This commit is contained in:
parent
7a3fb2273e
commit
7a00310934
@ -1803,11 +1803,14 @@ vAPI.net.registerListeners = function() {
|
|||||||
var URI = browser.currentURI;
|
var URI = browser.currentURI;
|
||||||
|
|
||||||
// Probably isn't the best method to identify the source tab.
|
// Probably isn't the best method to identify the source tab.
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/450
|
||||||
|
// Skip entry if no valid URI available.
|
||||||
// Apparently URI can be undefined under some circumstances: I
|
// Apparently URI can be undefined under some circumstances: I
|
||||||
// believe this may have to do with those very temporary
|
// believe this may have to do with those very temporary
|
||||||
// browser objects created when opening a new tab, i.e. related
|
// browser objects created when opening a new tab, i.e. related
|
||||||
// to https://github.com/gorhill/uBlock/issues/212
|
// to https://github.com/gorhill/uBlock/issues/212
|
||||||
if ( URI && URI.spec !== details.openerURL ) {
|
if ( !URI || URI.spec !== details.openerURL ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user