зеркало из https://github.com/mozilla/gecko-dev.git
fix for regression bug #196073
without a mail acct, Send menu items fail caused by my checkin for bug #99363 r/sr=bienvenu
This commit is contained in:
Родитель
0443050ee9
Коммит
34fc8cb8a7
|
@ -38,7 +38,15 @@
|
|||
}
|
||||
var composeService = Components.classes["@mozilla.org/messengercompose;1"].getService(Components.interfaces.nsIMsgComposeService);
|
||||
if (composeService) {
|
||||
params.identity = composeService.defaultIdentity;
|
||||
// it is possible you won't have a default identity
|
||||
// like if you've never launched mail before on a new profile.
|
||||
// see bug #196073
|
||||
try {
|
||||
params.identity = composeService.defaultIdentity;
|
||||
}
|
||||
catch (ex) {
|
||||
params.identity = null;
|
||||
}
|
||||
composeService.OpenComposeWindowWithParams(null, params);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче