43 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
45 let
os =
Cc[
"@mozilla.org/observer-service;1"].
47 let ss =
Cc[
"@mozilla.org/browser/sessionstore;1"].
49 let pbCmd = document.getElementById(
"Tools:PrivateBrowsing");
56 case "private-browsing":
58 ok(document.getElementById(
"Tools:PrivateBrowsing").hasAttribute(
"disabled"),
59 "The private browsing command should be disabled immediately after the mode switch");
63 case "private-browsing-transition-complete":
64 if (this.pass++ == 1) {
66 ok(!pbCmd.hasAttribute(
"disabled"),
67 "The private browsing command should be re-enabled after entering the private browsing mode");
69 pb.privateBrowsingEnabled =
false;
74 ok(!pbCmd.hasAttribute(
"disabled"),
75 "The private browsing command should be re-enabled after exiting the private browsing mode");
77 os.removeObserver(observer,
"private-browsing");
78 os.removeObserver(observer,
"private-browsing-transition-complete");
86 os.addObserver(observer,
"private-browsing",
false);
87 os.addObserver(observer,
"private-browsing-transition-complete",
false);
89 pb.privateBrowsingEnabled =
true;
getService(Ci.sbIFaceplateManager)
aWindow setTimeout(function(){_this.restoreHistory(aWindow, aTabs, aTabData, aIdMap);}, 0)
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe