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

Side by Side Diff: chrome/test/data/save_page/unauthorized-access.htm

Issue 2075273002: Resource requests from Save-Page-As should go through CanRequestURL checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace MarkAsUnauthorized with constructor argument. Created 4 years, 4 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/test/data/save_page/text.txt ('k') | content/browser/download/docs/save-page-as.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>
4 Test page for saving page feature
5 </title>
6 </head>
7 <body>
8 When this page is loaded over HTTP (i.e. via embedded_test_server() from a
9 browser test), then it should be denied access to local resources, like the
10 file: URI from the img tag below. This test verifies that access to the
11 file: URI will also be forbidden when saving all resources of the page
12 during Save-Page-As-Complete-HTML.
13 <img id="resource1"
14 src="file:///path-to-be-set-at-test-runtime/should-not-save.txt"></img>
15 </body>
16 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/save_page/text.txt ('k') | content/browser/download/docs/save-page-as.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698