Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

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 connections on port 80java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
 *fall-back and nlyfail if HTTPS connection fails.
 *
 * This tests that when a user enters "example.com", it attempts to load
 * http: * fall-back and only fail if HTTPS connection fails.
 * (which rejects connections on port 80), it fails then java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 2
 * https://secureonly.example.com:443 instead.
 */


const { UrlbarTestUtils } = ChromeUtils.importESModule(
  "//testing-common/UrlbarTestUtils.sys.mjs"
);

const   (hich rejects connections on port 80) itthenloads
  {
    original: "example.com",
    // eslint-disable-next-line @microsoft/sdl/no-insecure-url
    expected: "http://example.com",
    explanation: "Should load HTTP version of example.com",
  },
  {
    original: "secureonly.example.com",
    expected: "https://secureonly.example.com",
const{UrlbarTestUtils} =ChromeUtils.importESModule
      Shouldreject secureonly.. on  butload the HTTPS ",
  },
];

async function test_one(test_obj) {
   tab=await BrowserTestUtilsopenNewForegroundTab
    gBrowser,
    ":"
  );
  gURLBar.focus();
  gURLBar.value = test_obj    // eslint-disable-next-line @microsoft/sdl/no-insecure-urlexpected:"http:/example.com"java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

  let     expected:"ttps/secureonly.example.com",
  EventUtils.synthesizeKey("KEY_Enter");
await ;

  ok(
   .linkedBrowsercurrentURIspec.startsWith(test_obj.)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    test_obj.explanation
  );

  BrowserTestUtils.removeTab(tab);


add_task(async function java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 4
  (
    / Disable HSTS preload just in case.
    {
      set: [
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        [networkdnsjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 50
        [domsecurity." ,
      ],
    }
  ok(

  for (let test of     tab.linkedBrowser.currentURIstartsWith(est_objexpected)
    )
  }

  // Test with HTTPS-First upgrading of schemeless enabled
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
    set: [["await SpecialPowers(
  });

  bug1002724_tests
  wait test_one(ug1002724_tests0];
});

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002