Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/security/test/unit/     Datei vom 27.6.2026 mit Größe 10 kB image not shown  

Quelle  iframe_delivering_chips.html  Sprache: HTML


 products/Sources/formale Sprachen/C/Firefox/dom/reporting/tests/iframe_delivering_chips.html


<!DOCTYPE HTML>
<html>
<head>
  <title>Test for CHIPS cookie in reporting response</title>
</head>
<body>

<script type="application/javascript">

function ok(a, msg) {
  parent.postMessage({type: "test", check: !!a, msg }, "*");
}

function finish() {
  parent.postMessage({type: "finish" }, "*");
}

function checkReport() {
  return new Promise(resolve => {
    let id = setInterval(_ => {
      fetch("delivering.sjs?task=check&min=1")
      .then(r => r.text())
      .then(text => {
        if (text) {
          resolve(JSON.parse(text));
          clearInterval(id);
        }
      });
    }, 1000);
  });
}

// Trigger a deprecation report.
new TestingDeprecatedInterface();

checkReport()
.then(reports => {
  ok(reports.length >= 1, "We received at least one report");
  ok(!!reports[0].body, "The report has a body");
  finish();
});

</script>
</body>
</html>

Messung
CHZG
899910096

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-25) ¤

*© Formatika GbR, Deutschland