Cross-browser extension article update#30228
Conversation
|
Preview URLs External URLs (5)URL:
(comment last updated: 2023-12-11 21:32:40) |
jpmedley
left a comment
There was a problem hiding this comment.
You write really clean prose. That makes it look like I was only reviewing for Chrome-related stuff, which I was not.
|
|
||
| - _Promises_, the proposed standard for the extensions API used by Firefox and Safari. | ||
| - _Callbacks_, used by Chrome, Edge, and Opera. | ||
| > **Note:** As of November 2023, the Chrome documentation notes that "support has been added to most methods, though callbacks are still supported as an alternative. (We will eventually support promises on all appropriate methods.)" |
There was a problem hiding this comment.
This note may not be needed. I will get you an answer.
There was a problem hiding this comment.
Thanks @jpmedley I'll await your update. Has a bit of a knock-on impact into other work too so would be good to know.
There was a problem hiding this comment.
Let's drop this note. I have suggested an edit to clarify the callback support, and the "(We will eventually support promises on all appropriate methods.)" remark is unnecessary.
The vast majority of Chrome extension APIs support Promises now.
There was a problem hiding this comment.
Dropping this seems right. Chrome's promise work will be done this quarter. The phrase 'all appropriate methods' is right. There are places where callbacks are appropriate and will remain in use.
Co-authored-by: Joe Medley <jmedley@google.com>
Rob--W
left a comment
There was a problem hiding this comment.
Here is a review of the content that has changed. I haven't reviewed the full (existing) article yet (i.e. the part that does not show up in the diff), but will do that once the pending changes have been resolved.
|
|
||
| - _Promises_, the proposed standard for the extensions API used by Firefox and Safari. | ||
| - _Callbacks_, used by Chrome, Edge, and Opera. | ||
| > **Note:** As of November 2023, the Chrome documentation notes that "support has been added to most methods, though callbacks are still supported as an alternative. (We will eventually support promises on all appropriate methods.)" |
There was a problem hiding this comment.
Let's drop this note. I have suggested an edit to clarify the callback support, and the "(We will eventually support promises on all appropriate methods.)" remark is unnecessary.
The vast majority of Chrome extension APIs support Promises now.
Co-authored-by: Rob Wu <rob@robwu.nl>
…r_extension/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…r_extension/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
@Rob--W anything outstanding from your POV |
|
This has a merge conflict. I'm going to be out of the office for the next week, so please request merge from someone else. Thank you. |
Co-authored-by: Rob Wu <rob@robwu.nl>
Rob--W
left a comment
There was a problem hiding this comment.
Good to merge with one change, mainly due to the uncertainty about Chrome 121 having been resolved (copy edit as you see fit).
Co-authored-by: Rob Wu <rob@robwu.nl>
* Cross-browser extension article update * grammar fix * Apply suggestions from review Co-authored-by: Joe Medley <jmedley@google.com> * Apply suggestions from review Co-authored-by: Rob Wu <rob@robwu.nl> * Adding embedded section links * Removed Chrome promise support evolution note * Update files/en-us/mozilla/add-ons/webextensions/build_a_cross_browser_extension/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/mozilla/add-ons/webextensions/build_a_cross_browser_extension/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * async handling update * Further async clarification * Apply suggestions from review Co-authored-by: Rob Wu <rob@robwu.nl> * Feedback re Chrome support Co-authored-by: Rob Wu <rob@robwu.nl> --------- Co-authored-by: Joe Medley <jmedley@google.com> Co-authored-by: Rob Wu <rob@robwu.nl> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
This update includes:
Related issues and pull requests
Fixes #20779