mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 20:55:39 +00:00
08bbf2a6e2
When calling SessionHistory.collect(), we can indicate that we're not interested in the first N (where N = aFromIdx + 1) session history entries, with N potentially being a very big number if we don't want any SHEntries at all and are just interested in updating the value of the current history index. Currently, we always serialise all available SHEntries and then throw away the first N entries, which is wasteful - instead, we should just skip them right away. We still need to keep track how many entries we actually skipped and how many we could have collected if we wanted to, so - we can correctly clamp data.index - if we end up with no entries, figure out whether we simply skipped all of them or else need to create a fallback entry. MozReview-Commit-ID: DjHnnhK0M9L --HG-- extra : rebase_source : 510027ecbc18b921c7a7fa5824466113b04057a5 |
||
---|---|---|
.. | ||
FormData.jsm | ||
PrivacyLevel.jsm | ||
ScrollPosition.jsm | ||
SessionHistory.jsm | ||
Utils.jsm | ||
XPathGenerator.jsm |