Closed
Bug 1288640
Opened 7 years ago
Closed 5 years ago
Stop dispatching "text" event in web contents
Categories
(Core :: DOM: Events, defect, P3)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla65
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: dev-doc-complete, inputmethod, site-compat)
Attachments
(1 file)
Using "text" events in web contents does not make sense because it's a non-standard event and doesn't provide enough information. So, I think that we should stop dispatching it in web contents. However, mOnlySystemGroupDispatchInContent is slow. So, I think that we should add new flag mOnlySystemGroupDispatch which skips to dispatch event in default event group on any nodes. Any ideas?
Updated•7 years ago
|
Keywords: dev-doc-needed,
site-compat
Comment 1•7 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #0) > However, mOnlySystemGroupDispatchInContent is slow. It is? Why? (I'm not aware it being slow) I think we need to add some telemetry whether pages are using the event. Right now we know nothing about its usage.
Assignee | ||
Comment 2•7 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #1) > (In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #0) > > > However, mOnlySystemGroupDispatchInContent is slow. > It is? Why? > (I'm not aware it being slow) See here: https://dxr.mozilla.org/mozilla-central/rev/4c05938a64a7fde3ac2d7f4493aee1c5f2ad8a0a/dom/events/EventDispatcher.cpp#260,262 While EventDispatcher is dispatching an event in the default group, it needs to check if the node is in chrome document. Therefore, you requested me to add this comment ;-) https://dxr.mozilla.org/mozilla-central/rev/4c05938a64a7fde3ac2d7f4493aee1c5f2ad8a0a/widget/BasicEvents.h#113-115 > I think we need to add some telemetry whether pages are using the event. > Right now we know nothing about its usage. If it's possible, sounds reasonable, but how? I'm not familiar with telemetry. Do you know some documents about that?
Flags: needinfo?(bugs)
Priority: -- → P3
Assignee | ||
Comment 4•5 years ago
|
||
Although the percentage of using web apps is not 0, but about only 0.0003%. So, let's disable it on all channels by default and then, if Beta users increase the percentage drastically, we should revert the change.
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=df88be70af5cc6effba3e906a6860900f9f53f6b
Assignee | ||
Comment 6•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ea30f96e05457db22c0b22164427d44d55ba4420
Assignee | ||
Comment 7•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=99727b772e02b904f51c5a710f169157802e62bb
Assignee | ||
Comment 8•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a1a47a8af1fbddbb96b2a7ce4156e2531095e163
Assignee | ||
Comment 9•5 years ago
|
||
The usage of our specific "text" event is enough low (0.0003%). So, let's stop dispatching the event in the default group of web content. Once we release this new behavior, we can get rid of dispatching the event even in chrome. Then, we can optimize the event order for new specs.
Comment 10•5 years ago
|
||
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/8be20508c9d5 Make TextComposition not dispatch eCompositionChange events (DOM "text" event) in the default group of web content r=smaug
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8be20508c9d5
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Comment 12•5 years ago
|
||
Posted site compatibility note: https://www.fxsitecompat.com/en-CA/docs/2018/non-standard-text-event-will-no-longer-be-fired-during-ime-composition/
Comment 13•5 years ago
|
||
I pushed a followup to fix a minor typo in a code-comment from this bug ("Whehter"): https://hg.mozilla.org/integration/mozilla-inbound/rev/66fb17ea8b049a40f14ff96e0ed1614ef1880207
Comment 14•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/66fb17ea8b04
Assignee | ||
Comment 15•5 years ago
|
||
Oops! Thank you.
Comment 16•5 years ago
|
||
I've added a note to the Fx65 rel notes to cover this: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/65#APIs I've also removed the tiny mention of this event that I found in the main event ref landing page. So I think we can call this dev-doc-complete.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•