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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/img-src/img-src-host-partial-wildcard-allowed.sub.html

Issue 2763253002: Fixed external wpt csp img-src/* tests. (Closed)
Patch Set: Switched to placeholders instead of hardcoded URLs Created 3 years, 9 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta http-equiv="Content-Security-Policy" content="img-src *.{{host}}:{{ports[h ttp][0]}}">
3 <html>
4 <head>
5 <title>img-src works correctly with partial host wildcard.</title>
6 <script src='/resources/testharness.js'></script>
7 <script src='/resources/testharnessreport.js'></script>
8 </head>
9 <body>
10 <div id='log'/>
11
12 <script>
13 var t1 = async_test("img src matches correctly partial wildcard host csp d irective");
14 </script>
15 <img src='http://{{domains[www]}}:{{ports[http][0]}}/content-security-policy /support/pass.png'
16 onload='t1.done();'
17 onerror='t1.step(function() { assert_unreached("Image should have loade d"); t1.done(); });'>
18
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698