mirror of https://github.com/gorhill/uBlock.git
can throw when trying to access `associatedWindow`
This commit is contained in:
parent
2705432f43
commit
f2f653945e
|
@ -1936,7 +1936,10 @@ var httpObserver = {
|
|||
if ( lc.topFrameElement ) {
|
||||
return tabWatcher.tabIdFromTarget(lc.topFrameElement);
|
||||
}
|
||||
var win = lc.associatedWindow;
|
||||
var win;
|
||||
try {
|
||||
win = lc.associatedWindow;
|
||||
} catch (ex) { }
|
||||
if ( !win ) { return vAPI.noTabId; }
|
||||
if ( win.top ) {
|
||||
win = win.top;
|
||||
|
|
Loading…
Reference in New Issue