[wpt-sync] Sync PR 19462 - Worklet: Reject addModule() with script's error to rethrow if available
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 19462 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/19462
Details from upstream follow.
Hiroki Nakagawa <nhiroki@chromium.org> wrote:
Worklet: Reject addModule() with script's error to rethrow if available
This CL makes Worklet#addModule() fail with a more specific error object
compared to before.Before this change, Worklet::addModule() was rejected with AbortError regardless
of an actual error reason, and that made it difficult for developers to debug
worklets. This behavior was defined in the Worklets spec, but it was changed
recently (see the links below).After this change, Worklet::addModule() is rejected with script's error to
rethrow when it is available as the new spec defines.Spec changes:
- https://github.com/w3c/css-houdini-drafts/pull/958
- https://github.com/w3c/css-houdini-drafts/pull/967
Chromestatus:
Bug: 782066
Change-Id: Iabd30eff28ed1bffed9219898649a89b8abebbb2Reviewed-on: https://chromium-review.googlesource.com/1258785
WPT-Export-Revision: 5c6426b637e7a1bfc7ae5fa0057de9982067186c
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Comment 10•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/be5a525dc0ae
https://hg.mozilla.org/mozilla-central/rev/26b70e39b259
Description
•