Closed Bug 2074388 Opened 2 months ago Closed 1 month ago

Take SessionStore.sys.mjs off the sessionstore TypeScript exclude list

Categories

(Firefox :: Session Restore, task)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

The remaining one-offs, then the gate: @this annotations for the five observer and callback methods invoked with a receiver that isn't the class, three arity mismatches, a new on a class the checker sees as a function, the undeclared TabMetricsContext and nsIFrameLoader names, the unresolved Log namespace, a string-or-boolean return, and the properties read off TabStateData and WindowStateData that the typedefs don't declare, each a declare-or-delete decision.

With those at zero, the last commit empties and deletes the exclude list in browser/components/sessionstore/tsconfig.json. Depends on the four sibling bugs that type the event entry points, the closed tab records, the window handles, and the window geometry restore.

GlobalState.sys.mjs becomes a class with a private field; its only consumer is SessionStore, which calls its methods through the instance, so nothing relied on the methods being bound or the object being frozen.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/27011b52cdf2 https://hg.mozilla.org/integration/autoland/rev/8c799f691bed Type the remaining one-offs in SessionStore.sys.mjs and remove it from the TypeScript exclude list. r=sfoster,sessionstore-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
QA Whiteboard: [qa-triage-done-c160/b159]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: