43 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
45 let cps =
Cc[
"@mozilla.org/content-pref/service;1"].
49 let tabBlank = gBrowser.selectedTab;
50 gBrowser.removeAllTabsBut(tabBlank);
52 let blankBrowser = gBrowser.getBrowserForTab(tabBlank);
53 blankBrowser.addEventListener(
"load",
function() {
54 blankBrowser.removeEventListener(
"load",
arguments.callee,
true);
58 isnot(ZoomManager.zoom, 1,
"Zoom level for about:blank should be changed");
61 pb.privateBrowsingEnabled =
true;
62 let tabAboutPB = gBrowser.selectedTab;
63 let browserAboutPB = gBrowser.getBrowserForTab(tabAboutPB);
64 browserAboutPB.addEventListener(
"load",
function() {
65 browserAboutPB.removeEventListener(
"load",
arguments.callee,
true);
68 is(ZoomManager.zoom, 1,
"Zoom level for about:privatebrowsing should be reset");
71 let isOSX = (
"nsILocalFileMac" in Components.interfaces);
79 browserAboutPB.addEventListener(
"load",
function() {
80 browserAboutPB.removeEventListener(
"load",
arguments.callee,
true);
85 browserAboutPB.loadURI(
"about:logo");
90 blankBrowser.loadURI(
"about:blank");
94 let
pb =
Cc[
"@mozilla.org/privatebrowsing;1"].
97 pb.privateBrowsingEnabled =
false;
98 let tabBlank = gBrowser.selectedTab;
99 let blankBrowser = gBrowser.getBrowserForTab(tabBlank);
100 blankBrowser.addEventListener(
"load",
function() {
101 blankBrowser.removeEventListener(
"load",
arguments.callee,
true);
103 executeSoon(
function() {
113 let level = ZoomManager.getZoomForBrowser(
aBrowser);
115 function onEnterPP(aHide) {
116 toggleAffectedChromeOrig(aHide);
118 function onExitPP(aHide) {
119 toggleAffectedChromeOrig(aHide);
122 is(ZoomManager.getZoomForBrowser(
aBrowser), level,
123 "Toggling print preview mode should not affect zoom level");
129 PrintUtils.exitPrintPreview();
134 let printPreview =
new Function(document.getElementById(
"cmd_printPreview")
135 .getAttribute(
"oncommand"));
136 executeSoon(printPreview);
getService(Ci.sbIFaceplateManager)
aWindow setTimeout(function(){_this.restoreHistory(aWindow, aTabs, aTabData, aIdMap);}, 0)
return!aWindow arguments!aWindow arguments[0]
_updateTextAndScrollDataForTab aBrowser
function testPrintPreview(aBrowser, aCallback)
function toggleAffectedChrome(aHide)