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

Quelle  frameStoragePrevented.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/tests/mochitest/general/frameStoragePrevented.html



<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>frame for storage prevented test</title>

<script type="text/javascript" src="https://example.com/tests/dom/tests/mochitest/general/storagePermissionsUtils.js"></script>
<script  type="text/javascript">

  task(async function() {
    // We shouldn't be able to access storage
    await storagePrevented();

    // This hash of the URI is set to #nullprincipal by the test if the current page has a null principal,
    // and thus attempting to create a dedicated worker will throw
    if (location.hash == "#nullprincipal") {
      function createWorker() {
        return new Promise((resolve, reject) => {
          var w;
          try {
            w = new Worker("workerStoragePrevented.js#outer");
          } catch (e) {
            ok(true, "Running workers was prevented");
            resolve();
          }

          w.onerror = function() {
            ok(true, "Running workers was prevented");
            resolve();
         }
        });
      }

      await createWorker();
      return;
    }

    // Try to run a worker, which shouldn't be able to access storage
    await runWorker("workerStoragePrevented.js#outer");
  });

</script>

</head>

<body>
</body>
</html>

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

¤ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






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.