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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html

Issue 2568443002: INPUT element: Do not use identical ID name for SearchFieldCancelButtonElement and ClearButtonEleme… (Closed)
Patch Set: step_func_done Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html b/third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..e76049482faf20f5ec4df543222bc908c19d14e8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/search/search-type-change-crash.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<body>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<div id="container">
+<style></style>
+<input id="input" type="time" onblur="this.type = 'search';">
+</div>
+<script>
+var test = async_test('No crash by changing type on blur.');
+window.onload = test.step_func_done(() => {
+ document.querySelector('#input').focus();
+ document.querySelector('#container').style.display = 'none';
+ document.querySelector('#input').value = '23:59';
+});
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698