зеркало из https://github.com/mozilla/gecko-dev.git
Bug 254564 Buddy icons not shown
p=michaeljgruber@fastmail.fm r/sr=bienvenu
This commit is contained in:
Родитель
d7a4dd3ee7
Коммит
2f1da080b2
|
@ -351,7 +351,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);
|
||||
|
|
|
@ -814,7 +814,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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче