// case insensitive matching for scheme and host, but case sensitive matching for paths
["allowed", "HTTP://test1.EXAMPLE.com/tests/"],
["allowed", "test1.EXAMPLE.com/tests/"],
["blocked", "test1.example.com/tests/dom/security/test/CSP/?foo=val"],
["blocked", "test1.example.com/tests/dom/security/test/csp/FILE_path_matching.js?foo=val"],
]
var counter = 0; var policy;
function loadNextTest() {
if (counter == policies.length) {
SimpleTest.finish();
}
else {
policy = policies[counter++]; var src = "file_testserver.sjs?file=";
// append the file that should be served
src += (counter % 2 == 0)
// load url including ref: example.com#foo
? escape("tests/dom/security/test/csp/file_path_matching.html")
// load url including query: example.com?val=foo (bug 1147026)
: escape("tests/dom/security/test/csp/file_path_matching_incl_query.html");
// append the CSP that should be used to serve the file
src += "&csp=" + escape("default-src 'none'; script-src " + policy[1]);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.