extension: Remove "tabs" permission

This commit is contained in:
Toad06 2023-05-18 13:43:27 +02:00 committed by Adrian Wielgosik
parent 7619594b1c
commit 4092e70bf4
2 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,6 @@
"permissions": [
"<all_urls>",
"storage",
"tabs",
"webRequest",
"webRequestBlocking",
],

View File

@ -54,6 +54,8 @@ async function queryTabStatus(
activeTab = tabs[0]!;
// FIXME: `activeTab.url` returns `undefined` on Chrome as it requires the `tabs`
// permission, which we don't set in `manifest.json5` because of #11098.
const url = activeTab.url ? new URL(activeTab.url) : null;
if (
url &&