/** * Custom *.sjs specifically for the needs of * Bug 921493 - CSP: test allowlisting of scheme-relative sources */ function handleRequest(request, response) { Components.utils.importGlobalProperties(["URLSearchParams"]); let query = new URLSearchParams(request.queryString); let scheme = query.get("scheme"); let policy = query.get("policy"); let linkUrl = scheme + "://example.com/tests/dom/security/test/csp/file_scheme_relative_sources.js"; let html = "" + "" + "
" + "