mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
revert fix for #1028: can't be fixed without bad side effects
This commit is contained in:
parent
0777602a85
commit
02014f915e
@ -696,7 +696,7 @@ vAPI.tabs.onPopupUpdated = (function() {
|
|||||||
// Log only for when there was a hit against an actual filter (allow or block).
|
// Log only for when there was a hit against an actual filter (allow or block).
|
||||||
if ( µb.logger.isEnabled() ) {
|
if ( µb.logger.isEnabled() ) {
|
||||||
µb.logger.writeOne(
|
µb.logger.writeOne(
|
||||||
openerTabId,
|
popupType === 'popup' ? openerTabId : targetTabId,
|
||||||
'net',
|
'net',
|
||||||
result,
|
result,
|
||||||
popupType,
|
popupType,
|
||||||
@ -725,11 +725,12 @@ vAPI.tabs.onPopupUpdated = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// It is a popup, block and remove the tab.
|
// It is a popup, block and remove the tab.
|
||||||
µb.unbindTabFromPageStats(targetTabId);
|
if ( popupType === 'popup' ) {
|
||||||
|
µb.unbindTabFromPageStats(targetTabId);
|
||||||
vAPI.tabs.remove(targetTabId, true);
|
vAPI.tabs.remove(targetTabId, true);
|
||||||
if ( popupType === 'popunder' ) {
|
} else {
|
||||||
vAPI.tabs.replace(openerTabId, targetURL);
|
µb.unbindTabFromPageStats(openerTabId);
|
||||||
|
vAPI.tabs.remove(openerTabId, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user