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

Quelle  test_cookieBlock.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/tests/mochitest/localstorage/test_cookieBlock.html


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>cookie blocking test</title>

<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />

<script type="text/javascript">

function startTest()
{
  // Let's use a new window to have the cookie permission applied.
  let w = window.open("windowProxy.html");
  w.onload = _ => {
    try {
      w.localStorage.setItem("blocked""blockedvalue");
      ok(false, "Exception for localStorage.setItem, ACCESS_DENY");
    }
    catch (ex) {
      ok(true, "Exception for localStorage.setItem, ACCESS_DENY");
    }

    try {
      w.localStorage.getItem("blocked");
      ok(false, "Exception for localStorage.getItem, ACCESS_DENY");
    }
    catch (ex) {
      ok(true, "Exception for localStorage.getItem, ACCESS_DENY");
    }

    w.close();
    SpecialPowers.popPermissions(() => {
      SimpleTest.finish();
    });
  }
}

SimpleTest.waitForExplicitFinish();

// Initialize storage before setting the cookie, otherwise we won't be testing
// the checks in setItem/getItem methods.
var storage = localStorage;

SpecialPowers.pushPermissions([{'type''cookie''allow': false, 'context': document}], startTest);

</script>

</head>

<body>

</body>
</html>

Messung V0.5 in Prozent
C=95 H=92 G=93

¤ Dauer der Verarbeitung: 0.22 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© 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.