Actually address gavin's review comment in bug 185239
git-svn-id: svn://10.0.0.236/trunk@216256 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1bf95a76be
commit
91ef1d26dd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user