Bug #287793 --> Thunderbird cannot verify certain types of RSS feeds

Patch by Robert Sayre.
This commit is contained in:
scott%scott-macgregor.org 2005-03-30 22:05:21 +00:00
Родитель 9cdb31d07c
Коммит 067247402b
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -174,9 +174,17 @@ function getRDFTargetValue(ds, source, property)
var node = ds.GetTarget(source, property, true);
if (node)
{
node = node.QueryInterface(Components.interfaces.nsIRDFLiteral);
if (node)
return node.Value;
try{
node = node.QueryInterface(Components.interfaces.nsIRDFLiteral);
if (node)
return node.Value;
}catch(e){
// if the RDF was bogus, do nothing. rethrow if it's some other problem
if(!((e instanceof Components.interfaces.nsIXPCException)
&& (e.result==Components.results.NS_ERROR_NO_INTERFACE)))
throw e;
}
}
return null;
}