Closed
Bug 1447866
Opened 6 years ago
Closed 6 years ago
IME crash on text input with e10s
Categories
(GeckoView :: IME, defect, P1)
Tracking
(firefox59 unaffected, firefox60 unaffected, firefox61 fixed)
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox59 | --- | unaffected |
firefox60 | --- | unaffected |
firefox61 | --- | fixed |
People
(Reporter: esawin, Assigned: masayuki)
References
Details
(Keywords: inputmethod, regression)
Attachments
(1 file, 2 obsolete files)
STR 1. Launch geckoview_example on https://google.com with multiprocess enabled. 2. Input a search query. Crashes with: Assertion failure: !aEvent->AsKeyboardEvent() || aEvent->mFlags.mIsSynthesizedForTests || aEvent->AsKeyboardEvent()->AreAllEditCommandsInitialized() (Non-sysnthesized keyboard events should have edit commands for all types before dispatched), at /home/esawin/dev/g/widget/PuppetWidget.cpp:346 That's a regression from https://hg.mozilla.org/mozilla-central/rev/00456fae72f5
Reporter | ||
Updated•6 years ago
|
Flags: needinfo?(masayuki)
Reporter | ||
Comment 1•6 years ago
|
||
In case that this is not an easy fix, we should disable the key events in the meanwhile to fix the regression.
Attachment #8961214 -
Flags: review?(masayuki)
Reporter | ||
Comment 2•6 years ago
|
||
Sorry, this is this correct patch.
Attachment #8961214 -
Attachment is obsolete: true
Attachment #8961214 -
Flags: review?(masayuki)
Attachment #8961215 -
Flags: review?(masayuki)
Assignee | ||
Comment 3•6 years ago
|
||
Ah, really sorry for my regression. However, perhaps, the right approach to fix this bug is, call WidgetKeyboardEvent.PreventNativeKeyBindings() before dispatching eKeyDown and eKeyUp event. Then, AreAllEditCommandsInitialized() will return true in this assertion and no shortcut keys won't be executed with NativeKeyBindings.
Flags: needinfo?(masayuki)
Assignee: nobody → esawin
Reporter | ||
Comment 4•6 years ago
|
||
Would you be able to write the patch? I can test and review it or forward it to Jim when he's back from PTO.
Flags: needinfo?(masayuki)
Assignee | ||
Comment 5•6 years ago
|
||
Sure.
Assignee: esawin → masayuki
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)
Keywords: inputmethod,
regression
Assignee | ||
Comment 6•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=97a2aea0bfed9fcc6a2156dfe47f6c06c86651f2
Comment hidden (mozreview-request) |
Reporter | ||
Comment 8•6 years ago
|
||
mozreview-review |
Comment on attachment 8961661 [details] Bug 1447866 - GeckoEditableSupport::SendIMEDummyKeyEvent() should set native key bindings to none before dispatching keyboard events which are marked as "processed by IME" https://reviewboard.mozilla.org/r/230530/#review236120 It fixes the issue, thanks! ::: commit-message-9b69a:12 (Diff revision 1) > +PuppetWidget checks if every keyboard event has native key binding information. > +However, the native key binding information of dummy keyboard events marked as > +"processed by IME" on Android are never initialized before sending PuppetWidget. > +Therefore, we hit MOZ_ASSERT in PuppetWidget. > + > +This patch makes GeckoEditableSuppor::SendIMEDummyKeyEvent() set native key missing t
Attachment #8961661 -
Flags: review?(esawin) → review+
Reporter | ||
Updated•6 years ago
|
Attachment #8961215 -
Attachment is obsolete: true
Attachment #8961215 -
Flags: review?(masayuki)
Comment hidden (mozreview-request) |
Comment 10•6 years ago
|
||
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/d83bf99d438d GeckoEditableSupport::SendIMEDummyKeyEvent() should set native key bindings to none before dispatching keyboard events which are marked as "processed by IME" r=esawin
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d83bf99d438d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Updated•6 years ago
|
status-firefox59:
--- → unaffected
status-firefox60:
--- → unaffected
Updated•5 years ago
|
Product: Firefox for Android → GeckoView
Updated•5 years ago
|
Keywords: inputmethod,
regression
Target Milestone: Firefox 61 → mozilla61
Updated•5 years ago
|
Keywords: inputmethod,
regression
Comment 12•2 years ago
|
||
Moving some IME bugs to the new GeckoView::IME component.
Component: General → IME
You need to log in
before you can comment on or make changes to this bug.
Description
•