43 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
45 let
_obs =
Cc[
"@mozilla.org/observer-service;1"].
51 if (aTopic ==
"private-browsing") {
56 is(
firstUnloadFired, 1,
"The first unload event should have been processed by now");
59 _obs.removeObserver(
this,
"private-browsing");
62 is(
secondUnloadFired, 1,
"The second unload event should have been processed by now");
70 _obs.addObserver(pbObserver,
"private-browsing",
false);
71 is(gBrowser.tabContainer.childNodes.length, 1,
"There should only be one tab");
72 let testTab = gBrowser.addTab();
73 gBrowser.selectedTab = testTab;
74 testTab.linkedBrowser.addEventListener(
"unload", (
function() {
75 testTab.linkedBrowser.removeEventListener(
"unload",
arguments.callee,
true);
80 pb.privateBrowsingEnabled =
true;
81 let testTab = gBrowser.addTab();
82 gBrowser.selectedTab = testTab;
83 testTab.linkedBrowser.addEventListener(
"unload", (
function() {
84 testTab.linkedBrowser.removeEventListener(
"unload",
arguments.callee,
true);
87 cookieManager.add(
"example.com",
"test/",
"PB",
"1",
false,
false,
false, 1000000000000);
90 pb.privateBrowsingEnabled =
false;
91 gBrowser.tabContainer.lastChild.linkedBrowser.addEventListener(
"unload", (
function() {
92 gBrowser.tabContainer.lastChild.linkedBrowser.removeEventListener(
"unload",
arguments.callee,
true);
94 is(count, 0,
"There shouldn't be any cookies once pb mode has exited");
98 gBrowser.removeCurrentTab();
getService(Ci.sbIFaceplateManager)
return!aWindow arguments!aWindow arguments[0]
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe