Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/tests/mochitest/sessionstorage/     Datei vom 27.6.2026 mit Größe 621 B image not shown  

Quelle  file_http.html  Sprache: HTML


 products/Sources/formale Sprachen/C/Firefox/dom/tests/mochitest/sessionstorage/file_http.html


<html>
<head>
<script>

window.addEventListener("message", onMessageReceived);

function postMsg(msg)
{
  parent.postMessage(msg, "http://mochi.test:8888");
}

function onMessageReceived(event)
{
  if (event.data == "check") {
    postMsg(sessionStorage.getItem("foo"));

    var gotValue = "threw";
    try {
      gotValue = sessionStorage.getItem("foo-https");
    } catch (e) {
    }

    postMsg(gotValue);

    postMsg("the end");
  }
}

function start()
{
  sessionStorage.setItem("foo", "insecure");
  postMsg(sessionStorage.getItem("foo"));
}

</script>
</head>
<body onload="start();">
insecure
</body>
</html>

Messung
CHZG
829910093

¤ Dauer der Verarbeitung: 0.16 Sekunden  ¤

*© Formatika GbR, Deutschland