From 0243a141a762df5ea325ce71b53f0cce3e6a3ee8 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 23 Apr 2025 09:34:00 -0400 Subject: [PATCH] Ignore `start_page` transition for popup-blocking purpose Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/2227 --- platform/chromium/vapi-background-ext.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/chromium/vapi-background-ext.js b/platform/chromium/vapi-background-ext.js index 17526ba9c..193b7fe6f 100644 --- a/platform/chromium/vapi-background-ext.js +++ b/platform/chromium/vapi-background-ext.js @@ -26,6 +26,8 @@ // so we synthetize these missing events when this happens. // https://github.com/uBlockOrigin/uAssets/issues/10323 // Also mind whether the new tab is launched from an external application. +// https://github.com/uBlockOrigin/uBlock-issues/issues/2227 +// Revert commit related to issue above. vAPI.Tabs = class extends vAPI.Tabs { constructor() { @@ -66,8 +68,7 @@ vAPI.Tabs = class extends vAPI.Tabs { const isClientRedirect = Array.isArray(details.transitionQualifiers) && details.transitionQualifiers.includes('client_redirect'); - const isStartPage = details.transitionType === 'start_page'; - if ( isClientRedirect === false && isStartPage === false ) { return; } + if ( isClientRedirect === false ) { return; } this.onCreatedNavigationTargetHandler({ tabId: details.tabId, sourceTabId: details.tabId,