From 623469c5744389c14b81f339b5f45b6d661e151b Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Thu, 12 Feb 2026 12:05:18 +0100 Subject: [PATCH] highlighted check is breaking pwa's; add tabid to block result --- .../src/background/BackgroundMain.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/flutter_mozilla_components/javascript/container_proxy/src/background/BackgroundMain.ts b/packages/flutter_mozilla_components/javascript/container_proxy/src/background/BackgroundMain.ts index 952b1d0c..9b0f6800 100644 --- a/packages/flutter_mozilla_components/javascript/container_proxy/src/background/BackgroundMain.ts +++ b/packages/flutter_mozilla_components/javascript/container_proxy/src/background/BackgroundMain.ts @@ -157,17 +157,15 @@ export default class BackgroundMain { "result": { "originUrl": options.originUrl, "url": options.url, + "tabId": options.tabId, "blocked": false } }); - - return {}; - } else { - //When tab not selected, block the request - return { - cancel: true, - }; } + + // Allow requests when the assigned site already matches the current context, + // even if the tab is not highlighted. + return {}; } else { //Only send events when tab is selected if (tab.highlighted) { @@ -178,6 +176,7 @@ export default class BackgroundMain { "result": { "originUrl": options.originUrl, "url": options.url, + "tabId": options.tabId, "blocked": true } });