mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
This commit is contained in:
parent
bccd926a09
commit
47dfb1b22c
@ -680,6 +680,12 @@ var winWatcher = (function() {
|
|||||||
if ( !win || windowToIdMap.delete(win) !== true ) {
|
if ( !win || windowToIdMap.delete(win) !== true ) {
|
||||||
return;
|
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' ) {
|
if ( typeof api.onCloseWindow === 'function' ) {
|
||||||
api.onCloseWindow(win);
|
api.onCloseWindow(win);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user