Closed Bug 2012938 Opened 5 months ago Closed 4 months ago

Add more test cases for bug 1563640

Categories

(GeckoView :: IME, defect, P3)

All
Android
defect

Tracking

(firefox150 fixed)

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

After dispatching enter key, SwiftKey sets composing selection to previous selection then commit. So I should add this IC calls to junit.

Assignee: nobody → m_kato

I would like to add a test case to enumerate InputConnection calls by
SwiftKey.

Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9c434973873b https://hg.mozilla.org/integration/autoland/rev/e5d97346a612 Revert "Bug 2012938 - Add a test case for bug 1563640. r=geckoview-reviewers,ohall" for causing junit failures @ TextInputDelegateTest

Backed out for causing junit failures

Flags: needinfo?(m_kato)

Hmm, I cannot reproduce this on local. I need to test more in taskcluster....

I am re-thinking a fix of bug 1563640. It is better to ignore update composition during batch edit.

https://treeherder.mozilla.org/jobs?repo=try&revision=9f96851e9797f70202b6bd4b4c61ced6a5dc527b

Original bug (bug 1563640) is that SwiftKey calls meaningless
setComposingRegion() and finishComposingText() when user presses enter
key. Android can have two caret types, one is normal caret and the other
is IME caret. But Gecko has only normal caret. So this SwiftKey's behavior
causes that the caret position is changed unfortunately.

I added a workaround to ignore these. But this causes test failures on some
tests that is disabled now. So this fix re-writes it.

This fix is that we don't update composition immediately during batch mode.
We wait until batch mode is finished and then update composition.

Flags: needinfo?(m_kato)
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Regressions: 2038467
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: