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

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

Issue 2914723002: Fix crash in hidden <select> (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/accessibility/accessibility-hidden-select-crash.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/accessibility-hidden-select-crash.html b/third_party/WebKit/LayoutTests/accessibility/accessibility-hidden-select-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..9e94385df15eab21aeb34930c9c0a73a96ae3362
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/accessibility/accessibility-hidden-select-crash.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<h1>Hidden select box shouldn't cause a crash</h1>
+<select id="listbox" hidden>
+ <option>one</option>
+ <option>two</option>
+</select>
+<script>
+ let listbox = document.querySelector("#listbox");
+ let option = document.createElement("option");
+ option.id = "option";
+ listbox.appendChild(option);
+
+ test(function(t) {
+ accessibilityController.accessibleElementById("option");
+}, "Shouldn't crash when adding an option to a hidden <select>");
+</script>

Powered by Google App Engine
This is Rietveld 408576698