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

Unified Diff: chrome/test/data/save_page/b_with_referrer_policy_origin.htm

Issue 1411253013: ABANDONED CL: Adding a save-page test that uses a custom referrer policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@referrer-revert-to-default
Patch Set: Reuploading with no dependencies. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/save_page/b_with_referrer_policy_origin.htm
diff --git a/chrome/test/data/save_page/b_with_referrer_policy_origin.htm b/chrome/test/data/save_page/b_with_referrer_policy_origin.htm
new file mode 100644
index 0000000000000000000000000000000000000000..7d72f137e1a4130884427b5240d469830975d025
--- /dev/null
+++ b/chrome/test/data/save_page/b_with_referrer_policy_origin.htm
@@ -0,0 +1,32 @@
+<html>
+ <head>
+ <title>
+ Test page for saving page with referrer policy
+ </title>
+ <!-- Note that the referrer policy below was chosen so that it
+ will cause URLRequestJob::ComputeReferrerForRedirect to return
+ *modified* referrer for url request associated with img.src below.
+ -->
+ <meta name="referrer" content="origin-when-crossorigin">
+ <link type="text/css" href="1.css" rel="stylesheet">
+ </head>
+ <body>
+ Content verification marker: 3a35f7fa-96a9-4487-9f18-4470263907fa
+
+ The picture below is the back button.<br>
+
+ <!-- The URI below won't be handled by the embedded_test_server,
+ because it is missing the port. OTOH, we need to go cross-site
+ *immediately* / without redirect (because the redirect will kick-off a
+ correct recalculation of the referrer uri and this will mean that we
+ won't repro crbug.com/550289). Because of this we cannot use the
+ typical cross-site redirection via /cross-site/bar.com/... uri.
+
+ Also note that (because of setting up custom host resolution in
+ SavePageSitePerProcessBrowserTest::SetUpOnMainThread) accessing the
+ site below will be redirected to 127.0.0.1 (so we aren't really
+ hitting a random internet server via this test file).
+ -->
+ <img src="http://no-such-cross-site.com/save_page/1.png"> </img>
+ </body>
+</html>
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698