Skip to content
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

Chrome 108/109 added webextensions.api.action.isEnabled/{get,set}BadgeTextColor #25321

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

PassionPenguin
Copy link
Contributor

@PassionPenguin PassionPenguin commented Dec 5, 2024

per https://developer.chrome.com/docs/extensions/reference/api/action#method-setBadgeTextColor、https://developer.chrome.com/docs/extensions/reference/api/action#method-getBadgeTextColor、https://developer.chrome.com/docs/extensions/reference/api/action#method-isEnabled

fixes #25348

also note that chrome.action have new members not included in BCD yet: UserSettingsChangedonUserSettingsChanged added in Chrome 130; should they also be included in BCD?

@github-actions github-actions bot added data:webext Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions size:s [PR only] 7-24 LoC changed labels Dec 5, 2024
@caugner caugner self-requested a review December 6, 2024 16:53
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this data.

I found slightly different versions by looking at this blame and copying the corresponding commit hash into Chromium Dash, see below.

As for adding UserSettingsChanged and onUserSettingsChanged, I do think it makes sense to add these, but open a separate PR for those, and wait for a second opinion from @rebloor before.

webextensions/api/action.json Outdated Show resolved Hide resolved
webextensions/api/action.json Outdated Show resolved Hide resolved
webextensions/api/action.json Outdated Show resolved Hide resolved
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
@caugner caugner changed the title Update Chrome support for action of WebExt API Chrome 108/109 added webextensions.api.action.isEnabled/{get,set}BadgeTextColor Dec 10, 2024
@caugner caugner merged commit b9d4c81 into mdn:main Dec 10, 2024
9 checks passed
@PassionPenguin PassionPenguin deleted the patch-1 branch December 11, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:webext Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions size:s [PR only] 7-24 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

action.setBadgeTextColor() supports by Chrome 110+
2 participants