Closed Bug 2076655 Opened 2 months ago Closed 1 month ago

Remove `userTypedClear` from the lazy tab state

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

(1 external file)

Session store keeps a userTypedClear in its lazy tab state, next to url, title and userTypedValue, and tabbrowser's lazy-browser getters expose it as browser.userTypedClear. Nothing reads it. resetBrowserToLazyState reads it off the browser, but that function returns early for lazy browsers. Only lazy browsers have the property (connected ones lost it in bug 1241085), so the read has always yielded 0.

Remove it from the lazy state in SessionStore.sys.mjs (resetBrowserToLazyState and the restore path), from the lazy-browser property list and getter in Tabbrowser.sys.mjs, and from lazy-browsers.md.

The saved tab state's userTypedClear stays; restore reads it to decide whether to load a typed URL or only show it in the address bar.

See Also: → sessionstore-ts
See Also: sessionstore-ts →
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
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: