mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
this may fix #450
This commit is contained in:
parent
7a3fb2273e
commit
7a00310934
1 changed files with 4 additions and 1 deletions
|
@ -1803,11 +1803,14 @@ vAPI.net.registerListeners = function() {
|
|||
var URI = browser.currentURI;
|
||||
|
||||
// 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
|
||||
// believe this may have to do with those very temporary
|
||||
// browser objects created when opening a new tab, i.e. related
|
||||
// to https://github.com/gorhill/uBlock/issues/212
|
||||
if ( URI && URI.spec !== details.openerURL ) {
|
||||
if ( !URI || URI.spec !== details.openerURL ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue