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

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

Issue 1056913008: Carry over a user gesture bit for all the non-main frame request types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Carry over user gesture bit for all non-main frame request types Created 5 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
« no previous file with comments | « chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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>
11 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> 11 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
12 <style> 12 <style>
13 #first { 13 #first {
14 position: absolute; 14 position: absolute;
15 width: 100px; 15 width: 100px;
16 height: 100px; 16 height: 100px;
17 top: 0px; 17 top: 0px;
18 left: 0px; 18 left: 0px;
19 background-color: green; 19 background-color: green;
20 -webkit-transform: translate3d(0, 0, 0); 20 -webkit-transform: translate3d(0, 0, 0);
21 } 21 }
22 </style> 22 </style>
23 <script> 23 <script>
24 function openHello(e) { 24 function pingAndOpenHello(e) {
25 window.location = 'hello.html'; 25 var img = new Image();
26 img.onload = function () {
27 window.location = 'hello.html';
28 }
29 img.src = '../image_search/valid.png';
30
26 e.preventDefault(); 31 e.preventDefault();
27 }; 32 };
28 33
29 function setup() { 34 function setup() {
30 first.ontouchstart = openHello; 35 first.ontouchstart = pingAndOpenHello;
31 }; 36 };
32 </script> 37 </script>
33 </head> 38 </head>
34 <body onload='setup();'> 39 <body onload='setup();'>
35 <div id='first'></div> 40 <div id='first'></div>
36 </body> 41 </body>
37 </html> 42 </html>
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698