Bug 1891478 Implementation of documentId in more extension APIs#44491
Conversation
Rob--W
left a comment
There was a problem hiding this comment.
Is it possible to have documentation explaining the concept of documentId and reference that from all articles that mention it? Having such an article would also offer a place for a full listing of all APIs recognizing documentId one way or another. That list would initially be the same as the release notes here, but would be expanded over time as more features are added that build upon it.
You can find some explanation of why tabId+documentId can be preferred over tabId+frameId at w3c/webextensions#8
And for context: although there is currently no API to target a document by documentId only, there are discussions in the WECG about dropping the tabId requirement when documentId is used, e.g. w3c/webextensions#91
Co-authored-by: Rob Wu <rob@robwu.nl>
|
This pull request has merge conflicts that must be resolved before it can be merged. |
Co-authored-by: Rob Wu <rob@robwu.nl>
Rob--W
left a comment
There was a problem hiding this comment.
Looks accurate and complete. Thank you!
There are very minor additional comments, please merge when you have the chance.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Rob Wu <rob@robwu.nl>
|
Thanks @Rob--W final changes made and merged. |
Description
This change addresses the dev-doc-needed requirements of Bug 1891478 "Implement documentId in extension APIs"
Changhes include:
New page
runtime.getDocumentId()method, which returns the document UUID for a given window/frame target.Updated API reference pages
documentIdtoconnectInfooptions.documentIdtooptions.documentIdandparentDocumentIdproperties.Navigation/index updates
runtime.getDocumentId()entry to the methods list.runtime.getDocumentId()to the list of APIs usable from content scripts.Release notes: firefox/releases/153/index.md — new bullet under "Changes for add-on developers" summarizing all the
documentIdadditions acrossruntime,scripting,userScripts,tabs,webNavigation,webRequest, andproxy, referencing bug 1891478.Related issues and pull requests
BCD changes in PR mdn/browser-compat-data#29853