зеркало из https://github.com/mozilla/pjs.git
temporary fix for 205708 - search bar often forgets the selected search engine
This commit is contained in:
Родитель
d8e5e8f14d
Коммит
3ade60d061
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче