Closed Bug 1203364 Opened 9 years ago Closed 9 years ago

IMEContentObserver doesn't need to manage the reason of selection change because the last reason is enough for widget

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: inputmethod)

Attachments

(1 file)

Currently, IMEContentObserver manages the reason of selection change itself. However, it does NOT indicate the last selection change reason. It doesn't make sense except bug 1184890. In current design, widget can ignore unexpected selection change if it occurs before the latest expected selection change.
Let's notify IME of the latest selection with the latest selection change reason. This makes IMEContentObserver simpler and makes sense because if we need to notify IME of omitted selection change reason, we need to notify IME of the omitted selection change separately. Although, we might have some problem around this if selection is changed from compositionupdate listener. But we should investigate it later since it's not realistic scenario.
Attachment #8660629 - Flags: review?(bugs)
Comment on attachment 8660629 [details] [diff] [review] IMEContentObserver should notify IME of selection change with the latest change reason >- // mSelectionData is the last selection data which was notified. This is >- // modified by UpdateSelectionCache(). Note that mCausedBy* are always >- // false. Do NOT refer them. >+ // mSelectionData is the last selection data which was notified. The >+ // selection information is modified by UpdateSelectionCache(). The reason >+ // of the selection change is modified by PostSelectionChangeNotification(). No it isn't. PostSelectionChangeNotification does not modify the reason, but IMEContentObserver::MaybeNotifyIMEOfSelectionChange
Attachment #8660629 - Flags: review?(bugs) → review+
url: https://hg.mozilla.org/integration/mozilla-inbound/rev/fe70add404858840b24f81d522033959e95b5f53 changeset: fe70add404858840b24f81d522033959e95b5f53 user: Masayuki Nakano <masayuki@d-toybox.com> date: Mon Sep 14 23:28:43 2015 +0900 description: Bug 1203364 IMEContentObserver should notify IME of selection change with the latest change reason r=smaug
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: