|
本帖最后由 hechengjin 于 2016-3-25 19:39 编辑
messageWindow.xul
messageWindow.js- onDisplayingMessage:
- function StandaloneMessageDisplayWidget_onDisplayingMessage(aMsgHdr) {
- this.__proto__.__proto__.onDisplayingMessage.call(this, aMsgHdr);
- // - set the window title to the message subject (and maybe the app name)
- let docTitle = aMsgHdr.mime2DecodedSubject;
- // If the tab hasn't got a title, or we're on Mac, don't display
- // the separator.
- if (docTitle && !Application.platformIsMac)
- docTitle += document.documentElement
- .getAttribute("titlemenuseparator");
- // If we haven't got a title at this stage add the modifier, or if
- // we are on a non-mac platform, add the modifier.
- if (!docTitle || !Application.platformIsMac)
- docTitle += document.documentElement
- .getAttribute("titlemodifier");
- document.title = docTitle;
复制代码 nsMsgI18N.cpp
|
|