Open Bug 1839724 Opened 3 years ago Updated 3 years ago

Consider removing afterTabSwitchFocusChange

Categories

(Firefox :: Address Bar, task, P2)

task

Tracking

()

People

(Reporter: jteow, Unassigned)

References

Details

(Whiteboard: [sng-scrubbed][search-tech-debt])

Attachments

(1 file)

Currently, the Urlbar keeps two internal properties (this._gotFocusChange and this._gotTabSelect) that guard against calling autoOpen until the two properties are true. This requires keeping them in sync with one another.

If one is left true while the other is not, the boolean value will persist until both are true, which can cause unintended behaviour as found with Bug 1781806.

:mak has started a WIP sketch of how this could work whereby the logic is completely contained within _on_TabSelect, removing the need for afterTabSwitchFocusChange.

let me attach the snippet so it doesn't get lost.

Assignee: nobody → mak
Assignee: mak → nobody
Whiteboard: [sng-scrubbed][search-tech-debt]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: