43 let prefBranch =
Cc[
"@mozilla.org/preferences-service;1"].
45 prefBranch.setBoolPref(
"browser.privatebrowsing.keep_current_session",
true);
46 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
48 let docRoot = document.documentElement;
50 is(docRoot.getAttribute(
"browsingmode"),
"normal",
51 "browsingmode should be \"normal\" initially");
54 pb.privateBrowsingEnabled =
true;
56 is(docRoot.getAttribute(
"browsingmode"),
"private",
57 "browsingmode should be \"private\" inside the private browsing mode");
60 pb.privateBrowsingEnabled =
false;
62 is(docRoot.getAttribute(
"browsingmode"),
"normal",
63 "browsingmode should be \"normal\" outside the private browsing mode");
66 prefBranch.clearUserPref(
"browser.privatebrowsing.keep_current_session");
getService(Ci.sbIFaceplateManager)