Fix the regression in Tp and Ts
This commit is contained in:
@@ -565,8 +565,14 @@ function updateGoMenu(goMenu)
|
|||||||
destroyGoMenuItems(goMenu);
|
destroyGoMenuItems(goMenu);
|
||||||
|
|
||||||
var history = document.getElementById("hiddenHistoryTree");
|
var history = document.getElementById("hiddenHistoryTree");
|
||||||
if (history.hidden)
|
|
||||||
|
if (history.hidden) {
|
||||||
history.hidden = false;
|
history.hidden = false;
|
||||||
|
var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"]
|
||||||
|
.getService(Components.interfaces.nsIGlobalHistory);
|
||||||
|
var dataSource = globalHistory.QueryInterface(Components.interfaces.nsIRDFDataSource);
|
||||||
|
history.database.AddDataSource(dataSource);
|
||||||
|
}
|
||||||
|
|
||||||
if (!history.ref)
|
if (!history.ref)
|
||||||
history.ref = "NC:HistoryRoot";
|
history.ref = "NC:HistoryRoot";
|
||||||
|
|||||||
@@ -430,8 +430,8 @@ Contributor(s):
|
|||||||
</popup>
|
</popup>
|
||||||
|
|
||||||
<!-- Total hack. Used by the Go menu to build up items. -->
|
<!-- Total hack. Used by the Go menu to build up items. -->
|
||||||
<tree id="hiddenHistoryTree" hidden="true" collapsed="true"
|
<tree id="hiddenHistoryTree" hidden="true" collapsed="true" datasources="rdf:null"
|
||||||
datasources="rdf:history" flags="dont-build-content"
|
flags="dont-build-content"
|
||||||
hidecolumnpicker="true">
|
hidecolumnpicker="true">
|
||||||
<template>
|
<template>
|
||||||
<rule>
|
<rule>
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
var menu = buttons.nextSibling.childNodes[1];
|
var menu = buttons.nextSibling.childNodes[1];
|
||||||
var width = window.innerWidth;
|
var width = window.innerWidth;
|
||||||
menu.collapsed = true;
|
menu.collapsed = true;
|
||||||
|
var overflowed = false;
|
||||||
|
|
||||||
for (var i=4; i<buttons.childNodes.length; i++) {
|
for (var i=4; i<buttons.childNodes.length; i++) {
|
||||||
var button = buttons.childNodes[i];
|
var button = buttons.childNodes[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user