You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 1655624 - Improve reliability of onMessage's error handling r=zombie
Bug 1655624 happened because the format of an internal error changed,
which caused an internal error to be propagated unexpectedly.
This patch fixes the issue by only propagating errors that are known to
originate from extensions, plus a regression test.
This patch also fixes a few other issues:
- Internal errors are redacted to "An unexpected error occurred",
which partially fixes bug 1643176.
- Fix minor regression in void rejections: Prior to bug 1583484, an
onMessage handler that rejected with a void value would cause
sendMessage to reject. Since bug 1583484 the promise is not rejected,
as the error is inadvertently ignored due to a runtime error:
"TypeError: can't access property "result", err is undefined".
- Avoid type confusion of objects with the mozWebExtLocation member.
Differential Revision: https://phabricator.services.mozilla.com/D85643
UltraBlame original commit: 46abf66e3b2090e7ebcde77aefd81982689cc148
0 commit comments