зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1693620 [wpt PR 27684] - Avoid DCHECK in HTMLSelectElement::SetOption, a=testonly
Automatic update from web-platform-tests Avoid DCHECK in HTMLSelectElement::SetOption SetOption adds a new <option>, but in some unusual cases, the <option> can be a parent of the <select> which it is getting added to, which prevents the <option> from being appended to the <select>. This adds a check to the ExceptionState which reflects the failure to append instead of continuing on assuming that the <option> was successfully appended. Fixed: 1178128 Change-Id: Ibfc04c2d4eb672fa2d7695855ffd8ca3d773337b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2704645 Reviewed-by: Mason Freed <masonfreed@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/master@{#855411} -- wpt-commits: 9b7fac08b053897d5b60337ffd9811c9d380e3a3 wpt-pr: 27684
This commit is contained in:
Родитель
81b97557b4
Коммит
09ad907867
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel=author href="mailto:jarhar@chromium.org">
|
||||
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1178128">
|
||||
|
||||
<script>
|
||||
function iframeloadhandler() {
|
||||
selectid[5] = optionid;
|
||||
}
|
||||
</script>
|
||||
<option id="optionid" selected>
|
||||
<select id="selectid">
|
||||
<select>
|
||||
<iframe onload="iframeloadhandler()">
|
Загрузка…
Ссылка в новой задаче