Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/accessibility-hidden-select-crash.html

Issue 2914723002: Fix crash in hidden <select> (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <h1>Hidden select box shouldn't cause a crash</h1>
5 <select id="listbox" hidden>
6 <option>one</option>
7 <option>two</option>
8 </select>
9 <script>
10 let listbox = document.querySelector("#listbox");
11 let option = document.createElement("option");
12 option.id = "option";
13 listbox.appendChild(option);
14
15 test(function(t) {
16 accessibilityController.accessibleElementById("option");
17 }, "Shouldn't crash when adding an option to a hidden <select>");
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698