Open Bug 1998311 Opened 1 month ago Updated 1 month ago

Stop invoking multiple `GeckoView:ZoomToInput`s when the software keyboard is shown

Categories

(GeckoView :: IME, defect, P3)

All
Android
defect

Tracking

(Not tracked)

People

(Reporter: hiro, Unassigned)

References

Details

STR;

  1. Toggle this DEBUG flag to true to see GeckoEditable logs
  2. Open whatever document having an input area such as https://bugzilla.mozilla.org/attachment.cgi?id=9519142
  3. Tap the input area
  4. See results of adb logcat

You will see three toglleSoftInput, every one of them ends up calling nsIDOMWindowUtils.zoomToFocusedInput().

  11-05 10:20:17.355 23043 23043 D GeckoEditable: toggleSoftInput(force=true, state=IME_STATE_ENABLED)
  11-05 10:20:17.360 23043 23043 D GeckoEditable: toggleSoftInput(force=false, state=IME_STATE_ENABLED)
  11-05 10:20:17.362 23043 23043 D GeckoEditable: toggleSoftInput(force=false, state=IME_STATE_ENABLED

Most reasons of multiple toogleSoftInput calls are by icRestartInput. I will optimize this call by bug 1995911, but I will look it after landing it.

Severity: -- → S3
Priority: -- → P3
Depends on: 2000491
You need to log in before you can comment on or make changes to this bug.