Closed Bug 1722662 Opened 3 years ago Closed 3 years ago

Form autofill not displaying preview on hover

Categories

(Toolkit :: Form Autofill, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
93 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- verified
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- verified
firefox93 --- verified

People

(Reporter: atrif, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files)

Affected versions

  • 92.0a1 (20210727094543)
  • 91.0b8 (20210727214000)
  • 90.0.2 (20210721174149)

Affected platforms

  • Windows 10x64
  • Windows 7x64
  • macOS 11
  • Ubuntu 18.04

Preconditions

  • have at least one saved address

Steps to reproduce

  1. Open https://luke-chang.github.io/autofill-demo/basic.html and hover over the saved addresses.

Expected result

  • Previews are displayed inside fields on hover.

Actual result

  • Only a yellow bar is shown.

Regression range

  • Nightly from 2021-02-02 is not affected. I will search for one ASAP.

Notes

  • Attached a screen recording showing an older version and 91.0b8.
Has Regression Range: --- → no
Has STR: --- → yes
QA Whiteboard: [qa-regression-triage]

Narrowed regression window to the following commit:

Bug 1698315 - Manage placeholder and autofill preview visibility using CSS rather than custom code. r=masayuki

pushlog_url: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=9797872fe7aa7a2f9d137fcc4b1cb03d8ab353ae&tochange=d989f71f0a415c9efe4fce7b01de4868289cacf7

Has Regression Range: no → yes
QA Whiteboard: [qa-regression-triage]
Regressed by: 1698315

Hi emilio, it seems that Bug 1698315 causes the regression, could you help take a look at this? thanks!

Flags: needinfo?(emilio)

Sure. How do I get the address autofill? At least when I try to autofill the form here I don't get any suggestions, even on a clean build...

Flags: needinfo?(alexandru.trif)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #3)

Sure. How do I get the address autofill? At least when I try to autofill the form here I don't get any suggestions, even on a clean build...

Hello! For autofill to work you will need to set extensions.formautofill.available:on and browser.search.region:US. Restart the browser and add some addresses by pressing Saved Addresses under Forms and Autofill inside about:preferences#privacy. You can use https://www.fakepersongenerator.com/ site or add random ones. Note that Country or Region needs to be on United States.

Flags: needinfo?(alexandru.trif)

Thank you.

Assignee: nobody → emilio
Flags: needinfo?(emilio)

The style system uses the changed bits to compute the old state, so if
it's inaccurate it might cause styles to be incorrectly invalidated.

This causes issues because with the next patch the autofill jsm
calls removeManuallyManagedStates(AUTOFILL), then
addManuallyManagedStates(AUTOFILL | AUTOFILL_PREVIEW), and if the input
didn't have AUTOFILL before we'd incorrectly detect it as not changing
with the next patch.

Also make them not virtual anymore since nobody overrides them. An
alternative to this would be to assert that we don't yet have the state
we're adding (or that we have the state we're removing), and handle it
in the callers. But this is a bit more convenient.

This is useful so that author rules for :autofill also work for the
autofill preview.

It also makes the UA sheet in forms.css simpler (otherwise we'd need to
tweak the selectors to put :-moz-autofill-preview everywhere we put
:autofill).

Depends on D122013

They're not the prettiest, but that's all that needs to happen right now for
autofill to work.

Depends on D122015

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/72b71bfe6d2c
Make Element::{Add,Remove}States handle change notifications correctly. r=smaug
https://hg.mozilla.org/integration/autoland/rev/db41a8a3a901
Make :-moz-autofill-preview imply :autofill. r=hiro
https://hg.mozilla.org/integration/autoland/rev/1bcfaa7b4b3f
Load SpecialPowers in reftests. r=jgraham,jmaher
https://hg.mozilla.org/integration/autoland/rev/abd8ccf71212
Add tests for autofill rendering. r=hiro
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/69da4af50d23
Make Element::{Add,Remove}States handle change notifications correctly. r=smaug
https://hg.mozilla.org/integration/autoland/rev/3e04c6be2e0c
Make :-moz-autofill-preview imply :autofill. r=hiro
https://hg.mozilla.org/integration/autoland/rev/b3c361c3fc38
Load SpecialPowers in reftests. r=jgraham,jmaher
https://hg.mozilla.org/integration/autoland/rev/429bfcda963d
Add tests for autofill rendering. r=hiro

Verified fixed with 93.0a1 (20210815094823) on Windows 10x64, macOS 10.15 and Ubuntu 21.04. Autofill preview is displayed as expected when hovered. Thank you!

Status: RESOLVED → VERIFIED

Please nominate this for Beta & ESR91 approval when you get a chance.

Flags: needinfo?(emilio)

Comment on attachment 9235140 [details]
Bug 1722662 - Make Element::{Add,Remove}States handle change notifications correctly. r=smaug

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Relatively straight-forward patch (the harder bits are actually tests)
  • String changes made/needed: none
Flags: needinfo?(emilio)
Attachment #9235140 - Flags: approval-mozilla-beta?
Attachment #9235141 - Flags: approval-mozilla-beta?
Attachment #9235142 - Flags: approval-mozilla-beta?
Attachment #9235143 - Flags: approval-mozilla-beta?

Comment on attachment 9235140 [details]
Bug 1722662 - Make Element::{Add,Remove}States handle change notifications correctly. r=smaug

Approved for 92.0b5.

Attachment #9235140 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9235141 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9235142 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9235143 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified fixed with 92.0b5 (20210817185605) on Windows 10x64, macOS 10.15 and Ubuntu 21.04.

Comment on attachment 9235140 [details]
Bug 1722662 - Make Element::{Add,Remove}States handle change notifications correctly. r=smaug

Also approved for 91.1esr.

Attachment #9235140 - Flags: approval-mozilla-esr91+
Attachment #9235141 - Flags: approval-mozilla-esr91+
Attachment #9235142 - Flags: approval-mozilla-esr91+
Attachment #9235143 - Flags: approval-mozilla-esr91+

Verified fixed with 91.1.0esr (20210830184617) on Windows 10x64, macOS 10.15 and Ubuntu 21.04.

See Also: → 655622
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: