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

Side by Side Diff: chrome/test/data/navigation_interception/navigation_from_xhr_callback.html

Issue 2414273003: Remove UserGesture on touch scrolls (Closed)
Patch Set: Improve comments Created 4 years, 1 month 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 <!-- 3 <!--
4 4
5 Copyright (c) 2015 The Chromium Authors. All rights reserved. 5 Copyright (c) 2015 The Chromium Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 --> 9 -->
10 <head> 10 <head>
(...skipping 20 matching lines...) Expand all
31 31
32 function xhrAndOpenHello(e) { 32 function xhrAndOpenHello(e) {
33 xmlhttp.onreadystatechange = xhrOnReadyStateChange; 33 xmlhttp.onreadystatechange = xhrOnReadyStateChange;
34 xmlhttp.open("GET", 'hello.html' , true); 34 xmlhttp.open("GET", 'hello.html' , true);
35 xmlhttp.send(); 35 xmlhttp.send();
36 36
37 e.preventDefault(); 37 e.preventDefault();
38 }; 38 };
39 39
40 function setup() { 40 function setup() {
41 first.ontouchstart = xhrAndOpenHello; 41 first.ontouchend = xhrAndOpenHello;
42 }; 42 };
43 </script> 43 </script>
44 </head> 44 </head>
45 <body onload='setup();'> 45 <body onload='setup();'>
46 <div id='first'></div> 46 <div id='first'></div>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698