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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/base-uri/base-uri-allow.sub.html

Issue 2890763002: Un-skipped wpt/content-security-policy/base-uri (Closed)
Patch Set: CR changes Created 3 years, 7 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 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="base-uri {{location[sche me]}}://{{domains[www1]}}:{{ports[http][0]}}/">
5 <script src='/resources/testharness.js'></script>
6 <script src='/resources/testharnessreport.js'></script>
7
8 <script>
9 var t = async_test("Check that base URIs can be set if they do not violate the page's policy.");
10 window.addEventListener('securitypolicyviolation', t.step_func(function(t) {
11 assert_unreached('No CSP violation report should have been fired.');
12 }));
13 </script>
14
15 <base href="{{location[scheme]}}://{{domains[www1]}}:{{ports[http][0]}}/">
16 <script>
17 t.step(function() {
18 assert_equals(document.baseURI, "{{location[scheme]}}://{{domains[www1]}}: {{ports[http][0]}}/");
19 t.done();
20 });
21 </script>
22 </head>
23 <body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698