Bug 1515073 - Part 3 - Add support for skipping session entries without user interaction on desktop. r=JanH,Gijs

Depends on D27586

Differential Revision: https://phabricator.services.mozilla.com/D27587
This commit is contained in:
Johann Hofmann
2020-06-09 14:50:18 +00:00
parent 210b8937d3
commit fb76d2ce00
6 changed files with 44 additions and 8 deletions

View File

@@ -4549,6 +4549,17 @@ function FillHistoryMenu(aParent) {
for (let j = end - 1; j >= start; j--) {
let entry = sessionHistory.entries[j];
// Explicitly check for "false" to stay backwards-compatible with session histories
// from before the hasUserInteraction was implemented.
if (
BrowserUtils.navigationRequireUserInteraction &&
entry.hasUserInteraction === false &&
// Always allow going to the first and last navigation points.
j != end - 1 &&
j != start
) {
continue;
}
let uri = entry.url;
let item =