-
Notifications
You must be signed in to change notification settings - Fork 2k
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
menus.create.accessKey - Probably wrong data, Firefox does not support this parameter/property #23521
Comments
The "access key" feature means recognizing To reduce confusion it may make sense to move it under the title key in the schema data. In general the BCD can list features that aren't API properties but references to special behavior. There are no established patterns for documenting that. |
I offer to work on this, which will probably help me to get a deeper understanding of this matter. If I am allowed to contribute, may I:
|
What do you mean by fixing the notation of the properties? Previously I wrote "To reduce confusion it may make sense to move it under the title key in the schema data.", under the assumption that the "title" property was already listed in the BCD. Since it is not there, there is no separate "title" entry in the BCD and suggesting to move it there is not very meaningful. The BCD already lists a separate description, browser-compat-data/webextensions/api/menus.json Lines 543 to 545 in 1d41e2a
... so the "accessKey" property name does not appear anywhere. Renaming it to something else doesn't add much value at this point.
That was what I was thinking. In this specific case, it is not rendered in the BCD because the intermediate entry is missing the |
My idea was to use the suggested notation for properties here, and thus do the following renaming:
I then would add the missing My alternative suggestion would be to not use the The currently used notation makes it difficult for clients to work with BCD, there is no indication that |
Might it be best to open an issue about establishing a for documenting browser-specific support for the interpretation of specific fields in objects and documenting that pattern in the BCD Data guidelines? |
This issue was filed because the Also noted in the same comment is the issue that many BCD entries are not rendered in the Browser Compatibility table on MDN because of missing And in order to have a discussion on the desired format of the BCD data, it would be helpful to describe common patterns in the extension APIs, especially when different from what's usual on the web platform. And also the use cases that we're trying to optimize for (just the "Browser Compatibility" table? or something more?). Note that the original report here questioned the presence of the And even if we end up agreeing on some convention for distinguishing properties from method names, there is also the question on how to account for types. For example, Chrome commonly uses single-use named types to describe objects. These names are not visible in the extension API itself (except when it is an |
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
It is listed here as beeing supported since 63:
browser-compat-data/webextensions/api/menus.json
Line 552 in 1d41e2a
The Firefox schema file does not know that parameter:
https://searchfox.org/mozilla-central/rev/2f48061aef8c8976b73749ee845e7b85751f5f2f/browser/components/extensions/schemas/menus.json#193-314
What browsers does this problem apply to, if applicable?
Firefox
What did you expect to see?
Notes:
menus.create
seems to be not conforming to the official suggestionsaccessKey
(together with all the other parameters) is actually a property of thecreateProperties
parameter. The linked document suggest to usecreateProperties_accessKey_parameter
.Did you test this? If so, how?
No. Comparing with the schema file should be sufficient.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
No response
Do you have anything more you want to share?
No response
MDN URL
No response
MDN metadata
No response
The text was updated successfully, but these errors were encountered: