Skip to content

Commit

Permalink
Bug 1943050 new webExtension.api.userScripts (#25913)
Browse files Browse the repository at this point in the history
* Bug 1943050 new `webExtension.api.userScripts`

* Additional note on runtime events (from feedback)

* Apply suggestions from eview

Co-authored-by: Rob Wu <rob@robwu.nl>

* Unsupported in Firefox for Android

* Chrome release versions correction

Co-authored-by: Rob Wu <rob@robwu.nl>

* Feedback updates

* Removed extraneous right square brackets

Co-authored-by: Rob Wu <rob@robwu.nl>

---------

Co-authored-by: Rob Wu <rob@robwu.nl>
  • Loading branch information
rebloor and Rob--W authored Feb 24, 2025
1 parent 504174b commit 77ed9ef
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 21 deletions.
58 changes: 58 additions & 0 deletions webextensions/api/runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,64 @@
}
}
},
"onUserScriptConnect": {
"__compat": {
"support": {
"chrome": {
"version_added": "120",
"notes": [
"Available for use with Manifest V3 only.",
"Always available, even if the extension has no way of firing the event."
]
},
"edge": "mirror",
"firefox": {
"version_added": "136",
"notes": [
"Available for use with Manifest V3 only.",
"Requires the [`userScripts` permission](https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/userScripts#permissions)."
]
},
"firefox_android": {
"version_added": false
},
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
},
"onUserScriptMessage": {
"__compat": {
"support": {
"chrome": {
"version_added": "120",
"notes": [
"Available for use with Manifest V3 only.",
"Always available, even if the extension has no way of firing the event."
]
},
"edge": "mirror",
"firefox": {
"version_added": "136",
"notes": [
"Available for use with Manifest V3 only.",
"Requires the [`userScripts` permission](https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/userScripts#permissions)."
]
},
"firefox_android": {
"version_added": false
},
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
},
"openOptionsPage": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/openOptionsPage",
Expand Down
Loading

0 comments on commit 77ed9ef

Please sign in to comment.