Steps to reproduce
In a content script, call
This throws an exception as sendMessage returns undefined.
Edge is supposed to support the feature as described:
Comments and activity
browser.runtime.onMessage() has the same problem.
- Microsoft Edge Team
Changed Assigned To to “Akshay P.”
Changed Assigned To from “Akshay P.” to “Snehita P.”
Changed Status to “Confirmed”
Changed Assigned To from “Snehita P.” to “Akshay P.”
Changed Assigned To from “Akshay P.” to “Abigail C.”
Changed Status from “Confirmed” to “By design”
browser.runtime.connectNative() also has the same problem.
When will u fixed these issues.
Thank you for the feedback. Microsoft Edge does not support Promises, we are evaluating it for a future release but for the meant time, please continue to use the callback model:
The MS Edge Team
@Brad E. Would you consider mapping the API to the
chromevariable as is the accepted method for non-Promise WebExtension APIs? The
browservariable implies that Promises are supported and prevents the use of the browser polyfill. The polyfill allows for extensions to be cross-browser compatible for both Promise-based and callback-based APIs.