From dd6220ec012838d6baa64f03831cfdf898ee29a9 Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Fri, 28 Jun 2024 07:01:01 +1200 Subject: [PATCH 1/5] support-for-execution-world-MAIN --- webextensions/api/contentScripts.json | 56 +++++++++++++++++++++++++++ webextensions/api/scripting.json | 3 +- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/webextensions/api/contentScripts.json b/webextensions/api/contentScripts.json index 532c88e755f655..cf13651f728594 100644 --- a/webextensions/api/contentScripts.json +++ b/webextensions/api/contentScripts.json @@ -2,6 +2,43 @@ "webextensions": { "api": { "contentScripts": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contentScripts", + "support": { + "chrome": { + "version_added": false + }, + "edge": "mirror", + "firefox": { + "version_added": "59" + }, + "firefox_android": "mirror", + "opera": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror" + } + }, + "ExecutionWorld": { + "__compat": { + "support": { + "chrome": { + "version_added": false + }, + "edge": "mirror", + "firefox": { + "version_added": "128" + }, + "firefox_android": "mirror", + "opera": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror" + } + } + }, "RegisteredContentScript": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contentScripts/RegisteredContentScript", @@ -79,6 +116,25 @@ "safari_ios": "mirror" } } + }, + "world": { + "__compat": { + "support": { + "chrome": { + "version_added": false + }, + "edge": "mirror", + "firefox": { + "version_added": "128" + }, + "firefox_android": "mirror", + "opera": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror" + } + } } } } diff --git a/webextensions/api/scripting.json b/webextensions/api/scripting.json index cc97ce260b7e40..1a9a4ed97d797d 100644 --- a/webextensions/api/scripting.json +++ b/webextensions/api/scripting.json @@ -67,8 +67,7 @@ }, "edge": "mirror", "firefox": { - "version_added": false, - "impl_url": "https://bugzil.la/1736575" + "version_added": "128" }, "firefox_android": "mirror", "opera": "mirror", From 6c9d6597278eaf8a359ed4bbabe4167e9e82a9a5 Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Sat, 29 Jun 2024 06:33:44 +1200 Subject: [PATCH 2/5] Support for world in content_scripts --- webextensions/manifest/content_scripts.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webextensions/manifest/content_scripts.json b/webextensions/manifest/content_scripts.json index bd9ba2427023b3..71e6d31d6f3280 100644 --- a/webextensions/manifest/content_scripts.json +++ b/webextensions/manifest/content_scripts.json @@ -281,8 +281,7 @@ }, "edge": "mirror", "firefox": { - "version_added": false, - "impl_url": "https://bugzil.la/1736575" + "version_added": "128" }, "firefox_android": "mirror", "opera": "mirror", From 5f25e186cd7faae9cdaacbc7dc71e4e25a40a951 Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Tue, 2 Jul 2024 22:57:41 +1200 Subject: [PATCH 3/5] Update from feedback on content --- webextensions/api/contentScripts.json | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/webextensions/api/contentScripts.json b/webextensions/api/contentScripts.json index cf13651f728594..a2e57522878557 100644 --- a/webextensions/api/contentScripts.json +++ b/webextensions/api/contentScripts.json @@ -20,25 +20,6 @@ "safari_ios": "mirror" } }, - "ExecutionWorld": { - "__compat": { - "support": { - "chrome": { - "version_added": false - }, - "edge": "mirror", - "firefox": { - "version_added": "128" - }, - "firefox_android": "mirror", - "opera": "mirror", - "safari": { - "version_added": false - }, - "safari_ios": "mirror" - } - } - }, "RegisteredContentScript": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contentScripts/RegisteredContentScript", From 4f1162b368e4b9e87080a50cba7b45b31a0b2dcd Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Tue, 2 Jul 2024 23:01:20 +1200 Subject: [PATCH 4/5] Further feedback updates --- webextensions/api/scripting.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webextensions/api/scripting.json b/webextensions/api/scripting.json index 1a9a4ed97d797d..93cba2927a5d04 100644 --- a/webextensions/api/scripting.json +++ b/webextensions/api/scripting.json @@ -287,8 +287,7 @@ }, "edge": "mirror", "firefox": { - "version_added": "102", - "notes": "Only supports ISOLATED, not MAIN." + "version_added": "102" }, "firefox_android": "mirror", "opera": "mirror", From f49fbfcfe6dc29d468d32642da0c7e1facedc6d2 Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Wed, 3 Jul 2024 10:06:10 +1200 Subject: [PATCH 5/5] scripting.executeScript.world ISOLATED and MAIN dtails --- webextensions/api/scripting.json | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/webextensions/api/scripting.json b/webextensions/api/scripting.json index 7bcea6f3c9dc6d..20aa42f169a617 100644 --- a/webextensions/api/scripting.json +++ b/webextensions/api/scripting.json @@ -316,6 +316,44 @@ }, "safari_ios": "mirror" } + }, + "ISOLATED": { + "__compat": { + "support": { + "chrome": { + "version_added": "95" + }, + "edge": "mirror", + "firefox": { + "version_added": "102" + }, + "firefox_android": "mirror", + "opera": "mirror", + "safari": { + "version_added": "15.4" + }, + "safari_ios": "mirror" + } + } + }, + "MAIN": { + "__compat": { + "support": { + "chrome": { + "version_added": "95" + }, + "edge": "mirror", + "firefox": { + "version_added": "128" + }, + "firefox_android": "mirror", + "opera": "mirror", + "safari": { + "version_added": "15.4" + }, + "safari_ios": "mirror" + } + } } } },