temporary fix for 205708 - search bar often forgets the selected search engine

git-svn-id: svn://10.0.0.236/trunk@150789 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ben%bengoodger.com
2003-12-30 23:12:22 +00:00
parent 856903f880
commit c8f4fa9188

View File

@@ -59,8 +59,14 @@
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))
if (!this.ISEARCHDS.hasArcIn(rEngine, rChild)) {
// XXXben this is a short term hack to prevent the search engine selector
// from forgetting the defaut.
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(unescape(engine.substr("engine://".length)));
if (!file.exists())
this.currentEngine = "__PhoenixFindInPage";
}
}
]]></body>
</method>