[wpt-sync] Sync PR 41517 - LoAF: Make sure callbacks don't cancel promise resolver attribution
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox119 fixed)
| Tracking | Status | |
|---|---|---|
| firefox119 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41517 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41517
Details from upstream follow.
Noam Rosenthal <nrosenthal@chromium.org> wrote:
LoAF: Make sure callbacks don't cancel promise resolver attribution
Some callbacks (e.g. URLSearchParams.forEach) can be invoked
synchronously. If there is a pending promise resolver, those callbacks
should not cancel it as pending.Fixed by using the existing user_callback_counter to also account
for promise resolvers.The callback in the bug is TrustedTypePolicy.CreateHTML, but using
URLSearchParams.forEach in the test as it's more widely supported.Bug: 1473663
Change-Id: Id0036304d9f8a434de6d0a8a06be3087a1b21e24
Reviewed-on: https://chromium-review.googlesource.com/4790449
WPT-Export-Revision: 3a7743b8fec271cd632a3821d969d554bf837328
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
ERROR: 1
Chrome
OK : 1
FAIL : 1
Safari
ERROR: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /long-animation-frame/tentative/loaf-callback-after-promise.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)
Comment 5•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ea94d09f1881
https://hg.mozilla.org/mozilla-central/rev/f824af5b88bb
Description
•