mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 409168 Exclude unnamed topics from help viewer r=Waldo a=mconnor (over IRC)
This commit is contained in:
parent
b56b55c8cf
commit
f57ee1c2ed
@ -689,9 +689,10 @@ function doFindOnSeq(resultsDS, sourceDS, resource, level) {
|
||||
var target = targets.getNext();
|
||||
var link = sourceDS.GetTarget(target, NC_LINK, true);
|
||||
var name = sourceDS.GetTarget(target, NC_NAME, true);
|
||||
name = name.QueryInterface(Components.interfaces.nsIRDFLiteral);
|
||||
|
||||
if (link && isMatch(name.Value)) {
|
||||
if (link &&
|
||||
name instanceof Components.interfaces.nsIRDFLiteral &&
|
||||
isMatch(name.Value)) {
|
||||
// we have found a search entry - add it to the results datasource.
|
||||
var urn = RDF.GetAnonymousResource();
|
||||
resultsDS.Assert(urn, NC_NAME, name, true);
|
||||
|
@ -209,12 +209,10 @@
|
||||
object="?subheadings"/>
|
||||
<member container="?subheadings"
|
||||
child="?subheading"/>
|
||||
<triple subject="?subheading"
|
||||
predicate="http://home.netscape.com/NC-rdf#name"
|
||||
object="?name"/>
|
||||
</conditions>
|
||||
<bindings>
|
||||
<binding subject="?subheading"
|
||||
predicate="http://home.netscape.com/NC-rdf#name"
|
||||
object="?name"/>
|
||||
</bindings>
|
||||
<action>
|
||||
<treechildren>
|
||||
<treeitem uri="?subheading">
|
||||
|
Loading…
Reference in New Issue
Block a user