зеркало из https://github.com/mozilla/pjs.git
Bug #287793 --> Thunderbird cannot verify certain types of RSS feeds
Patch by Robert Sayre.
This commit is contained in:
Родитель
9cdb31d07c
Коммит
067247402b
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче