Exclude `chrome:` as valid openers for popup candidates · gorhill/uBlock@59f4aca · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit 59f4aca

Browse files
committed
Exclude chrome: as valid openers for popup candidates
Related issue: uBlockOrigin/uBlock-issues#2227
1 parent 9c523f0 commit 59f4aca

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/js/tab.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -573,14 +573,12 @@ housekeep itself.
573573
} catch {
574574
return;
575575
}
576-
if (
577-
Array.isArray(openerDetails) === false ||
578-
openerDetails.length !== 2 ||
579-
openerDetails[1] === null ||
580-
openerDetails[1].url === 'about:newtab'
581-
) {
582-
return;
583-
}
576+
if ( Array.isArray(openerDetails) === false ) { return; }
577+
if ( openerDetails.length !== 2 ) { return; }
578+
if ( openerDetails[1] === null ) { return; }
579+
if ( openerDetails[1].url === 'about:newtab' ) { return; }
580+
// https://github.com/uBlockOrigin/uBlock-issues/issues/2227
581+
if ( openerDetails[1].url.startsWith('chrome:') ) { return; }
584582
popupCandidates.set(
585583
tabId,
586584
new PopupCandidate(createDetails, openerDetails)

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.