mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
can throw when trying to access associatedWindow
This commit is contained in:
parent
2705432f43
commit
f2f653945e
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue