зеркало из https://github.com/mozilla/pjs.git
Bug #261913 --> Buddy icons for screen names are not shown in message pane nor the address book.
Patch by mjg@math.arizona.edu
This commit is contained in:
Родитель
d090717b2b
Коммит
65cf51563c
|
@ -846,7 +846,7 @@ function setFromBuddyIcon(email)
|
|||
gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
|
||||
gFileHandler = gIOService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler);
|
||||
|
||||
var dirService = Components.classes["@mozilla.org/directory_service;1"]
|
||||
var dirService = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||
.getService(Components.interfaces.nsIProperties);
|
||||
var profileDir = dirService.get("ProfD", Components.interfaces.nsIFile);
|
||||
gProfileDirURL = gIOService.newFileURI(profileDir);
|
||||
|
|
|
@ -337,7 +337,7 @@ function setBuddyIcon(card, buddyIcon)
|
|||
if (myScreenName && card.primaryEmail) {
|
||||
if (!gProfileDirURL) {
|
||||
// lazily create these file urls, and keep them around
|
||||
var dirService = Components.classes["@mozilla.org/directory_service;1"]
|
||||
var dirService = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||
.getService(Components.interfaces.nsIProperties);
|
||||
var profileDir = dirService.get("ProfD", Components.interfaces.nsIFile);
|
||||
gProfileDirURL = gIOService.newFileURI(profileDir);
|
||||
|
|
Загрузка…
Ссылка в новой задаче