diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index 7e8c50cb1a29..b28fa08d8c6f 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -95,6 +95,12 @@ const kEditorToolbarPrefs = "editor.toolbars.showbutton."; const kUseCssPref = "editor.use_css"; const kCRInParagraphsPref = "editor.CR_creates_new_p"; +function getEngineWebBrowserPrint() +{ + return content.QueryInterface(Components.interfaces.nsIInterfaceRequestor) + .getInterface(Components.interfaces.nsIWebBrowserPrint); +} + function ShowHideToolbarSeparators(toolbar) { var childNodes = toolbar.childNodes; var separator = null; diff --git a/mail/base/content/msgPrintEngine.xul b/mail/base/content/msgPrintEngine.xul index edb6fa1eed39..b39ca28f04ab 100644 --- a/mail/base/content/msgPrintEngine.xul +++ b/mail/base/content/msgPrintEngine.xul @@ -46,7 +46,6 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:nc="http://home.netscape.com/NC-rdf#" onload="OnLoadPrintEngine()" - onunload="OnUnloadPrintEngine()" width="750" height="500" screenX="10" screenY="10" @@ -62,7 +61,6 @@