mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 785860 - fix sts preload list tests to skip private mode tests if private browsing service is missing - conditionally call run_next_test based on if we're in private browsing mode or not. r=bsmith
This commit is contained in:
parent
4fabe12e02
commit
0e6d868ee2
@ -142,9 +142,15 @@ function test_part1() {
|
|||||||
do_check_true(gSTSService.isStsHost("sibling.cert.se"));
|
do_check_true(gSTSService.isStsHost("sibling.cert.se"));
|
||||||
do_check_false(gSTSService.isStsHost("another.subdomain.cert.se"));
|
do_check_false(gSTSService.isStsHost("another.subdomain.cert.se"));
|
||||||
|
|
||||||
// test private browsing correctly interacts with removing preloaded sites
|
// Test private browsing correctly interacts with removing preloaded sites.
|
||||||
if (getPBSvc())
|
// If we don't have the private browsing service, don't run those tests
|
||||||
|
// (which means we have to manually call run_next_test() instead of relying
|
||||||
|
// on our observer to call it).
|
||||||
|
if (getPBSvc()) {
|
||||||
getPBSvc().privateBrowsingEnabled = true;
|
getPBSvc().privateBrowsingEnabled = true;
|
||||||
|
} else {
|
||||||
|
run_next_test();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_private_browsing1() {
|
function test_private_browsing1() {
|
||||||
|
Loading…
Reference in New Issue
Block a user