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

Quelle  test_nosniff_navigation.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/security/test/general/test_nosniff_navigation.html


<!DOCTYPE HTML>
<html>

<head>
  <title>Bug 1428473 Support X-Content-Type-Options: nosniff when navigating</title>
  <!-- Including SimpleTest.js so we can use waitForExplicitFinish !-->
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>

<body>

  <!-- add the two script tests -->
  <script id="scriptCorrectType"></script>
  <script id="scriptWrongType"></script>

  <script class="testbody" type="text/javascript">
    /* Description of the test:
     * We're testing if Firefox respects the nosniff Header for Top-Level
     * Navigations.
     * If Firefox cant Display the Page, it will prompt a download 
     * and the URL of the Page will be about:blank.
     * So we will try to open different content send with
     * no-mime, mismatched-mime and garbage-mime types.
     * 
     */

    SimpleTest.waitForExplicitFinish();

    window.addEventListener("load", async () => {
      window.open("window_nosniff_navigation.html");
    });
  </script>
</body>
</html>

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

¤ Dauer der Verarbeitung: 0.1 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.