var BASE_URL = "example.com/tests/dom/base/test/bug704320.sjs";
function createTestUrl(schemeFrom, schemeTo, policy, action, type) {
return (
schemeTo +
"://" +
BASE_URL +
"?" +
"action=" +
action +
"&" +
"scheme=" +
schemeFrom +
"-to-" +
schemeTo +
"&" +
"policy=" +
policy +
"&" +
"type=" +
type
);
}
function create2ndLevelIframeUrl(schemeFrom, schemeTo, policy, type) {
return (
schemeFrom +
"://" +
BASE_URL +
"?" +
"action=create-2nd-level-iframe&" +
"scheme-from=" +
schemeFrom +
"&" +
"scheme-to=" +
schemeTo +
"&" +
"policy=" +
policy +
"&" +
"type=" +
type
);
}
// Creates the following test cases for the specified scheme and referrer
// policy combination:
//
// @import
// font-face
// bg-url
// \n\
\n\
\n\
\n\
\n\
\n\
\n\
\n\
\n\
\n\
\n\