Skip to content

webextension.api add missing __compat objects #27203

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

Merged

Conversation

rebloor
Copy link
Contributor

@rebloor rebloor commented Jun 30, 2025

Summary

This change adds missing __compat objects to the path of several web extension API features.

This was done for two reasons:

  • The definition of the scheme of states that "identifiers without __compat aren't necessarily features". The items affected in this PR are features.

  • It resolves some presentation issues. For example, take the example of browsingData.DataTypeSet:

    • In the BCD data presented about browsingData, DataTypeSet is not listed.
    • In the BCD about DataTypeSet the properties are listed, however, the first property has a link back to the page, rather than the link being on DataTypeSet.

Note. Removed runtime.sendMessage.options.toProxyScript as it's not mentioned in the runtime schema, documented on MDM, or mentioned in any item.

@rebloor rebloor requested a review from dotproto June 30, 2025 11:30
@rebloor rebloor self-assigned this Jun 30, 2025
@rebloor rebloor added the data:webext Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions label Jun 30, 2025
@github-actions github-actions bot added the size:l [PR only] 101-1000 LoC changed label Jun 30, 2025
Copy link
Contributor

github-actions bot commented Jun 30, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Copy link
Contributor

@dotproto dotproto left a comment

Choose a reason for hiding this comment

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

I dug into the history of toProxyScript(). It appears that this method was removed from Firefox about 7 years ago as part of bug 1443259. See Comment 15 for a mention of removing related documentation from MDN.

Copy link
Contributor

@dotproto dotproto left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for working on this, @rebloor!

@rebloor
Copy link
Contributor Author

rebloor commented Jul 2, 2025

Thanks @dotproto thinking that I didn't find this because I forgot to search the comments!

@rebloor rebloor merged commit 54322f8 into mdn:main Jul 2, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Jul 2, 2025
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:l [PR only] 101-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants