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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html

Issue 2844593002: Protect against lifecycle updates that delete a layout object for autoscroll (Closed)
Patch Set: none Created 3 years, 8 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/HTMLSelectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html b/third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..fa6c76e5bdfd8ba8e05e0b7e5856f641cdfded18
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<iframe id=iframe srcdoc="
+<style>
+.c:hover { display: block; }
+.c { content: attr(class); width: 400px; height: 400px; }
+</style>
+<body id=body>
+ <select id=target autofocus=autofocus size=2 class=c></select>
+</body>"></iframe>
+<script>
+var testObj;
+function moveGesture() {
+ eventSender.mouseMoveTo(200, 51);
+ eventSender.mouseUp();
+ testObj.done();
+}
+function reloadIframe() {
+ iframe.contentWindow.location.reload();
+ setTimeout(moveGesture, 50);
mstensho (USE GERRIT) 2017/04/28 20:15:28 Looks like this timeout is slightly too low for my
+}
+function go(test) {
+ testObj = test;
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(200, 50);
+ eventSender.mouseDown();
+ setTimeout(reloadIframe, 0);
+ } else {
+ test.done();
+ }
+}
+
+async_test(go);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698