Open Bug 1373662 Opened 7 years ago Updated 2 years ago

[Form Autofill] Dropdown UI flickers when first time opening form autofill popup after browser launched

Categories

(Toolkit :: Form Autofill, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: ralin, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [cc-autofill-reserve])

Attachments

(1 file)

This issue occurs only for the first time opening form autofill popup. 
The appearance of popup transforms from normal autocomplete layout to autofill's layout in a very short time, and it's observable by naked eyes. 
I think it's because we insert our stylesheet at "FormAutoComplete:MaybeOpenPopup" and that might too late for our binding being attached prior to showing up. 
Also, this issue might cause some of the test cases unstable as we could not tell which binding is actually attached right after popup opened.

Perhaps, we should consider inserting stylesheet a bit earlier to mitigate this issue? maybe when input being "focusin"?  

* This issue barely happens on Windows.
Added a browser chrome test to validate this issue, please see the attachment 8878737 [details] and try result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a3338ac1c9dafe5bdd4e6cfa33bff7686efcaf22

The experiment is basically to check the @actualtype of the list items, that @actualtype will only be set to "formautofill" in our binding's constructor. If actual value got "" rather than "formautofill", then we can say our binding hasn't really attached yet at that point.
Component: Form Manager → Form Autofill
Whiteboard: [form autofill] → [cc-autofill-mvp] [form autofill]

The flicker is slightly reproducible on Windows 7/10 but I am more concerned about MacOS because it displays a scrollable dropdown even if there is only 1 CC suggestion displayed, check it out here: https://streamable.com/ek6sos

Whiteboard: [cc-autofill-mvp] [form autofill] → [cc-autofill-reserve]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: