зеркало из https://github.com/mozilla/gecko-dev.git
Bug 883390 - Part 1.1 - Ensure that browser search engines are updated when settings are changed. r=sfoster
--HG-- rename : browser/metro/base/content/bindings/autocomplete.xml => browser/metro/base/content/bindings/urlbar.xml extra : rebase_source : cf2eb7ccdbb22dcda22c9b6f6cd99137e3af7ade
This commit is contained in:
Родитель
651c69721c
Коммит
b45f440315
|
@ -640,15 +640,15 @@
|
|||
</body>
|
||||
</method>
|
||||
|
||||
<method name="updateSearchEngines">
|
||||
<method name="_initSearchEngines">
|
||||
<body>
|
||||
<![CDATA[
|
||||
Services.search.init(this._onSearchServiceInit.bind(this));
|
||||
Services.search.init(this.updateSearchEngineGrid.bind(this));
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="_onSearchServiceInit">
|
||||
<method name="updateSearchEngineGrid">
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (!this._isGridBound(this._searches))
|
||||
|
@ -768,11 +768,11 @@
|
|||
<parameter name="aData"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aTopic != "browser-search-engine-modified" ||
|
||||
aData != "engine-changed")
|
||||
return;
|
||||
|
||||
this.updateSearchEngines();
|
||||
switch (aTopic) {
|
||||
case "browser-search-engine-modified":
|
||||
this.updateSearchEngineGrid();
|
||||
break;
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
@ -811,7 +811,7 @@
|
|||
let grid = event.originalTarget;
|
||||
|
||||
if (grid == this._searches)
|
||||
this.updateSearchEngines();
|
||||
this._initSearchEngines();
|
||||
|
||||
if (grid == this._results)
|
||||
this.updateResults();
|
||||
|
|
Загрузка…
Ссылка в новой задаче