[wpt-sync] Sync PR 59528 - Don't update selectedcontent in option insertion/removal steps
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
100.74 KB,
text/plain
|
Details |
Sync web-platform-tests PR 59528 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/59528
Details from upstream follow.
Joey Arhar <jarhar@chromium.org> wrote:
Don't update selectedcontent in option insertion/removal steps
Modifying the DOM by updating selectedcontent elements during insertion
or removal steps is bad for security reasons. We already removed the
selectedcontent element removal steps which was one way this can happen,
but the option's InsertedInto and RemovedFrom methods may change which
option is selected, which will synchronously update the selectedcontent
element.This patch fixes this by moving the selectedcontent updating to the
post-insertion steps for insertion, and by using a microtask to update
on removal if needed.Bug: 458113204
Change-Id: I42bb94c6eace93445cfbc816529e42ca8a561b94Reviewed-on: https://chromium-review.googlesource.com/7745871
WPT-Export-Revision: 17a5098bfd651b010a8ed5aa18d367d52a04c564
| Assignee | ||
Comment 1•18 days ago
|
||
PR 59528 applied with additional changes from upstream: d98d04b89268d8edfef3b1d43911b346c17c6611
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Comment 2•17 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=4ea8d4b9fb3c97d39e7c85e4f6825c8b23b670bc
| Assignee | ||
Comment 3•17 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 137 tests
Status Summary
Firefox
OK : 3[GitHub] 62[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 7[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 68[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 73[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 83[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 84[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL : 17[GitHub] 123[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 150[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 179[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 180[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 1
Chrome
OK : 4
PASS : 11
FAIL : 6
Safari
OK : 4
PASS : 7
FAIL : 10
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /html/semantics/forms/the-select-element/customizable-select/selectedcontent-insertion-removal.html [wpt.fyi]
- Selectedcontent element insertion steps.:
FAIL
- Selectedcontent element insertion steps.:
- /html/semantics/forms/the-select-element/customizable-select/selectedcontent-mutations.html [wpt.fyi]
- MutationObserver records during parsing of <select> with <selectedcontent>: test1:
FAIL - MutationObserver records during parsing of <select> with <selectedcontent>: test2:
FAIL - MutationObserver records during parsing of <select> with <selectedcontent>: test5:
FAIL
- MutationObserver records during parsing of <select> with <selectedcontent>: test1:
- /html/semantics/forms/the-select-element/customizable-select/selectedcontent.html [wpt.fyi]
- When there are multiple <selectedcontent> elements, both of them should be kept up to date.:
FAIL
- When there are multiple <selectedcontent> elements, both of them should be kept up to date.:
(See attachment for full changes)
Comment 5•9 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/86fb81e4e646
https://hg.mozilla.org/mozilla-central/rev/521efa774a8e
Description
•