Skip to content
This repository was archived by the owner on Mar 5, 2019. It is now read-only.

Commit 5468cb5

Browse files
committed
[Fix] Back/forward menu and Session History Menu be broken since Fx43
fix #68 These menu updates slower is the official bug. https://hg.mozilla.org/mozilla-central/rev/ca984908f2e5 [Fx43]
1 parent 994c573 commit 5468cb5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: chrome/content/tabutils.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -2070,15 +2070,16 @@ tabutils._tabClickingOptions = function() {
20702070
};
20712071

20722072
//浏览历史菜单
2073-
TU_hookCode("FillHistoryMenu",
2074-
["count <= 1", "count == 0"],
2075-
[/(?=var webNav)/, function() {
2073+
TU_hookCode("FillHistoryMenu", // Fillin the history menu
2074+
["count <= 1", "count == 0"], // Always show the menu
2075+
["gBrowser.selectedTab", "tab", "g"], // since Bug 1148505 [Fx43].
2076+
[FillHistoryMenu.toString().indexOf("var webNav")>0 ? /(?=var webNav)/ : /(?=let sessionHistory)/, function() { // Bug 1148505 [Fx43].
20762077
var tab = document.popupNode;
20772078
if (!tab || tab.localName != 'tab')
20782079
tab = gBrowser.selectedTab;
20792080
aParent.value = tab._tPos;
20802081
}],
2081-
["gBrowser.webNavigation", "tab.linkedBrowser.webNavigation"]
2082+
["gBrowser.webNavigation", "tab.linkedBrowser.webNavigation"] // Is no longer valid since Bug 1148505 [Fx43].
20822083
);
20832084
TU_hookCode("gotoHistoryIndex",
20842085
["gBrowser.selectedTab", "tab", "g"],

0 commit comments

Comments
 (0)