webextensions.api.tabs.create - Chromium doesn't support discarded
(throws an error when used)
#20969
Labels
data:webext
Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions
What type of issue is this?
Missing compatibility data
What information was incorrect, unhelpful, or incomplete?
tabs.create in Chromium browsers does not support discarded property. It throws out an error when it is used.
As someone who uses MDN compatibility data to develop cross-browser extensions, it was a little bit hard to see where the problem was when using the same API with the same properties and figuring out it stops the extension from working.
What browsers does this problem apply to, if applicable?
Chromium (Chrome, Edge 79+, Opera, Samsung Internet)
What did you expect to see?
I expect to add a notice to indicate the missing properties support or at least include the supported properties to the table.
For example: In Chromium browsers, tabs.create does not support the
discarded
property.And even better, indicate that Firefox supports Firefox only properties such as
openInReaderMode
andcookieStoreId
.Did you test this? If so, how?
I figured this out while creating my extension Sessionic, so I went back to the documentation multiple times only to figure out on the Chrome documentation that they do not support
discarded
.Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://developer.chrome.com/docs/extensions/reference/tabs/#method-create
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/create
MDN metadata
MDN page report details
webextensions.api.tabs.create
The text was updated successfully, but these errors were encountered: