From 6971fe24da9722497e7ed7a855ed1d1785402663 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Fri, 1 Dec 2006 12:36:23 +0000 Subject: [PATCH] Actually address gavin's review comment in bug 185239 --- toolkit/components/printing/content/printUtils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit/components/printing/content/printUtils.js b/toolkit/components/printing/content/printUtils.js index f6bfbbf2c78b..030b1f6e5518 100644 --- a/toolkit/components/printing/content/printUtils.js +++ b/toolkit/components/printing/content/printUtils.js @@ -138,7 +138,7 @@ var PrintUtils = { getWebBrowserPrint: function (aWindow) { - var contentWindow = aWindow ? aWindow : window.content; + var contentWindow = aWindow || window.content; return contentWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); }, @@ -253,7 +253,7 @@ var PrintUtils = { // disable chrome shortcuts... window.addEventListener("keypress", this.onKeyPressPP, true); - var contentWindow = aWindow ? aWindow : window.content; + var contentWindow = aWindow || window.content; contentWindow.focus(); // on Enter PP Call back @@ -286,7 +286,7 @@ var PrintUtils = { var printPreviewTB = document.getElementById("print-preview-toolbar"); getBrowser().parentNode.removeChild(printPreviewTB); - var contentWindow = aWindow ? aWindow : window.content; + var contentWindow = aWindow || window.content; contentWindow.focus(); // on Exit PP Call back