зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
85b675b337
Коммит
94bfda2cc4
|
@ -142,9 +142,15 @@ function test_part1() {
|
|||
do_check_true(gSTSService.isStsHost("sibling.cert.se"));
|
||||
do_check_false(gSTSService.isStsHost("another.subdomain.cert.se"));
|
||||
|
||||
// test private browsing correctly interacts with removing preloaded sites
|
||||
if (getPBSvc())
|
||||
// Test private browsing correctly interacts with removing preloaded sites.
|
||||
// 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;
|
||||
} else {
|
||||
run_next_test();
|
||||
}
|
||||
}
|
||||
|
||||
function test_private_browsing1() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче