From 27931bf76f95288b07f92b89d8c99067813bb8bf Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Thu, 27 Jul 2023 15:41:51 +0100 Subject: [PATCH] Reduce permissions requested and make manifest permissions similar between Firefox and Chrome (#18) Fixes #17 --- chrome/manifest.json | 3 +-- firefox/manifest.json | 3 +-- shared/src/background.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/chrome/manifest.json b/chrome/manifest.json index 83861cb..8641b7c 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Kagi Search for Chrome", - "version": "0.3.2", + "version": "0.3.3", "description": "A simple extension for setting Kagi as a default search engine, and automatically logging in to Kagi in incognito browsing windows", "background": { "service_worker": "src/background.js", @@ -22,7 +22,6 @@ "activeTab", "declarativeNetRequestWithHostAccess", "webRequest", - "webRequestBlocking", "cookies", "storage" ], diff --git a/firefox/manifest.json b/firefox/manifest.json index 3ec45cd..7a1e45a 100644 --- a/firefox/manifest.json +++ b/firefox/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Kagi Search for Firefox", - "version": "0.3.2", + "version": "0.3.3", "description": "A simple helper extension for setting Kagi as a default search engine, and automatically logging in to Kagi in incognito browsing windows.", "background": { "page": "src/background_page.html" @@ -21,7 +21,6 @@ "activeTab", "declarativeNetRequestWithHostAccess", "webRequest", - "webRequestBlocking", "cookies", "storage" ], diff --git a/shared/src/background.js b/shared/src/background.js index e56e721..f911f55 100644 --- a/shared/src/background.js +++ b/shared/src/background.js @@ -123,7 +123,7 @@ async function checkForSession() { browser.webRequest.onBeforeRequest.addListener( checkForSession, { urls: ['https://kagi.com/*'] }, - IS_CHROME ? [] : ['blocking'], + [], ); browser.runtime.onMessage.addListener(async (data) => {