mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Exclude chrome: as valid openers for popup candidates
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/2227
This commit is contained in:
parent
9c523f0325
commit
59f4aca010
1 changed files with 6 additions and 8 deletions
|
|
@ -573,14 +573,12 @@ housekeep itself.
|
|||
} catch {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
Array.isArray(openerDetails) === false ||
|
||||
openerDetails.length !== 2 ||
|
||||
openerDetails[1] === null ||
|
||||
openerDetails[1].url === 'about:newtab'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if ( Array.isArray(openerDetails) === false ) { return; }
|
||||
if ( openerDetails.length !== 2 ) { return; }
|
||||
if ( openerDetails[1] === null ) { return; }
|
||||
if ( openerDetails[1].url === 'about:newtab' ) { return; }
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/2227
|
||||
if ( openerDetails[1].url.startsWith('chrome:') ) { return; }
|
||||
popupCandidates.set(
|
||||
tabId,
|
||||
new PopupCandidate(createDetails, openerDetails)
|
||||
|
|
|
|||
Loading…
Reference in a new issue