gecko-dev/dom/worklet
Karl Tomlinson eb4179edc3 Bug 1558128 reject addModule() promise with AbortError on failure to parse worklet script and don't suppress SyntaxErrors r=baku
https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script
requires that the addModule() promise is rejected with an "AbortError"
DOMException.  https://github.com/w3c/css-houdini-drafts/issues/509 proposes a
more specific error, but that has not been implemented in another browser.

StealExceptionFromJSContext() set ErrorCode to
NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION if there was a pending exception
(or NS_ERROR_OUT_OF_MEMORY on failure to record the JS exception) or
NS_ERROR_UNCATCHABLE_EXCEPTION if there was no pending exception.
StealNSResult() converted NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION to
NS_ERROR_DOM_INVALID_STATE_ERR.

Information about the error is lost on conversion of a SyntaxError to the
promise rejection, so allow the SyntaxError to be reported the console.

Depends on D44601

Differential Revision: https://phabricator.services.mozilla.com/D44602

--HG--
extra : moz-landing-system : lando
2019-09-04 09:46:50 +00:00
..
tests Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku 2019-09-02 11:22:27 +00:00
Worklet.cpp Bug 1558128 reject addModule() promise with AbortError on failure to parse worklet script and don't suppress SyntaxErrors r=baku 2019-09-04 09:46:50 +00:00
Worklet.h Bug 1539039 finish worklet before destination stream is destroyed r=padenot 2019-03-29 16:12:08 +00:00
WorkletGlobalScope.cpp Bug 1490044 - Remove DOMPrefs. r=bzbarsky 2019-06-13 09:02:03 +00:00
WorkletGlobalScope.h Bug 1547923 part 3. Add nsIGlobalObject::GetGlobalJSObjectPreserveColor(). r=mccr8 2019-05-02 21:23:35 +00:00
WorkletImpl.cpp Bug 1539039 keep WorkletGlobalScope as long as its Worklet is usable r=baku 2019-04-01 16:54:58 +00:00
WorkletImpl.h Bug 1539039 keep WorkletGlobalScope as long as its Worklet is usable r=baku 2019-04-01 16:54:58 +00:00
WorkletPrincipal.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
WorkletPrincipal.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
WorkletThread.cpp Bug 1558128 report errors from worklet scripts to console r=baku 2019-09-04 09:46:41 +00:00
WorkletThread.h bug 1539039 notify WorkletImpl before WorkletThread shutdown on xpcom shutdown r=baku 2019-04-01 16:51:18 +00:00
moz.build Bug 1535353 - update Core :: DOM: * bugzilla product and component meta data in moz.build files after reorganization in bug 1533440 r=hsinyi 2019-03-17 23:13:22 +00:00