mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
This commit is contained in:
parent
bccd926a09
commit
47dfb1b22c
1 changed files with 6 additions and 0 deletions
|
|
@ -680,6 +680,12 @@ var winWatcher = (function() {
|
|||
if ( !win || windowToIdMap.delete(win) !== true ) {
|
||||
return;
|
||||
}
|
||||
// https://github.com/uBlockOrigin/uAssets/issues/567
|
||||
// We need to cleanup if and only if the window being closed is
|
||||
// the actual top window.
|
||||
if ( win.gBrowser && win.gBrowser.ownerGlobal !== win ) {
|
||||
return;
|
||||
}
|
||||
if ( typeof api.onCloseWindow === 'function' ) {
|
||||
api.onCloseWindow(win);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue