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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/base-uri-deny-expected.txt

Issue 2447003002: CSP: 'violated-directive' should match 'effective-directive'. (Closed)
Patch Set: Created 4 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
1 CONSOLE ERROR: line 24: Refused to set the document's base URI to 'http://exampl e.com/base' because it violates the following Content Security Policy directive: "base-uri 'self'". 1 CONSOLE ERROR: line 24: Refused to set the document's base URI to 'http://exampl e.com/base' because it violates the following Content Security Policy directive: "base-uri 'self'".
2 2
3 Check that base URIs cannot be set if they violate the page's policy. 3 Check that base URIs cannot be set if they violate the page's policy.
4 4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6 6
7 7
8 Kicking off the tests: 8 Kicking off the tests:
9 PASS document.baseURI is document.location.href 9 PASS document.baseURI is document.location.href
10 PASS window.e.documentURI is "http://127.0.0.1:8000/security/contentSecurityPoli cy/1.1/base-uri-deny.html" 10 PASS window.e.documentURI is "http://127.0.0.1:8000/security/contentSecurityPoli cy/1.1/base-uri-deny.html"
11 PASS window.e.referrer is "" 11 PASS window.e.referrer is ""
12 PASS window.e.blockedURI is "http://example.com/base" 12 PASS window.e.blockedURI is "http://example.com/base"
13 PASS window.e.violatedDirective is "base-uri 'self'" 13 PASS window.e.violatedDirective is "base-uri"
14 PASS window.e.effectiveDirective is "base-uri" 14 PASS window.e.effectiveDirective is "base-uri"
15 PASS window.e.originalPolicy is "base-uri 'self'" 15 PASS window.e.originalPolicy is "base-uri 'self'"
16 PASS window.e.sourceFile is "http://127.0.0.1:8000/security/contentSecurityPolic y/1.1/base-uri-deny.html" 16 PASS window.e.sourceFile is "http://127.0.0.1:8000/security/contentSecurityPolic y/1.1/base-uri-deny.html"
17 PASS window.e.lineNumber is 24 17 PASS window.e.lineNumber is 24
18 PASS successfullyParsed is true 18 PASS successfullyParsed is true
19 19
20 TEST COMPLETE 20 TEST COMPLETE
21 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698