From 1c7b7e435edb29fbd2e6a2863bcabeafd2129046 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 8 Oct 2025 13:50:26 -0400 Subject: [PATCH] [mv3] Improve troubleshooting information --- platform/mv3/extension/js/background.js | 6 ++++++ platform/mv3/extension/js/troubleshooting.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/platform/mv3/extension/js/background.js b/platform/mv3/extension/js/background.js index 06e30a30f..1036e633b 100644 --- a/platform/mv3/extension/js/background.js +++ b/platform/mv3/extension/js/background.js @@ -337,6 +337,12 @@ function onMessage(request, sender, callback) { }); return true; + case 'hasBroadHostPermissions': + hasBroadHostPermissions().then(result => { + callback(result); + }); + return true; + case 'setAutoReload': rulesetConfig.autoReload = request.state && true || false; saveRulesetConfig().then(( ) => { diff --git a/platform/mv3/extension/js/troubleshooting.js b/platform/mv3/extension/js/troubleshooting.js index 58a1a0387..1ce949490 100644 --- a/platform/mv3/extension/js/troubleshooting.js +++ b/platform/mv3/extension/js/troubleshooting.js @@ -58,6 +58,7 @@ export async function getTroubleshootingInfo(siteMode) { defaultMode, userRules, consoleOutput, + hasOmnipotence, ] = await Promise.all([ runtime.getPlatformInfo(), sendMessage({ what: 'getDefaultConfig' }), @@ -65,6 +66,7 @@ export async function getTroubleshootingInfo(siteMode) { sendMessage({ what: 'getDefaultFilteringMode' }), sendMessage({ what: 'getEffectiveUserRules' }), sendMessage({ what: 'getConsoleOutput' }), + sendMessage({ what: 'hasBroadHostPermissions' }), ]); const browser = (( ) => { const extURL = runtime.getURL(''); @@ -103,6 +105,7 @@ export async function getTroubleshootingInfo(siteMode) { version: manifest.version, browser, filtering, + permission: hasOmnipotence ? 'all' : 'ask', }; if ( userRules.length !== 0 ) { config['user rules'] = userRules.length;