From c2a7e5223ba8463535bcf79552a98045bb6da233 Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 28 Aug 2022 19:07:45 +0100 Subject: [PATCH] chore(manifest): Upgrade to v3 Not sure if it is correct, security policy likely isn't. --- manifest/chrome.json | 14 ++++++++------ manifest/firefox.json | 9 ++++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/manifest/chrome.json b/manifest/chrome.json index d45fc22c..f58181d0 100644 --- a/manifest/chrome.json +++ b/manifest/chrome.json @@ -1,12 +1,12 @@ { - "manifest_version": 2, + "manifest_version": 3, "offline_enabled": true, "default_locale": "en", "name": "__MSG_name__", "description": "__MSG_description__", "version": "7.0.0", "homepage_url": "https://muetab.com", - "browser_action": { + "action": { "default_icon": "icons/128x128.png" }, "chrome_url_overrides": { @@ -17,9 +17,11 @@ "48": "icons/48x48.png", "128": "icons/128x128.png" }, - "content_security_policy": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'", + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'", + "sandbox": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'" + }, "background": { - "persistent": false, - "scripts": ["background-chrome.js"] + "service_worker": "background-chrome.js" } -} +} \ No newline at end of file diff --git a/manifest/firefox.json b/manifest/firefox.json index c378e150..a2d0c0ac 100644 --- a/manifest/firefox.json +++ b/manifest/firefox.json @@ -1,10 +1,10 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "Mue", "description": "Fast, open and free-to-use new tab page for modern browsers.", "version": "7.0.0", "homepage_url": "https://muetab.com", - "browser_action": { + "action": { "default_icon": "icons/128x128.png" }, "chrome_url_overrides": { @@ -18,5 +18,8 @@ "chrome_settings_overrides": { "homepage": "index.html" }, - "content_security_policy": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'" + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'", + "sandbox": "script-src 'self' https://api.bing.com https://www.google.com; object-src 'self'" + } }