Google is the default search bar engine.

This commit is contained in:
blakeross%telocity.com 2006-02-18 00:13:10 +00:00
Родитель 2586da3737
Коммит 04c88c9189
1 изменённых файлов: 12 добавлений и 6 удалений

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

@ -8,12 +8,7 @@
<binding id="searchbar" extends="chrome://global/content/widgets/autocomplete.xml#autocomplete">
<implementation>
<constructor><![CDATA[
var pbi = this.mPrefs.QueryInterface(Components.interfaces.nsIPrefBranchInternal);
if (pbi)
pbi.addObserver("browser.search", this.mPrefObserver, false);
if (this.hasAttribute("searchmode"))
updateEngines();
setTimeout(function(a) { a.initialize(); }, 0, this);
]]></constructor>
<destructor><![CDATA[
@ -70,8 +65,19 @@
</getter>
</property>
<method name="initialize">
<body><![CDATA[
var pbi = this.mPrefs.QueryInterface(Components.interfaces.nsIPrefBranchInternal);
if (pbi)
pbi.addObserver("browser.search", this.mPrefObserver, false);
this.updateEngines();
]]></body>
</method>
<method name="updateEngines">
<body><![CDATA[
if (this.getAttribute("searchmode") == "__PhoenixFindInPage")
return;
var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"]
.getService(Components.interfaces.nsIRDFService);
try {