mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
174391: Make printing independant of editorshell. Fix from brade, r=me, sr=bryner, a=rjesup
This commit is contained in:
parent
40db78c9e3
commit
233e84b959
@ -2400,7 +2400,7 @@ var nsPrintCommand =
|
||||
// In editor.js
|
||||
FinishHTMLSource();
|
||||
try {
|
||||
window.editorShell.Print();
|
||||
NSPrint();
|
||||
} catch (e) {}
|
||||
}
|
||||
};
|
||||
|
@ -71,6 +71,7 @@
|
||||
<script type="application/x-javascript" src="chrome://editor/content/publishprefs.js"/>
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaClick.js"/>
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/printing.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
|
||||
|
@ -1143,14 +1143,9 @@ function DoCommandClose()
|
||||
|
||||
function DoCommandPrint()
|
||||
{
|
||||
if (gMsgCompose)
|
||||
{
|
||||
var editorShell = gMsgCompose.editorShell;
|
||||
if (editorShell)
|
||||
try {
|
||||
editorShell.Print();
|
||||
} catch(ex) {dump("#PRINT ERROR: " + ex + "\n");}
|
||||
}
|
||||
try {
|
||||
NSPrint();
|
||||
} catch(ex) {dump("#PRINT ERROR: " + ex + "\n");}
|
||||
}
|
||||
|
||||
function DoCommandPreferences()
|
||||
|
Loading…
Reference in New Issue
Block a user