/* *Thistestisforbug1002724. *https://bugzilla.mozilla.org/show_bug.cgi?id=1002724 * *WhenauserentersahostnameorIPaddressintheURLbar,"http"is *assumed.Ifthehostrejects*java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53 * *Thisteststhatwhenauserenters"example.com",itattemptstoload 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]],
});
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.