Closed Bug 1612802 Opened 4 years ago Closed 4 years ago

Reject IME notifications from content processes other than the currently focused one

Categories

(Core :: DOM: UI Events & Focus Handling, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: hsivonen, Assigned: masayuki)

References

Details

Attachments

(1 file)

In reference to bug 1556627 comment 182, we should look into rejecting IME notifications from content processes that aren't the focused one in case blurring the previously-focused content process is handled slowly in the previously-focused content process process and it sends IME notifications meanwhile.

Priority: -- → P2

Ah, we've already been doing this in BrowserParent, for example:
https://searchfox.org/mozilla-central/rev/919607a3610222099fbfb0113c98b77888ebcbfb/dom/ipc/BrowserParent.cpp#2157

However, looks like that a remote process still sends a blur message to the main process when destroying the active IMEContentObserver from IMEStateManager::StopIMEStateManagement(). We should stop doing it.

Assignee: nobody → masayuki
Severity: normal → S3
Status: NEW → ASSIGNED
Type: defect → enhancement
OS: Unspecified → All
Priority: P2 → P3
Hardware: Unspecified → All

Currently, BrowserParent rejects any notifications which come after
it blurs from IME focus.
https://searchfox.org/mozilla-central/rev/919607a3610222099fbfb0113c98b77888ebcbfb/dom/ipc/BrowserParent.cpp#2157,2169,2181,2192,2203,2216

But for saving unnecessary IPC messages, we should make IMEStateManager in
a content process stop sending notifications which occurs during its
StopIMEStateManagement() is called.

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/fe681c163180
Make `IMEStateManager` stop notifying `PuppetWidget` of editor state changes while its `StopIMEStateManagement()` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Regressions: 1672095
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: