Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/docshell/test/navigation/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Impressum test_same_url.html   Interaktion und
PortierbarkeitHTML

 
 products/Sources/formale Sprachen/C/Firefox/docshell/test/navigation/test_same_url.html



<!DOCTYPE HTML>
<html>
<head>
    <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    <script type="application/javascript" src="/tests/SimpleTest/SpecialPowers.js"></script>
    <script type="application/javascript">
    // Since BFCache in parent requires no opener, use BroadcastChannel
    // to communicate with file_same_url.html.

    async function test() {
        await SimpleTest.enableLegacyUnpartitionedStorage();
        let bc = new BroadcastChannel("test_same_url");
        async function waitForLoad() {
            return new Promise(resolve => {
                let listener = e => {
                    if (e.data.bodyOnLoad) {
                        bc.removeEventListener("message", listener);
                        setTimeout(() => resolve(e.data.bodyOnLoad), 0);
                    }
                };
                bc.addEventListener("message", listener);
            });
        }
        var promise;
        let historyLength;

        promise = waitForLoad();
        window.open("file_same_url.html""_blank""noopener=yes");
        historyLength = await promise;
        is(historyLength, 1, "before same page navigation");

        promise = waitForLoad();
        bc.postMessage("linkClick");
        historyLength = await promise;
        is(historyLength, 1, "after same page navigation");
        bc.postMessage("closeWin");

        SimpleTest.finish();
    }

    </script>
</head>

<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1745730">Bug 1745730</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
</script>
</pre>
<body onload="test()">
</body>
</html>


Messung V0.5
C=100 H=99 G=99

¤ 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.0.2Bemerkung:  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.