Closed
Bug 1340828
Opened 7 years ago
Closed 7 years ago
Use SessionHistory.jsm on Android
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox54 wontfix, firefox55 fixed)
RESOLVED
FIXED
Firefox 55
People
(Reporter: JanH, Assigned: JanH)
References
Details
Attachments
(3 files)
As far as I can see, the session history code thankfully hasn't diverged very far between desktop and mobile, so it should be relatively straightforward to swap in SessionHistory.jsm and replace our own copy of the code. Going forward, this should simplify the maintenance of this, since Desktop/Core people won't have to remember any more that any fixes in session history saving/restoring need to be ported over to Fennec as well.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8843565 [details] Bug 1340828 - Part 3 - Switch Fennec's session store over to SessionHistory.jsm. https://reviewboard.mozilla.org/r/113676/#review119200 Awesome!
Attachment #8843565 -
Flags: review?(s.kaspari) → review+
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8843563 [details] Bug 1340828 - Part 1 - Move SessionHistory.jsm to toolkit. https://reviewboard.mozilla.org/r/113672/#review119206 I'm very happy that Fennec is able to use this code! And even happier with the ESLint <3 ;-)
Attachment #8843563 -
Flags: review?(mdeboer) → review+
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8843564 [details] Bug 1340828 - Part 2 - Make life easier for Fennec. https://reviewboard.mozilla.org/r/113674/#review119208 LGTM!
Attachment #8843564 -
Flags: review?(mdeboer) → review+
Assignee | ||
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8843565 [details] Bug 1340828 - Part 3 - Switch Fennec's session store over to SessionHistory.jsm. https://reviewboard.mozilla.org/r/113676/#review119218 ::: mobile/android/components/SessionStore.js:1293 (Diff revision 1) > - aHistory.getEntryAtIndex(activeIndex, true); > > + // SessionHistory.jsm will have force set the active history item, > + // but we still need to reload it in order to finish the process. > try { > - aHistory.QueryInterface(Ci.nsISHistory).reloadCurrentEntry(); > + history.reloadCurrentEntry(); Note to myself before landing: In practice it seems to work anyway, but since SessionHistory.jsm returns an `nsISHistoryInternal` interface, I technically still need to QI this to `nsISHistory` before calling `reloadCurrentEntry()`.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 11•7 years ago
|
||
Pushed by mozilla@buttercookie.de: https://hg.mozilla.org/integration/autoland/rev/94b9be873261 Part 1 - Move SessionHistory.jsm to toolkit. r=mikedeboer https://hg.mozilla.org/integration/autoland/rev/bcea389b60b1 Part 2 - Make life easier for Fennec. r=mikedeboer https://hg.mozilla.org/integration/autoland/rev/a9c30ad75f43 Part 3 - Switch Fennec's session store over to SessionHistory.jsm. r=sebastian
Comment 12•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/94b9be873261 https://hg.mozilla.org/mozilla-central/rev/bcea389b60b1 https://hg.mozilla.org/mozilla-central/rev/a9c30ad75f43
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Updated•7 years ago
|
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•