Bug 224990: search bar is unusuable if the specified searchplugin is not found.

If the search engine is not found, fall back to find in page
This commit is contained in:
chanial%noos.fr 2006-02-18 00:13:14 +00:00
parent 98ff022f8a
commit e3a9d7a38c

View File

@ -56,6 +56,12 @@
var engine = this.currentEngine;
if (!engine)
this.currentEngine = this.getDefaultEngine();
else {
var rEngine = this.RDF.GetResource(engine);
var rChild = this.RDF.GetResource("http://home.netscape.com/NC-rdf#child");
if (!this.ISEARCHDS.hasArcIn(rEngine, rChild))
this.currentEngine = "__PhoenixFindInPage";
}
]]></body>
</method>