зеркало из https://github.com/mozilla/gecko-dev.git
add onEndMsgDownload notification, part of extensibility hooks r=cavin, sr=sspitzer 161226
This commit is contained in:
Родитель
e9f437bf24
Коммит
97b7194b08
|
@ -34,6 +34,10 @@
|
|||
var msgHeaderParserContractID = "@mozilla.org/messenger/headerparser;1";
|
||||
var abAddressCollectorContractID = "@mozilla.org/addressbook/services/addressCollecter;1";
|
||||
|
||||
// get the "msgLoad" atom
|
||||
var atomService = Components.classes["@mozilla.org/atom-service;1"].getService().QueryInterface(Components.interfaces.nsIAtomService);
|
||||
var gMsgLoadedAtom = atomService.getAtom("msgLoaded").QueryInterface(Components.interfaces.nsISupports);
|
||||
|
||||
var gViewAllHeaders = false;
|
||||
var gNumAddressesToShow = 3;
|
||||
var gShowUserAgent = false;
|
||||
|
@ -354,6 +358,17 @@ var messageHeaderSink = {
|
|||
displayAttachmentsForExpandedView();
|
||||
},
|
||||
|
||||
onEndMsgDownload: function(url)
|
||||
{
|
||||
var msgFolder;
|
||||
if (url)
|
||||
{
|
||||
msgFolder = url.folder;
|
||||
if (msgFolder)
|
||||
msgFolder.NotifyFolderEvent(gMsgLoadedAtom);
|
||||
}
|
||||
},
|
||||
|
||||
mSecurityInfo : null,
|
||||
getSecurityInfo: function()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче