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"].
50 pb.privateBrowsingEnabled =
true;
52 let tabAbout = gBrowser.addTab();
53 gBrowser.selectedTab = tabAbout;
57 let aboutBrowser = gBrowser.getBrowserForTab(tabAbout);
58 aboutBrowser.addEventListener(
"load",
function () {
59 aboutBrowser.removeEventListener(
"load",
arguments.callee,
true);
60 let tabRobots = gBrowser.addTab();
61 gBrowser.selectedTab = tabRobots;
63 let robotsBrowser = gBrowser.getBrowserForTab(tabRobots);
64 robotsBrowser.addEventListener(
"load",
function () {
65 robotsBrowser.removeEventListener(
"load",
arguments.callee,
true);
66 let robotsZoom = ZoomManager.zoom;
71 isnot(ZoomManager.zoom, robotsZoom,
"Zoom level can be changed");
72 robotsZoom = ZoomManager.zoom;
75 gBrowser.selectedTab = tabAbout;
78 gBrowser.selectedTab = tabRobots;
81 is(ZoomManager.zoom, robotsZoom,
82 "Entering private browsing should not reset the zoom on a tab");
85 pb.privateBrowsingEnabled =
false;
88 prefBranch.clearUserPref(
"browser.privatebrowsing.keep_current_session");
90 gBrowser.removeTab(tabRobots);
91 gBrowser.removeTab(tabAbout);
94 robotsBrowser.contentWindow.location =
"about:robots";
96 aboutBrowser.contentWindow.location =
"about:";
getService(Ci.sbIFaceplateManager)
return!aWindow arguments!aWindow arguments[0]