Bug 1588970 - Stop address book UI reporting many errors. r=mkmelin
This commit is contained in:
Родитель
dfcc80d890
Коммит
42cac8ae6e
|
@ -168,7 +168,7 @@ AddrBookCard.prototype = {
|
||||||
},
|
},
|
||||||
getPropertyAsAString(name) {
|
getPropertyAsAString(name) {
|
||||||
if (!this._properties.has(name)) {
|
if (!this._properties.has(name)) {
|
||||||
throw Cr.NS_ERROR_NOT_AVAILABLE;
|
return "";
|
||||||
}
|
}
|
||||||
return this.getProperty(name);
|
return this.getProperty(name);
|
||||||
},
|
},
|
||||||
|
@ -236,7 +236,22 @@ AddrBookCard.prototype = {
|
||||||
return `${this.firstName} ${this.lastName}`;
|
return `${this.firstName} ${this.lastName}`;
|
||||||
},
|
},
|
||||||
generateChatName() {
|
generateChatName() {
|
||||||
throw Cr.NS_ERROR_NOT_IMPLEMENTED;
|
for (let name of [
|
||||||
|
"_GoogleTalk",
|
||||||
|
"_AimScreenName",
|
||||||
|
"_Yahoo",
|
||||||
|
"_Skype",
|
||||||
|
"_QQ",
|
||||||
|
"_MSN",
|
||||||
|
"_ICQ",
|
||||||
|
"_JabberId",
|
||||||
|
"_IRC",
|
||||||
|
]) {
|
||||||
|
if (this._properties.has(name)) {
|
||||||
|
return this._properties.get(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
},
|
},
|
||||||
copy(srcCard) {
|
copy(srcCard) {
|
||||||
throw Cr.NS_ERROR_NOT_IMPLEMENTED;
|
throw Cr.NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче