extension: Remove "tabs" permission
This commit is contained in:
parent
7619594b1c
commit
4092e70bf4
|
@ -45,7 +45,6 @@
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"<all_urls>",
|
"<all_urls>",
|
||||||
"storage",
|
"storage",
|
||||||
"tabs",
|
|
||||||
"webRequest",
|
"webRequest",
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
],
|
],
|
||||||
|
|
|
@ -54,6 +54,8 @@ async function queryTabStatus(
|
||||||
|
|
||||||
activeTab = tabs[0]!;
|
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;
|
const url = activeTab.url ? new URL(activeTab.url) : null;
|
||||||
if (
|
if (
|
||||||
url &&
|
url &&
|
||||||
|
|
Loading…
Reference in New Issue