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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/touch-target-removed-crash.html

Issue 1895303007: Non passive touch end or touch cancel listeners should not block scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <p id="description">Test passes if no crash.</p> 4 <p id="description">Test passes if no crash.</p>
5 <script> 5 <script>
6 if (window.testRunner) { 6 if (window.testRunner) {
7 7
8 window.testRunner.dumpAsText(); 8 window.testRunner.dumpAsText();
9 9
10 function crash() { 10 function crash() {
11 var div = document.createElement('div'); 11 var div = document.createElement('div');
12 div.ontouchstart = function() { }; 12 div.ontouchstart = function() { };
13 document.body.appendChild(div); 13 document.body.appendChild(div);
14 window.internals.touchEventHandlerCount(document); 14 window.internals.touchStartOrMoveEventHandlerCount(document);
15 div.parentNode.removeChild(div); 15 div.parentNode.removeChild(div);
16 div = 0; 16 div = 0;
17 if (window.GCController) 17 if (window.GCController)
18 GCController.collect(); 18 GCController.collect();
19 window.internals.touchEventHandlerCount(document); 19 window.internals.touchStartOrMoveEventHandlerCount(document);
20 } 20 }
21 21
22 crash(); 22 crash();
23 } 23 }
24 </script> 24 </script>
25 </body> 25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698