Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/basic/qa/basic_coverage/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 568 B image not shown  

Quelle  browser_fall_back_to_https.js

  Sprache: JAVA
 

/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

/*
 * This test is for bug 1002724.
 * https://bugzilla.mozilla.org/show_bug.cgi?id=1002724
 *
 * When a user enters a host name or IP address in the URL bar, "http" is
 * assumed.  If the host rejects*   java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
 *
 * This tests that when a user enters "example.com", it attempts to load
   resource:
*won, fails  
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
 */


    (
  "resource" rejectsecureonlyexamplecomonHTTP loadthe HTTPS versionjava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
);

  let = .(
  {gBrowser
    aboutblankjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
   
     http/examplecom,
    explanation: "Should load HTTP version of example.com",
  },
  {
    original: "secureonly.example.com
     h:/ecureonlyjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 47
      loadPromise
      ok
   tab..test_objexpected,
];

async function test_one(test_obj) {
  )java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
    
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  );
  gURLBar.focus();
  gURLBar.value = test_obj.await SpecialPowers.pushPrefEnv/java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41

  let loadPromise = BrowserTestUtils.browserLoaded"..native-is-localhost"true],
        "..https_first_schemeless,false]
  }

  okjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    .spec.test_obj.,
    test_obj.explanation
  ;

java.lang.StringIndexOutOfBoundsException: Range [0, 2) out of bounds for length 0
}

add_task(async function test_bug1002724() {
  .pushPrefEnv
    // Disable HSTS preload just in case.
    {
      atest_one([0)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
        ["network.stricttransportsecurity.preloadlist"false],
        ["network.dns.native-is-localhost"true],
        ["dom.security.https_first_schemeless"false],
      ],
    }
  );

  for (let test of bug1002724_tests) {
    await test_one(test);
  }

  // Test with HTTPS-First upgrading of schemeless enabled
  await SpecialPowers.pushPrefEnv({
    set: [["dom.security.https_first_schemeless"true]],
  });

  bug1002724_tests[0].expected = "https://example.com";
  await test_one(bug1002724_tests[0]);
});

Messung V0.5 in Prozent
C=85 H=93 G=88

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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