1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-26 12:22:50 +01:00
gorhill 2017-07-22 16:57:29 -04:00
parent bccd926a09
commit 47dfb1b22c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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);
}