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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/ftp-subresource-blocked.html

Issue 2656443005: Block 'ftp:' subresource requests from non-'ftp:' pages. (Closed)
Patch Set: test Created 3 years, 10 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 | « no previous file | third_party/WebKit/LayoutTests/security/block-test-expected.txt » ('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 <!DOCTYPE html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script>
5 async_test(t => {
6 var i = document.createElement('img');
7 i.onload = t.unreached_func('The image should not load.');
8 i.onerror = t.step_func_done(e => {
9 assert_equals(i.naturalWidth, 0);
10 assert_equals(i.naturalHeight, 0);
11 });
12
13 i.src = 'ftp://example.test/image.png';
14 }, "'ftp:' subresource requests fail.");
15 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/security/block-test-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698