Don't call View.onProvideAutofillVirtualStructure in GeckoView.onProvideAutofillVirtualStructure
Categories
(GeckoView :: General, defect, P2)
Tracking
(firefox95 fixed)
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
Details
(Whiteboard: [geckoview:m96?])
Attachments
(1 file)
Profile data: https://share.firefox.dev/3DhzY2i
When Autofill services runs on compatibility mode (example, Bitwarden), View.onProvideAutofillStructure
(https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/view/View.java;l=8779) will walk though the accessibility nodes. Walking though seems to be slow according to profiling data.
Actually, we set autofill data via Autofill.Session.fillViewStructure
, so it is unnecessary to walk though all accessibility nodes.
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
When Autofill service runs with compatibility mode [*1] (such as Bitwarden),
View.onProvideAutofillStructure
walks through the accessibility nodes.
Walking through it spends a lot of times.
When checking Android's source code, the following walks through it.
onProvideAutofillVirtualStructure
autofill
isVisibleToUserForAutofill
Actually, since we already add autofill's virtual nodes, it is unnecessary to
walk through it.
*1 https://developer.android.com/reference/android/service/autofill/AutofillService#compatibility-mode
Updated•3 years ago
|
Comment 3•3 years ago
|
||
bugherder |
Description
•