Closed
Bug 1341417
Opened 7 years ago
Closed 7 years ago
A partial SessionHistory.collect() still serialises all session history and then throws away the unneeded bits
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: JanH, Assigned: JanH)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We should rather simply not serialise those session history entries in the first place if we don't need them in the end.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8846429 [details] Bug 1341417 - Using aFromIdx should skip SHEntry serialisation, not just throw the data away afterwards. https://reviewboard.mozilla.org/r/114232/#review121518 Nice improvement, thanks! ::: toolkit/modules/sessionstore/SessionHistory.jsm:83 (Diff revision 1) > let webNavigation = docShell.QueryInterface(Ci.nsIWebNavigation); > let history = webNavigation.sessionHistory.QueryInterface(Ci.nsISHistoryInternal); > let ihistory = history.QueryInterface(Ci.nsISHistory); > > let data = {entries: [], userContextId: loadContext.originAttributes.userContextId }; > + let skippedCount = 0, entryCount = 0; Can you add a comment here that explains what you're using these two variables for?
Attachment #8846429 -
Flags: review?(mdeboer) → review+
Comment hidden (mozreview-request) |
Pushed by mozilla@buttercookie.de: https://hg.mozilla.org/integration/autoland/rev/be2bd0abcf3e Using aFromIdx should skip SHEntry serialisation, not just throw the data away afterwards.r=mikedeboer
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/be2bd0abcf3e
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
You need to log in
before you can comment on or make changes to this bug.
Description
•