Closed Bug 1778139 Opened 3 years ago Closed 3 years ago

Quickactions flash when typing in the urlbar

Categories

(Firefox :: Address Bar, defect, P1)

defect

Tracking

()

VERIFIED FIXED
104 Branch
Tracking Status
firefox104 --- verified

People

(Reporter: daleharvey, Assigned: daleharvey)

References

Details

Attachments

(1 file, 1 obsolete file)

Typing in the urlbar causes QuickActions to flash, this is due to them using getViewUpdate and that they are invalidated and redrawn on every urlbar update.

One option would be to have getViewUpdate return some type of hash that indicates the number of results returned, if we have the same number of results on subsequent updates then we do not need to create a fresh dom, only update its contents. The issue with this is the results will still flash when we have different number of results.

Another option would be to have QuickActions return plain UrlbarResults, make sure they are grouped together and update the styling to make a column layout. I think this constrains some layout issues we dealt with in FlowState that arent relevant for Desktop at the moment.

Assignee: nobody → dharvey
Severity: -- → S3
Priority: -- → P1

Just to update, when I say a plain UrlbarResult, an initial guess seems like the best option would be to create a new RESULT_TYPE.ACTION and return one result for each action.

Attachment #9284817 - Attachment description: Bug 1778139 - Prevent quickactions from flashing while typing. r=adw → WIP: Bug 1778139 - Prevent quickactions from flashing while typing. f=adw
Attachment #9284849 - Attachment description: WIP: Bug 1778139 - Cache QuickActions strings. f=adw → Bug 1778139 - Cache QuickActions strings to avoid UI flashing. r=adw
Pushed by dharvey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/63fff3004d83 Cache QuickActions strings to avoid UI flashing. r=adw
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch

The issue is verified fixed using the latest Fx104.0a1 on Windows 10, Ubuntu 20.04 and macOS. The QuickActions buttons no longer flick when typing or opening the URL bar dropdown.

Status: RESOLVED → VERIFIED
Attachment #9284817 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: