Closed Bug 2079201 Opened 1 month ago Closed 1 month ago

Replace the frozen forwarding objects in Session Restore modules with classes

Categories

(Firefox :: Session Restore, task)

task

Tracking

()

RESOLVED FIXED
160 Branch
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: nobody → dao+bmo
Status: NEW → ASSIGNED

The exported instance now registers itself as the session-cookie-changed observer, so observe() is public on it.

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.

latestUpgradeBackupID becomes a module-level function because the getters on Paths read it with Paths as their receiver.

QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: