Closed Bug 2057393 Opened 3 months ago Closed 3 months ago

virtual keyboard might not work when opening a new window

Categories

(GeckoView :: IME, defect, P1)

All
Android
defect

Tracking

(firefox153 wontfix, firefox154 fixed, firefox155 fixed)

RESOLVED FIXED
155 Branch
Tracking Status
firefox153 --- wontfix
firefox154 --- fixed
firefox155 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 external files)

Step

  1. Browse https://wontfix.net/bugs/2048921/
  2. Click first [Popup] button
  3. Set focus to input field on new window
  4. Type something via virtual keyboard

Result

No typed character

When opening a new window, virtual keyboard might not work because
GeckoEditableParent is not set.

Normally, it is creates and attched with parent process when global document
is created. If it is too early, it is rarely failed since root window isn't
found yet.

We have a fallback path to create it when taking a IME focus, but it forget
attaching with parent process. So we should attach it on fallback path.

See Also: → 2048921
See Also: → 2027401
Keywords: regression
Regressed by: sync-about-blank
Severity: -- → S2
Priority: -- → P1

Set release status flags based on info from the regressing bug 543435

Pushed by m_kato@ga2.so-net.ne.jp: https://github.com/mozilla-firefox/firefox/commit/57e674a6df17 https://hg.mozilla.org/integration/autoland/rev/8813c7e52487 Set `GeckoEditableParent` if not set when taking a focus. r=geckoview-reviewers,owlish
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

The patch landed in nightly and beta is affected.
:m_kato, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(m_kato)

When opening a new window, virtual keyboard might not work because
GeckoEditableParent is not set.

Normally, it is creates and attched with parent process when global document
is created. If it is too early, it is rarely failed since root window isn't
found yet.

We have a fallback path to create it when taking a IME focus, but it forget
attaching with parent process. So we should attach it on fallback path.

Original Revision: https://phabricator.services.mozilla.com/D313929

Attachment #9619669 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: When creating new window by window.open, user cannot input any text in textbox on the new window.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Root cause is that a binder/IPC connection of text input is failed. This fix retries to create IPC connection when textbox is taking a focus if connection is nothing.
  • String changes made/needed?: No
  • Is Android affected?: yes
Flags: needinfo?(m_kato)
Attachment #9619669 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: