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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/navigation_interception/navigation_from_image_onload.html
diff --git a/chrome/test/data/navigation_interception/navigation_from_user_gesture.html b/chrome/test/data/navigation_interception/navigation_from_image_onload.html
similarity index 66%
copy from chrome/test/data/navigation_interception/navigation_from_user_gesture.html
copy to chrome/test/data/navigation_interception/navigation_from_image_onload.html
index 885df973d0ba02cb64c9450c2f792372261707bc..6d053f5271515df4509c2433c73a357395573655 100644
--- a/chrome/test/data/navigation_interception/navigation_from_user_gesture.html
+++ b/chrome/test/data/navigation_interception/navigation_from_image_onload.html
@@ -2,7 +2,7 @@
<html>
<!--
-Copyright (c) 2015 The Chromium Authors. All rights reserved.
+Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
@@ -21,13 +21,18 @@ found in the LICENSE file.
}
</style>
<script>
- function openHello(e) {
- window.location = 'hello.html';
+ function pingAndOpenHello(e) {
+ var img = new Image();
+ img.onload = function () {
+ window.location = 'hello.html';
+ }
+ img.src = '../image_search/valid.png';
+
e.preventDefault();
};
function setup() {
- first.ontouchstart = openHello;
+ first.ontouchstart = pingAndOpenHello;
};
</script>
</head>
« 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