-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1943050 new webExtension.api.userScripts
#25913
base: main
Are you sure you want to change the base?
Changes from 1 commit
e6dc62e
3a0fbea
aeebfaa
f07d132
0177cdb
f903de0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1162,6 +1162,48 @@ | |||||
} | ||||||
} | ||||||
}, | ||||||
"onUserScriptConnect": { | ||||||
"__compat": { | ||||||
"support": { | ||||||
"chrome": { | ||||||
"version_added": "115", | ||||||
"notes": "Available for use with Manifest V3 only." | ||||||
}, | ||||||
"edge": "mirror", | ||||||
"firefox": { | ||||||
"version_added": "136", | ||||||
"notes": "Available for use with Manifest V3 only." | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In Chrome, these two events are always available in the |
||||||
}, | ||||||
"firefox_android": "mirror", | ||||||
"opera": "mirror", | ||||||
"safari": { | ||||||
"version_added": false | ||||||
}, | ||||||
"safari_ios": "mirror" | ||||||
} | ||||||
} | ||||||
}, | ||||||
"onUserScriptMessage": { | ||||||
"__compat": { | ||||||
"support": { | ||||||
"chrome": { | ||||||
"version_added": "115", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
"notes": "Available for use with Manifest V3 only." | ||||||
}, | ||||||
"edge": "mirror", | ||||||
"firefox": { | ||||||
"version_added": "136", | ||||||
"notes": "Available for use with Manifest V3 only." | ||||||
}, | ||||||
"firefox_android": "mirror", | ||||||
"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", | ||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -2,16 +2,74 @@ | |||||||
"webextensions": { | ||||||||
"api": { | ||||||||
"userScripts": { | ||||||||
"__compat": { | ||||||||
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/userScripts", | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Unless stated otherwise, Chrome's userScripts API became available on release in version 120: |
||||||||
"notes": "Available for use with Manifest V3 only." | ||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136", | ||||||||
"notes": "Available for use with Manifest V3 only." | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
}, | ||||||||
"ExecutionWorld": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apparently, the |
||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"RegisteredUserScript": { | ||||||||
"__compat": { | ||||||||
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/userScripts/RegisteredUserScript", | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should also specify the This is connected to the "multiple user script worlds feature":
|
||||||||
}, | ||||||||
"ScriptSource": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "68" | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
|
@@ -20,38 +78,93 @@ | |||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
}, | ||||||||
"unregister": { | ||||||||
"__compat": { | ||||||||
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/userScripts/RegisteredUserScript/unregister", | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "68" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"UserScriptFilter": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"onBeforeScript": { | ||||||||
"WorldProperties": { | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should also specify the This is connected to the "multiple user script worlds feature":
Since there are only a few (3) properties in |
||||||||
"__compat": { | ||||||||
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/userScripts/onBeforeScript", | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"configureWorld": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "68" | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"getScripts": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"getWorldConfigurations": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Note: not 120 but 133, connected to the "multiple user script worlds feature":
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
|
@@ -67,11 +180,49 @@ | |||||||
"mdn_url": "https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/userScripts/register", | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we somehow mention the legacy version of the API in a note? |
||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"resetWorldConfiguration": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Note: not 120 but 133, connected to the "multiple user script worlds feature":
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"unregister": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "68" | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
|
@@ -80,24 +231,24 @@ | |||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
}, | ||||||||
"cookieStoreId": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "98" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
"update": { | ||||||||
"__compat": { | ||||||||
"support": { | ||||||||
"chrome": { | ||||||||
"version_added": "115" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"edge": "mirror", | ||||||||
"firefox": { | ||||||||
"version_added": "136" | ||||||||
}, | ||||||||
"firefox_android": "mirror", | ||||||||
"opera": "mirror", | ||||||||
"safari": { | ||||||||
"version_added": false | ||||||||
}, | ||||||||
"safari_ios": "mirror" | ||||||||
} | ||||||||
} | ||||||||
} | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -831,6 +831,26 @@ | |||||||||
} | ||||||||||
} | ||||||||||
}, | ||||||||||
"userScripts": { | ||||||||||
"__compat": { | ||||||||||
"support": { | ||||||||||
"chrome": { | ||||||||||
"version_added": "115" | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
}, | ||||||||||
"edge": "mirror", | ||||||||||
"firefox": { | ||||||||||
"version_added": "136", | ||||||||||
"notes": "Provided as an optional-only permission." | ||||||||||
rebloor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
}, | ||||||||||
"firefox_android": "mirror", | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The permission is not supported on Android either, until https://bugzilla.mozilla.org/show_bug.cgi?id=1949955 is fixed.
Suggested change
|
||||||||||
"opera": "mirror", | ||||||||||
"safari": { | ||||||||||
"version_added": false | ||||||||||
}, | ||||||||||
"safari_ios": "mirror" | ||||||||||
} | ||||||||||
} | ||||||||||
}, | ||||||||||
"webNavigation": { | ||||||||||
"__compat": { | ||||||||||
"support": { | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -949,6 +949,26 @@ | |||||||||
} | ||||||||||
} | ||||||||||
}, | ||||||||||
"userScripts": { | ||||||||||
"__compat": { | ||||||||||
"support": { | ||||||||||
"chrome": { | ||||||||||
"version_added": "115" | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
}, | ||||||||||
"edge": "mirror", | ||||||||||
"firefox": { | ||||||||||
"version_added": false, | ||||||||||
"notes": "Provided as an optional-only permission." | ||||||||||
rebloor marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
}, | ||||||||||
"firefox_android": "mirror", | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The permission is not supported on Android either, until https://bugzilla.mozilla.org/show_bug.cgi?id=1949955 is fixed.
Suggested change
|
||||||||||
"opera": "mirror", | ||||||||||
"safari": { | ||||||||||
"version_added": false | ||||||||||
}, | ||||||||||
"safari_ios": "mirror" | ||||||||||
} | ||||||||||
} | ||||||||||
}, | ||||||||||
"webNavigation": { | ||||||||||
"__compat": { | ||||||||||
"support": { | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.