blob: 782ce0a9d1c528fd5bcc44c5e60a7ffbb74c59d0 [file] [log] [blame]
CONSOLE ERROR: line 24: Refused to set the document's base URI to 'http://example.com/base' because it violates the following Content Security Policy directive: "base-uri 'self'".
Check that base URIs cannot be set if they violate the page's policy.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Kicking off the tests:
PASS document.baseURI is document.location.href
PASS window.e.documentURI is "http://127.0.0.1:8000/security/contentSecurityPolicy/1.1/base-uri-deny.html"
PASS window.e.referrer is ""
PASS window.e.blockedURI is "http://example.com/base"
PASS window.e.violatedDirective is "base-uri"
PASS window.e.effectiveDirective is "base-uri"
PASS window.e.originalPolicy is "base-uri 'self'"
PASS window.e.sourceFile is "http://127.0.0.1:8000/security/contentSecurityPolicy/1.1/base-uri-deny.html"
PASS window.e.lineNumber is 24
PASS successfullyParsed is true
TEST COMPLETE