Details for runtime.getFrameId#13219
Conversation
Preview URLs
FlawsNote! 2 documents with no flaws that don't need to be listed. 🎉 URL:
External URLsURL: No new external URLs URL: No new external URLs URL: No new external URLs (this comment was updated 2022-03-20 01:34:28.438178) |
| --- | ||
| {{AddonSidebar}} | ||
|
|
||
| Returns the frame ID of any window global or frame element when called from a content script. |
There was a problem hiding this comment.
This works from extension pages as well (including the background page), but the main use case is indeed to be available from content scripts. Not sure how to word that better.
There was a problem hiding this comment.
@zombie so would this be accurate "Returns the frame ID of any window global or frame element when called from a content script or extension page, including background pages."
| {{WebExtExamples}} | ||
|
|
||
| ## Browser compatibility | ||
|
|
There was a problem hiding this comment.
Since we don't document Safari Technology Preview in compat data, I suggest we add something like this for now:
This method was proposed through the WebExtensions community group, implemented in Firefox 96 and will be available starting with Safari Technology Preview 142.
There was a problem hiding this comment.
The compatibility data will include the Firefox release version. I'm not sure the information about how this method was proposed is relevant to compatibility. This would leave "Available in Safari Technology Preview 142." Presumably, that information would be superseded once it becomes part of Safari, so I'm reluctant to add on the basis we don't have a mechanism for removing this later.
There was a problem hiding this comment.
If we can add that note to compat data, that's also fine.
There was a problem hiding this comment.
Can you review the browser-compat-data change?
Summary
Add release notes and API reference for
runtime.getFrameId.Related issues
Provide documentation for Bug 1733104 Consider allowing retrieval of frameId from <iframe> elements.
Related compatibility data is provided in Adding details for runtime.getFrameId #15088
Metadata
This PR…