Closed Bug 1672269 Opened 3 years ago Closed 3 years ago

[Bug] Attempting to select text in Thai script fails on Android and makes Fenix unable to load new pages


(GeckoView :: General, defect, P1)



(firefox82 wontfix, firefox83 fixed, firefox84 fixed)

84 Branch
Tracking Status
firefox82 --- wontfix
firefox83 --- fixed
firefox84 --- fixed


(Reporter: kbrosnan, Assigned: m_kato)




(Keywords: regression, Whiteboard: [geckoview:m84])


(1 file)

From github:

Steps to reproduce

  1. Open any web site with Thai characters, for example
  2. Long tap on any Thai text, as if you wanted to select some text.

Expected behavior

Some text is being selected.

Actual behavior

  1. No text is being selected by the long tap.
  2. No text, not even with latin script, can be selected any more.
  3. Loading a page in new tabs will do nothing at all.

Device information

  • Android device: Xiaomi Mi A2 Lite, Android 10, last system update 2020-09-01
  • Fenix version: 81.1.4 (Build #2015768387), reproducible with today's nightly build (from Google Play Store)

Change performed by the Move to Bugzilla add-on.

I can reproduce this in Fenix, Reference Browser and GVE. It leaves the browser in a completely unusable state.

2020-10-20 14:14:31.904 1518-24163/? E/ActivityManager: ANR in org.mozilla.geckoview_example (org.mozilla.geckoview_example/.GeckoViewActivity)
    PID: 23846
    Reason: Input dispatching timed out (ActivityRecord{b10b305 u0 org.mozilla.geckoview_example/.GeckoViewActivity t22366} does not have a focused window)
    Parent: org.mozilla.geckoview_example/.GeckoViewActivity
Whiteboard: regre
Whiteboard: regre

Long tap will select word and word breaker code uses line breaker code on Gecko. This may be related to bug 1553725 if this isn't regression.

Assignee: nobody → m_kato
Regressed by: 425915
Has Regression Range: --- → yes

After landing bug 425915, we use NextWord instead of BreakInBetween.
NextWord is possible to return empty string (offset equals to current
position). So it shouldn't return empty string.

Priority: -- → P1
Whiteboard: [geckoview:m84]
Pushed by
NextWord shouldn't return empty. r=jfkthame
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch

Comment on attachment 9182862 [details]
Bug 1672269 - NextWord shouldn't return empty. r=jfkthame

Beta/Release Uplift Approval Request

  • User impact if declined: When user long-taps Thai language text on Fenix, Fenix hangs up.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Bug 425915 changes word segmentation for East Asia language. When this occurs, we may select empty text. So we should select 1 character at least instead when selecting word.
  • String changes made/needed: No
Attachment #9182862 - Flags: approval-mozilla-beta?

Comment on attachment 9182862 [details]
Bug 1672269 - NextWord shouldn't return empty. r=jfkthame

Severe bug for Thai users makes Fenix unusable for them, approved for 83 beta 4, thanks.

Attachment #9182862 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.