mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
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:
parent
98ff022f8a
commit
e3a9d7a38c
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user