Comment 19 for bug 810769

Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

Comment on attachment 551136
don't close compose window w/ send in background if last open window

Review of attachment 551136:
-----------------------------------------------------------------

::: mail/components/compose/content/MsgComposeCommands.js
@@ +2232,5 @@
> .getBoolPref("mailnews.sendInBackground");
> + if (sendInBackground && !Application.platformIsMac) {
> + let windowMediator =
> + Components.classes["@mozilla.org/appshell/window-mediator;1"]
> + .getService(Components.interfaces.nsIWindowMediator);

You can just use Services.wm