html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/
174 / 176 WPT subtests passing
- Failed
- 1
- Timed out
- 1
- Not run
- 0
- Test files
- 15
- Blocking files
- 0
Chrome 175 / 176 WPT subtests passing on the same files, none blocking, 1 without a result
Tests
15 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
allow-crossorigin.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Promise rejection event should be received for the cross-origin CORS script
disallow-crossorigin.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Promise rejection event should be muted for cross-origin non-CORS script
- Promise rejection should be muted if the rejected promise is handled in cross-origin non-CORS script
- Promise rejection should be muted if the rejected promise is handled in unhandledrejection event handler in cross-origin non-CORS script
promise-rejection-during-parsing-crash.html none reportedChrome —0 failedClean
/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-during-parsing-crash.html PASS none reported
No subtests were reported.
promise-rejection-event-constructor.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- This tests the constructor for the PromiseRejectionEvent DOM class.
promise-rejection-event-during-parse.html 0 / 1 passingChrome 0 / 11 failedExempt
Exempt from the 0.1 gate: Crane follows the browser majority
Crane fires the unhandledrejection for a parse-time rejected promise after readystatechange complete - DOMContentLoaded and load run in the task in which the parser stops - exactly as Safari does; Chrome fires it before interactive (a different failure) and Firefox between interactive and complete
- Crane matches
- Safari
- Chrome
- wpt.fyi run 4786307730243584: 0/1 (Chrome 157, 2358bd4835)
- Firefox
- wpt.fyi run 4877168468033536: 1/1 (Firefox 160, 2358bd4835)
- Safari
- wpt.fyi run 6479119966273536: 0/1 (Safari 27.2, 2358bd4835)
- Ruling
- the user, 2026-11-14 7:17 AM ET, by prompt: option b, keep Safari's order (after the user's 2026-11-12 ruling that DOMContentLoaded and load run in the parser's task, as all three browsers do; tools/wpt_loss_dispositions.txt, generation 225)
- Revisit
- when Chrome, Firefox or Safari changes its result on a newer aligned wpt.fyi run, or Crane's result moves
- ¶
FAILPromise rejection during initial parsing of document
assert_array_equals: lengths differ, expected array ["readystatechange:interactive", "unhandledrejection", "readystatechange:complete"] length 3, got ["readystatechange:interactive", "readystatechange:complete"] length 2
promise-rejection-events-attached-in-event.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Attaching a handler in unhandledrejection should not trigger rejectionhandled.
promise-rejection-events-iframe.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- unhandledrejection: promise is created in iframe and being rejected elsewhere
- no unhandledrejection/rejectionhandled: promise is created in iframe and being rejected elsewhere
- delayed handling: promise is created in iframe and being rejected elsewhere
promise-rejection-events-many-promises.dedicatedworker.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- unhandledrejection: fires once for each of many rejections in one turn
- unhandledrejection: does not fire when many rejections are all handled in the same turn
- unhandledrejection: fires only for the rejections left unhandled
- unhandledrejection: does not fire when many rejections are handled in reverse order
- rejectionhandled: fires once for each of many rejections handled after they were reported
- unhandledrejection: handling a reported batch does not suppress a batch rejected after it
promise-rejection-events-many-promises.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- unhandledrejection: fires once for each of many rejections in one turn
- unhandledrejection: does not fire when many rejections are all handled in the same turn
- unhandledrejection: fires only for the rejections left unhandled
- unhandledrejection: does not fire when many rejections are handled in reverse order
- rejectionhandled: fires once for each of many rejections handled after they were reported
- unhandledrejection: handling a reported batch does not suppress a batch rejected after it
promise-rejection-events-onerror.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Throwing inside an unhandledrejection handler invokes the error handler.
promise-rejection-events.dedicatedworker.html 36 / 36 passingChrome 36 / 360 failedClean
36 passing subtests
- unhandledrejection: from Promise.reject
- unhandledrejection: from a synchronous rejection in new Promise
- unhandledrejection: from a task-delayed rejection
- unhandledrejection: from a setTimeout-delayed rejection
- unhandledrejection: from a throw in a rejection handler chained off of Promise.reject
- unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection
- unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection
- unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler
- unhandledrejection: from a throw in a fulfillment handler
- unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler
- unhandledrejection: from Promise.reject, indirected through Promise.all
- unhandledrejection: from createImageBitmap which is UA triggered
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject, indirecting through Promise.all
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a setTimeout-delayed rejection in a fulfillment handler
- no unhandledrejection/rejectionhandled: all inside a queued task, a rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from createImageBitmap
- delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)
- delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)
- delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a queueTask
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a queueTask
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout
- delayed handling: a nested-task delay before attaching a handler causes unhandledrejection
- delayed handling: a nested-queueTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler
- delayed handling: a nested-queueTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler
- delayed handling: a nested-queueTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler
- delayed handling: delaying handling by setTimeout(,10) will cause both events to fire
- delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire
- mutationObserverMicrotask vs. queueTask ordering is not disturbed inside unhandledrejection events
promise-rejection-events.html 43 / 43 passingChrome 43 / 430 failedClean
43 passing subtests
- unhandledrejection: from Promise.reject
- unhandledrejection: from a synchronous rejection in new Promise
- unhandledrejection: from a task-delayed rejection
- unhandledrejection: from a setTimeout-delayed rejection
- unhandledrejection: from a throw in a rejection handler chained off of Promise.reject
- unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection
- unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection
- unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler
- unhandledrejection: from a throw in a fulfillment handler
- unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler
- unhandledrejection: from Promise.reject, indirected through Promise.all
- unhandledrejection: from createImageBitmap which is UA triggered
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject, indirecting through Promise.all
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a setTimeout-delayed rejection in a fulfillment handler
- no unhandledrejection/rejectionhandled: all inside a queued task, a rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from createImageBitmap
- delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)
- delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)
- delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a queueTask
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a queueTask
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout
- delayed handling: a task delay before attaching a handler prevents unhandledrejection
- delayed handling: queueTask after promise creation/rejection, plus promise microtasks, is not too late to attach a rejection handler
- delayed handling: queueTask before promise creation/rejection, plus many promise microtasks, is not too late to attach a rejection handler
- delayed handling: queueTask after promise creation/rejection, plus many promise microtasks, is not too late to attach a rejection handler
- delayed handling: a nested-task delay before attaching a handler causes unhandledrejection
- delayed handling: a nested-queueTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler
- delayed handling: a nested-queueTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler
- delayed handling: a nested-queueTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler
- delayed handling: delaying handling by setTimeout(,10) will cause both events to fire
- delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire
- mutationObserverMicrotask vs. queueTask ordering is not disturbed inside unhandledrejection events
- queueTask ordering vs. the task queued for unhandled rejection notification (1)
- queueTask ordering vs. the task queued for unhandled rejection notification (2)
- rejectionhandled is dispatched from a queued task, and not immediately
promise-rejection-events.serviceworker.https.html 37 / 37 passingChrome 37 / 370 failedClean
37 passing subtests
- Service worker setup
- unhandledrejection: from Promise.reject
- unhandledrejection: from a synchronous rejection in new Promise
- unhandledrejection: from a task-delayed rejection
- unhandledrejection: from a setTimeout-delayed rejection
- unhandledrejection: from a throw in a rejection handler chained off of Promise.reject
- unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection
- unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection
- unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler
- unhandledrejection: from a throw in a fulfillment handler
- unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler
- unhandledrejection: from Promise.reject, indirected through Promise.all
- unhandledrejection: from createImageBitmap which is UA triggered
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject, indirecting through Promise.all
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a setTimeout-delayed rejection in a fulfillment handler
- no unhandledrejection/rejectionhandled: all inside a queued task, a rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler
- no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from createImageBitmap
- delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)
- delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)
- delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a queueTask
- microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a queueTask
- microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout
- delayed handling: a nested-task delay before attaching a handler causes unhandledrejection
- delayed handling: a nested-queueTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler
- delayed handling: a nested-queueTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler
- delayed handling: a nested-queueTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler
- delayed handling: delaying handling by setTimeout(,10) will cause both events to fire
- delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire
- mutationObserverMicrotask vs. queueTask ordering is not disturbed inside unhandledrejection events
promise-resolution-order.html 0 / 1 passingChrome 1 / 10 failedExempt
Exempt from the 0.1 gate: Crane follows the browser majority
its scripts' src is " ", which HTML encoding-parses to the document's base URL and fetches (only the empty string fires error), so the error events the test waits for never come and it times out in Crane and Firefox ("Promise rejection ordering": TIMEOUT); Chrome 157 and Safari 27.2 stable treat the src as empty and fire error (Chrome passes, Safari fires them in another order)
- Crane matches
- Firefox
- Chrome
- wpt.fyi run 4786307730243584: 1/1 (Chrome 157, 2358bd4835)
- Firefox
- wpt.fyi run 4877168468033536: 0/1 (Firefox 160, 2358bd4835; TIMEOUT)
- Safari
- wpt.fyi run 6479119966273536: 0/1 (Safari 27.2, 2358bd4835)
- Ruling
- WebKit adopted the spec in d0627f4a50 (2026-10-09); Safari 27.2 stable lags; spec + Firefox (the integrator, 2026-11-20 4:25 PM ET); whitespace-with-base.html and -module.html, which Firefox passes, pin the same rule
- Revisit
- when Chrome, Firefox or Safari changes its result on a newer aligned wpt.fyi run, or Crane's result moves
/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-resolution-order.html TIMEOUT 0 / 1
- ¶
TIMEOUTPromise rejection ordering
Test timed out