From 27f3af80bdc71c141e92aa48787326ae59b71f68 Mon Sep 17 00:00:00 2001 From: Pedro Figueiredo Date: Wed, 29 Mar 2023 20:11:08 +0100 Subject: [PATCH] Revert "Fix(18190): add tabs to permission when initializing app (#18218)" (#18336) This reverts commit 1eb102fd964952d5d2b9a53070b0c868cbfe59bd. --- app/manifest/v2/_base.json | 14 ++++++++++++++ app/manifest/v2/chrome.json | 16 +--------------- app/manifest/v2/firefox.json | 17 +---------------- app/manifest/v3/_base.json | 10 ++++++++++ app/manifest/v3/chrome.json | 16 +--------------- app/manifest/v3/firefox.json | 17 +---------------- 6 files changed, 28 insertions(+), 62 deletions(-) diff --git a/app/manifest/v2/_base.json b/app/manifest/v2/_base.json index 39b289197..f962de618 100644 --- a/app/manifest/v2/_base.json +++ b/app/manifest/v2/_base.json @@ -60,5 +60,19 @@ }, "manifest_version": 2, "name": "__MSG_appName__", + "permissions": [ + "storage", + "unlimitedStorage", + "clipboardWrite", + "http://localhost:8545/", + "https://*.infura.io/", + "https://*.codefi.network/", + "https://chainid.network/chains.json", + "https://lattice.gridplus.io/*", + "activeTab", + "webRequest", + "*://*.eth/", + "notifications" + ], "short_name": "__MSG_appName__" } diff --git a/app/manifest/v2/chrome.json b/app/manifest/v2/chrome.json index 9c0e95ec5..a152130d8 100644 --- a/app/manifest/v2/chrome.json +++ b/app/manifest/v2/chrome.json @@ -4,19 +4,5 @@ "matches": ["https://metamask.io/*"], "ids": ["*"] }, - "minimum_chrome_version": "80", - "permissions": [ - "storage", - "unlimitedStorage", - "clipboardWrite", - "http://localhost:8545/", - "https://*.infura.io/", - "https://*.codefi.network/", - "https://chainid.network/chains.json", - "https://lattice.gridplus.io/*", - "activeTab", - "webRequest", - "*://*.eth/", - "notifications" - ] + "minimum_chrome_version": "80" } diff --git a/app/manifest/v2/firefox.json b/app/manifest/v2/firefox.json index 5adf04713..d50b26a27 100644 --- a/app/manifest/v2/firefox.json +++ b/app/manifest/v2/firefox.json @@ -4,20 +4,5 @@ "id": "webextension@metamask.io", "strict_min_version": "78.0" } - }, - "permissions": [ - "storage", - "unlimitedStorage", - "clipboardWrite", - "http://localhost:8545/", - "https://*.infura.io/", - "https://*.codefi.network/", - "https://chainid.network/chains.json", - "https://lattice.gridplus.io/*", - "activeTab", - "tabs", - "webRequest", - "*://*.eth/", - "notifications" - ] + } } diff --git a/app/manifest/v3/_base.json b/app/manifest/v3/_base.json index 3beeb7379..1b9456fd8 100644 --- a/app/manifest/v3/_base.json +++ b/app/manifest/v3/_base.json @@ -65,5 +65,15 @@ }, "manifest_version": 3, "name": "__MSG_appName__", + "permissions": [ + "activeTab", + "alarms", + "clipboardWrite", + "notifications", + "scripting", + "storage", + "unlimitedStorage", + "webRequest" + ], "short_name": "__MSG_appName__" } diff --git a/app/manifest/v3/chrome.json b/app/manifest/v3/chrome.json index dbb0ee22c..486692539 100644 --- a/app/manifest/v3/chrome.json +++ b/app/manifest/v3/chrome.json @@ -6,19 +6,5 @@ "matches": ["https://metamask.io/*"], "ids": ["*"] }, - "minimum_chrome_version": "80", - "permissions": [ - "storage", - "unlimitedStorage", - "clipboardWrite", - "http://localhost:8545/", - "https://*.infura.io/", - "https://*.codefi.network/", - "https://chainid.network/chains.json", - "https://lattice.gridplus.io/*", - "activeTab", - "webRequest", - "*://*.eth/", - "notifications" - ] + "minimum_chrome_version": "80" } diff --git a/app/manifest/v3/firefox.json b/app/manifest/v3/firefox.json index 67ecf7b09..5f0e5672f 100644 --- a/app/manifest/v3/firefox.json +++ b/app/manifest/v3/firefox.json @@ -22,20 +22,5 @@ "default_title": "MetaMask", "default_popup": "popup.html" }, - "manifest_version": 2, - "permissions": [ - "storage", - "unlimitedStorage", - "clipboardWrite", - "http://localhost:8545/", - "https://*.infura.io/", - "https://*.codefi.network/", - "https://chainid.network/chains.json", - "https://lattice.gridplus.io/*", - "tabs", - "activeTab", - "webRequest", - "*://*.eth/", - "notifications" - ] + "manifest_version": 2 }