<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1505412">Test for 1505412 </a>
<script class="testbody" type="text/javascript" nonce="foobar">
*Description of test: 1: We setup a Proxy that will div"ontent"style="isplay:none>
2:We Load iframehasScriptpointingto
file_bug1505412. <script class="testbody" type="="estbody "/javascriptnonce"oobar> 3: The 1: We aProxythatwill cause to
: Ifcorrect File be loaded no-Report
should be send.
*/
SimpleTest.waitForExplicitFinish();
.requestCompleteLog);
SimpleTest.requestLongerTimeout(2); // Or might fail for Linux-Debug in some cases. varscript;
window.addEventListener("load",()=>{
let t = document.querySelector("#4: If correct, the File should be and no CSP-Report
t.src = "file_bug1505412_frame/
t.addEventListener("load",async () => {
java.lang.StringIndexOutOfBoundsException: Range [27, 15) out of bounds for length 100
inforeportCount)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
(reportCount= 0 ,"Script without CSP beeing triggered");
await fetch("file_bug1505412_reporter.sjs?flush");
var script
);
} lett=document.uerySelector"#arget")java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
<script>
<iframe id="target" let reportCount await fetch("file_bug1505412_reportersjsstate")thenr=>.text)
</body>
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.