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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user