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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 Test passes if it does not crash.<br>
mstensho (USE GERRIT) 2017/04/27 20:16:11 I can't get it to crash (without the patch). Also
chrishtr 2017/04/28 02:21:34 Fixed - the uploaded version has a one-character t
mstensho (USE GERRIT) 2017/04/28 07:46:48 Take a look at e.g. LayoutTests/fast/events/focus-
3 <iframe id=iframe srcdoc="
4 <style>
5 .c:hover { display: block; }
6 .c { content: attr(class); width: 400px; height: 400px; }
7 </style<meta http-equiv=refresh content=1 />
8 <body id=body>
9 <select id=target autofocus=autofocus size=2 class=c></select>
10 </body>"></iframe>
11 <script>
12 if (window.testRunner) {
13 window.testRunner.waitUntilDone();
14 window.testRunner.dumpAsText();
15 }
16 function callback() {}
17 function go() {
18 if (chrome.gpuBenchmarking) {
19 var pointerActions =
20 [{source: "mouse",
21 actions: [{name: "pointerMove", x: 200, y: 50 },
22 { name: "pointerDown", x: 200, y: 50 }]
23 }];
24 chrome.gpuBenchmarking.pointerActionSequence(pointerActions, callback);
25 setTimeout(function() {
26 pointerActions =
27 [{source: "mouse",
28 actions: [{ name: "pointerMove", x: 200, y: 51 },
29 { name: "pointerUp", x: 200, y: 51 }]
30 }];
31 chrome.gpuBenchmarking.pointerActionSequence(pointerActions, callbac k);
32 if (testRunner)
33 testRunner.notifyDone();
34 }, 1000);
mstensho (USE GERRIT) 2017/04/27 20:16:11 1000ms is quite a lot. Is it really necessary?
chrishtr 2017/04/28 02:21:34 Found a way to reduce to 50ms.
mstensho (USE GERRIT) 2017/04/28 07:46:48 W00t!! :)
35 }
36 }
37 onload = setTimeout(go, 0);
38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698