зеркало из https://github.com/mozilla/gecko-dev.git
Bug 224346 can't refresh search tab when search results appear (in advanced mode)
patch by Karsten D��sterloh <mnyromyr@tprac.de> r=timeless sr=neil
This commit is contained in:
Родитель
bbe43d19cc
Коммит
9b06b9b0f5
|
@ -97,7 +97,7 @@ function onLoadInternetResults()
|
||||||
.getService(Components.interfaces.nsIInternetSearchService);
|
.getService(Components.interfaces.nsIInternetSearchService);
|
||||||
iSearch.ClearResultSearchSites();
|
iSearch.ClearResultSearchSites();
|
||||||
|
|
||||||
// the search URI is passed in as a parameter, so get it and them root the results list
|
// the search URI is passed in as a parameter, so get it and then root the results list
|
||||||
var searchURI = top.content.location.href;
|
var searchURI = top.content.location.href;
|
||||||
if (searchURI) {
|
if (searchURI) {
|
||||||
const lastSearchURIPref = "browser.search.lastMultipleSearchURI";
|
const lastSearchURIPref = "browser.search.lastMultipleSearchURI";
|
||||||
|
@ -138,7 +138,7 @@ function doEngineClick( event, aNode )
|
||||||
var html = null;
|
var html = null;
|
||||||
|
|
||||||
var resultsTree = document.getElementById("resultsList");
|
var resultsTree = document.getElementById("resultsList");
|
||||||
var contentArea = document.getElementById("content");
|
var contentArea = document.getElementById("resultsContent");
|
||||||
var splitter = document.getElementById("results-splitter");
|
var splitter = document.getElementById("results-splitter");
|
||||||
var engineURI = aNode.id;
|
var engineURI = aNode.id;
|
||||||
if (engineURI == "allEngines") {
|
if (engineURI == "allEngines") {
|
||||||
|
|
|
@ -23,8 +23,7 @@
|
||||||
<label value="&results.header.label;"/>
|
<label value="&results.header.label;"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<hbox align="center"
|
<hbox align="center" style="min-width: 1px;">
|
||||||
style="overflow: none; min-width: 1px;">
|
|
||||||
<label value="&viewbyprovider.label;"/>
|
<label value="&viewbyprovider.label;"/>
|
||||||
<menulist id="engineTabs" ref="NC:SearchResultsSitesRoot"
|
<menulist id="engineTabs" ref="NC:SearchResultsSitesRoot"
|
||||||
datasources="rdf:internetsearch" oncommand="switchTab(1);">
|
datasources="rdf:internetsearch" oncommand="switchTab(1);">
|
||||||
|
@ -119,7 +118,7 @@
|
||||||
</splitter>
|
</splitter>
|
||||||
|
|
||||||
<hbox flex="1">
|
<hbox flex="1">
|
||||||
<iframe id="content" flex="1" src="chrome://communicator/locale/search/default.htm"/>
|
<iframe id="resultsContent" flex="1" src="chrome://communicator/locale/search/default.htm"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
</page>
|
</page>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче