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"].
49 let importMenuItem = document.getElementById(
"menu_import");
52 ok(!importMenuItem.hasAttribute(
"disabled"),
53 "File->Import menu item should not be disabled outside of the private browsing mode");
56 pb.privateBrowsingEnabled =
true;
58 ok(importMenuItem.hasAttribute(
"disabled"),
59 "File->Import menu item should be disabled inside of the private browsing mode");
62 pb.privateBrowsingEnabled =
false;
64 ok(!importMenuItem.hasAttribute(
"disabled"),
65 "File->Import menu item should not be disabled after leaving the private browsing mode");
68 prefBranch.clearUserPref(
"browser.privatebrowsing.keep_current_session");
getService(Ci.sbIFaceplateManager)