-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/scripting/executeScript
What specific section or headline is this issue about?
Return Value
What information was incorrect, unhelpful, or incomplete?
In the Return Value section it mentions that the result of the script must be structured cloneable and when I click on that definition of structured cloneable there is no mention of promises on the page so from that and what is written in the Return Value section it leads users to believe that you cannot return a Promise as the return type of ExecuteScript(). From my own personal experience I know that it can and that the promise gets awaited.
What did you expect to see?
I would like to see a a mention of if promises are structured cloneable and or any other mention of what happens when ExecuteScript() returns a promise. As will be shared chrome has an explicit section that outlines what happens when ExecuteScript() is returned, would be nice to see that for Mozzilla
Do you have any supporting links, references, or citations?
In this chrome docs it clearly outlines what happens in chrome
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/mozilla/add-ons/webextensions/api/scripting/executescript - MDN URL: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/scripting/executeScript
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/mozilla/add-ons/webextensions/api/scripting/executescript/index.md
- Last commit: 09109b6
- Document last modified: 2025-07-17T07:48:12.000Z