43 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
46 let crhCommand = document.getElementById(
"Tools:Sanitize");
49 ok(!crhCommand.hasAttribute(
"disabled"),
50 "Clear Recent History command should not be disabled outside of the private browsing mode");
53 pb.privateBrowsingEnabled =
true;
55 ok(crhCommand.hasAttribute(
"disabled"),
56 "Clear Recent History command should be disabled inside of the private browsing mode");
59 pb.privateBrowsingEnabled =
false;
61 ok(!crhCommand.hasAttribute(
"disabled"),
62 "Clear Recent History command should not be disabled after leaving the private browsing mode");
getService(Ci.sbIFaceplateManager)