diff --git a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoView.java b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoView.java index ca975a6e821b..4f3724aad31f 100644 --- a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoView.java +++ b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoView.java @@ -785,8 +785,6 @@ public class GeckoView extends FrameLayout { @Override public void onProvideAutofillVirtualStructure(final ViewStructure structure, final int flags) { - super.onProvideAutofillVirtualStructure(structure, flags); - if (mSession == null) { return; } @@ -798,8 +796,6 @@ public class GeckoView extends FrameLayout { @Override @TargetApi(26) public void autofill(@NonNull final SparseArray values) { - super.autofill(values); - if (mSession == null) { return; } @@ -814,6 +810,14 @@ public class GeckoView extends FrameLayout { mSession.autofill(strValues); } + @Override + public boolean isVisibleToUserForAutofill(final int virtualId) { + // If autofill service works with compatibility mode, + // View.isVisibleToUserForAutofill walks through the accessibility nodes. + // This override avoids it. + return true; + } + /** * Request a {@link Bitmap} of the visible portion of the web page currently being * rendered.