Skip to content

Commit

Permalink
Bug 1928137 [wpt PR 48886] - Prevent infinite loop in nested customiz…
Browse files Browse the repository at this point in the history
…able selects, a=testonly

Automatic update from web-platform-tests
Prevent infinite loop in nested customizable selects

Nesting selects with <selectedoption> elements can lead to infinite
cloning. By preventing the nested select's <selectedoption> from doing
any cloning, the infinite loop is fixed.

Fixed: 373893049
Change-Id: I9c493be5dfc1dd51c3d3aa2e10ee2a1d2f27d071
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5939531
Reviewed-by: Traian Captan <tcaptan@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1375888}

--

wpt-commits: c332da54a2e24b488c538cfd5b036763304bb1fc
wpt-pr: 48886
  • Loading branch information
josepharhar authored and moz-wptsync-bot committed Oct 31, 2024
1 parent 7643d71 commit 9f02316
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://issues.chromium.org/issues/373893049">

<style>
select,::picker(select) {
appearance: base-select;
}
</style>

<select>
<button>
Hello??
<selectedoption />
</button>
<option>
<object type="no/type">
<select>
<button>
Hello??
<selectedoption />
</button>
<option>One</option>
<option>Two</option>
</select>
</object>
</option>
<option>Two</option>
</select>

0 comments on commit 9f02316

Please sign in to comment.