mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
History searching no longer works (89093). r=ben sr=alecf
This commit is contained in:
parent
94d610e17b
commit
4622150699
@ -54,31 +54,32 @@ function HistoryInit()
|
||||
var windowNode = document.getElementById("history-window");
|
||||
windowNode.setAttribute("windowtype", "history:searchresults");
|
||||
}
|
||||
document.getElementById("groupingMenu").setAttribute("hidden", "true");
|
||||
}
|
||||
|
||||
gPrefService = Components.classes["@mozilla.org/preferences;1"]
|
||||
.getService(Components.interfaces.nsIPref);
|
||||
try {
|
||||
var grouping = gPrefService.GetCharPref("browser.history.grouping");
|
||||
}
|
||||
catch(e) {
|
||||
grouping = "";
|
||||
}
|
||||
GroupBy(grouping);
|
||||
if (gHistoryStatus) { // must be the window
|
||||
switch(grouping) {
|
||||
case "site":
|
||||
document.getElementById("groupBySite").setAttribute("checked", "true");
|
||||
break;
|
||||
case "none":
|
||||
document.getElementById("groupByNone").setAttribute("checked", "true");
|
||||
break;
|
||||
case "day":
|
||||
default:
|
||||
document.getElementById("groupByDay").setAttribute("checked", "true");
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
gPrefService = Components.classes["@mozilla.org/preferences;1"]
|
||||
.getService(Components.interfaces.nsIPref);
|
||||
try {
|
||||
var grouping = gPrefService.GetCharPref("browser.history.grouping");
|
||||
}
|
||||
catch(e) {
|
||||
grouping = "";
|
||||
}
|
||||
GroupBy(grouping);
|
||||
if (gHistoryStatus) { // must be the window
|
||||
switch(grouping) {
|
||||
case "site":
|
||||
document.getElementById("groupBySite").setAttribute("checked", "true");
|
||||
break;
|
||||
case "none":
|
||||
document.getElementById("groupByNone").setAttribute("checked", "true");
|
||||
break;
|
||||
case "day":
|
||||
default:
|
||||
document.getElementById("groupByDay").setAttribute("checked", "true");
|
||||
}
|
||||
}
|
||||
}
|
||||
gHistoryOutliner.focus();
|
||||
gHistoryOutliner.outlinerBoxObject.view.selection.select(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user