Replace the frozen forwarding objects in Session Restore modules with classes
Categories
(Firefox :: Session Restore, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug)
Details
Attachments
(7 external files)
SessionFile, SessionSaver, SessionCookies, SessionMigration, TabStateCache, TabStateFlusher and TabAttributes each export an object (frozen, except for SessionMigration) that forwards to a second internal object holding the implementation. Bug 1892761 replaced the same pattern in SessionStore with one class and an exported instance.
One class replaces the two objects, so each module's API and implementation live in one place, with its internal state in private fields. Each module can convert in its own commit.
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
| Assignee | ||
Comment 3•1 month ago
|
||
| Assignee | ||
Comment 4•1 month ago
|
||
| Assignee | ||
Comment 5•1 month ago
|
||
The exported instance now registers itself as the session-cookie-changed observer, so observe() is public on it.
| Assignee | ||
Comment 6•1 month ago
|
||
The three lazy pref getters move into declareLazy, and the idle observer is registered from the constructor; both still register when the module loads, in the same order. The exported instance is the idle observer, so observe() is public on it.
| Assignee | ||
Comment 7•1 month ago
|
||
latestUpgradeBackupID becomes a module-level function because the getters on Paths read it with Paths as their receiver.
https://hg.mozilla.org/mozilla-central/rev/60cc992ea809
https://hg.mozilla.org/mozilla-central/rev/344881034e5f
https://hg.mozilla.org/mozilla-central/rev/ea78235f7d25
https://hg.mozilla.org/mozilla-central/rev/0f1f5c093e00
https://hg.mozilla.org/mozilla-central/rev/0eef54f9c691
https://hg.mozilla.org/mozilla-central/rev/04d1e54579d1
https://hg.mozilla.org/mozilla-central/rev/44acd3d491e0
Updated•1 month ago
|
Description
•