mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-26 12:22:50 +01:00
This commit is contained in:
parent
bccd926a09
commit
47dfb1b22c
@ -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 New Issue
Block a user