6 var newTab = gBrowser.addTab();
7 gBrowser.selectedTab = newTab;
12 newBrowser.contentWindow.location =
'https://nocert.example.com/';
19 ok(/^about:certerror/.
test(gBrowser.contentWindow.document.documentURI),
"Broken page should go to about:certerror, not about:neterror");
22 var expertDiv = gBrowser.contentWindow.document.getElementById(
"expertContent");
23 ok(expertDiv,
"Expert content div should exist");
24 ok(expertDiv.hasAttribute(
"collapsed"),
"Expert content should be collapsed by default");
27 Cc[
"@mozilla.org/preferences-service;1"].getService(
Ci.nsIPrefBranch)
28 .setBoolPref(
"browser.xul.error_pages.expert_bad_cert",
true);
37 var expertDiv = gBrowser.contentWindow.document.getElementById(
"expertContent");
38 var technicalDiv = gBrowser.contentWindow.document.getElementById(
"technicalContent");
39 ok(!expertDiv.hasAttribute(
"collapsed"),
"Expert content should not be collapsed with the expert mode pref set");
40 ok(!technicalDiv.hasAttribute(
"collapsed"),
"Technical content should not be collapsed with the expert mode pref set");
43 gBrowser.removeCurrentTab();
function testBrokenCert()
function newBrowser test()
function testExpertPref()