/* Description of the test:
* Load an iframe using a CSP of 'sandbox allow-scripts' and make sure
* the security context of the iframe is sandboxed (cross origin)
*/
SimpleTest.waitForExplicitFinish();
window.addEventListener("message", receiveMessage);
function receiveMessage(event) {
is(event.data.result, "", "document.domain of sandboxed iframe should be opaque");
window.removeEventListener("message", receiveMessage);
SimpleTest.finish();
}
let testframe = document.getElementById("testframe");
testframe.src = "file_sandbox_allow_scripts.html";
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.