зеркало из https://github.com/mozilla/pjs.git
Bug 382827 - "Error Message in Linux Terminal when adding an RSS Feed (NS_ERROR_NOT_AVAILABLE) [nsIAnnotationService.getItemAnnotationString]" [p=reed r=Mano a=blocking-firefox3+]
This commit is contained in:
Родитель
eb1af402e6
Коммит
8673891c88
|
@ -342,20 +342,14 @@ LivemarkService.prototype = {
|
|||
* startup.
|
||||
*/
|
||||
getSiteURI: function LS_getSiteURI(container) {
|
||||
try {
|
||||
this._ensureLivemark(container);
|
||||
|
||||
// getItemAnnotation() can throw if there is no annotation
|
||||
this._ensureLivemark(container);
|
||||
|
||||
if (this._ans.itemHasAnnotation(container, LMANNO_SITEURI)) {
|
||||
var siteURIString =
|
||||
this._ans.getItemAnnotation(container, LMANNO_SITEURI);
|
||||
|
||||
return gIoService.newURI(siteURIString, null, null);
|
||||
}
|
||||
catch (ex) {
|
||||
// temporary logging, for bug #381894
|
||||
LOG("getSiteURI failed: " + ex);
|
||||
LOG("siteURIString: " + siteURIString);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче