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

This commit is contained in:
ben%bengoodger.com 2003-12-30 23:12:22 +00:00
Родитель d8e5e8f14d
Коммит 3ade60d061
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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>