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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html

Issue 1366983003: Prevent CheckboxInputType from being freed by change event handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testcase Created 5 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/CheckboxInputType.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/checkbox/checkbox-change-event-free.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html b/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html
new file mode 100644
index 0000000000000000000000000000000000000000..e77cd9cb0f3dce86498418e2fc84d6ce86fd8512
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
tkent 2015/09/25 00:44:45 This is a pixel test unnecessarily. Please include
Oliver Chang 2015/09/25 04:06:03 Sorry, wasn't too familiar with these layout tests
+<body>
+
+<label><input type=checkbox></label>
+<script>
+var label = document.querySelector('label');
+var checkbox = document.querySelector('input');
+checkbox.addEventListener('change', function() {
+ this.removeAttribute('type');
+});
+label.click();
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/CheckboxInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698