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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>
4 Test page for saving page with referrer policy
5 </title>
6 <!-- Note that the referrer policy below was chosen so that it
7 will cause URLRequestJob::ComputeReferrerForRedirect to return
8 *modified* referrer for url request associated with img.src below.
9 -->
10 <meta name="referrer" content="origin-when-crossorigin">
11 <link type="text/css" href="1.css" rel="stylesheet">
12 </head>
13 <body>
14 Content verification marker: 3a35f7fa-96a9-4487-9f18-4470263907fa
15
16 The picture below is the back button.<br>
17
18 <!-- The URI below won't be handled by the embedded_test_server,
19 because it is missing the port. OTOH, we need to go cross-site
20 *immediately* / without redirect (because the redirect will kick-off a
21 correct recalculation of the referrer uri and this will mean that we
22 won't repro crbug.com/550289). Because of this we cannot use the
23 typical cross-site redirection via /cross-site/bar.com/... uri.
24
25 Also note that (because of setting up custom host resolution in
26 SavePageSitePerProcessBrowserTest::SetUpOnMainThread) accessing the
27 site below will be redirected to 127.0.0.1 (so we aren't really
28 hitting a random internet server via this test file).
29 -->
30 <img src="http://no-such-cross-site.com/save_page/1.png"> </img>
31 </body>
32 </html>
OLDNEW
« 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