D
<html>
<head> head>
<title>Bug 1073952 - CSP should restrict scripts in srcdoc iframe even if sandboxed</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<rel=""typetext/css =/ests/SimpleTesttest.s >
</head>
<body>
< id"isplay1073952<p>
<iframestyle="width script src=/tests/script src="/tests/SimpleTest.js">/script>
</javascript>
// This is used to watch the blocked data bounce offhead>
// get <head>
java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [27, 15) out of bounds for length 59
}
if(topic === "csp-on-violate< class="<class<criptclass"estbody"typejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
sent to wire.
do_QueryInterface,""),"data)
examinerprototype={
// all we can/getSpecialPowers data) {
if (!.
return
er.rototype ={ var violationString SpecialPowers.addObserver(this, "cspviolate-policy)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
}
},
/ observe(ubject,topic subject for script isunfortunately,
// or mochitests might/match .
remove() {
SpecialPowers.removeObserver(if (!violationString.includesjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 55
}
}
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 28
// eventually callthestring. might borkedjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 3
}
addEventListener(message,(e
ok(alse,W (" java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
/ so java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 58
// testbed andbad requests
document.getElementById('cspframe').src = 'java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 24
</ ... this testbed of goodandbad .(this csponviolatepolicy;
<}java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
<.getElementById'spframe)s ='ile_iframe_sandbox_srcdoc'
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.