diff --git a/suite/browser/navigator.js b/suite/browser/navigator.js index 9fffd24d070..20582bc0b48 100644 --- a/suite/browser/navigator.js +++ b/suite/browser/navigator.js @@ -852,13 +852,18 @@ function BrowserPrintPreview() // implement me } +function BrowserPrintSetup() +{ + goPageSetup(); // from utilityOverlay.js +} + function BrowserPrint() { // using _content.print() until printing becomes scriptable on docShell try { _content.print(); } catch (e) { - // Pressing cancel is expressed as an NS_ERROR_FAILURE return value, + // Pressing cancel is expressed as an NS_ERROR_ABORT return value, // causing an exception to be thrown which we catch here. // Unfortunately this will also consume helpful failures, so add a // dump(e); // if you need to debug @@ -1065,7 +1070,7 @@ function hiddenWindowStartup() window.focus(); // Disable menus which are not appropriate - var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage', /*'Browser:PrintSetup', 'Browser:PrintPreview',*/ + var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage', 'Browser:PrintSetup', /*'Browser:PrintPreview',*/ 'Browser:Print', 'canGoBack', 'canGoForward', 'Browser:Home', 'Browser:AddBookmark', 'cmd_undo', 'cmd_redo', 'cmd_cut', 'cmd_copy','cmd_paste', 'cmd_delete', 'cmd_selectAll']; for (id in disabledItems) { diff --git a/suite/browser/navigatorOverlay.xul b/suite/browser/navigatorOverlay.xul index 35a9a902a9e..f339977f461 100644 --- a/suite/browser/navigatorOverlay.xul +++ b/suite/browser/navigatorOverlay.xul @@ -106,12 +106,12 @@ + @@ -187,6 +187,7 @@ +