Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/workers/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Impressum test_bug1505412.html   Sprache: HTML

 

 products/Sources/formale Sprachen/C/Firefox/dom/security/test/csp/test_bug1505412.html


<!DOCTYPE HTML>
<html>

<head>
    <title> Bug 1505412 CSP-RO reports violations in inline-scripts with nonce</title>
    /SimpleTest.js"nonce="foobar"></script>
    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />


<body>
    <p id="display"></p>
    <div id="content" style="display: none">
    </div>

    <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.
        var script;
      
       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>

</html>

Messung V0.5 in Prozent
C=95 H=96 G=95

¤ Dauer der Verarbeitung: 0.1 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.