-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EditContext: Are the events for EditContext
propagated in the DOM tree?
#8
Comments
Oh, and |
The compositionstart and compositionend events are fired on EditContext (spec), not on the associated element, so I think we are aligned on this front. Note that there is no compositionupdate event when EditContext is active since EC's textupdate event already has info for the composition text. There is also no insertCompositionText, insertFromComposition, deleteByComposition, deleteCompositionText since we are not updating DOM. As for fingerprinting, are you worried about rangeStart/rangeEnd where we are exposing what characters can be combined into a phrase? (I supposed color/underlineStyle/thickness are not related to fingerprinting) But we are already exposing whole composition texts in compositionupdate event, by observing the incremental update of the string I think the 3rd party is already able to determine what characters are treated as a phrase, it can even get all the candidate words as user enumerating in the candidate window (in Japanese IME), so I think textformatupdate event isn't really exposing much more info than what we are already exposing. |
No.
I worry about this. 3rd party's IME may use different style/color especially on Windows. E.g., ATOK which is a 3rd party's Japanese IME uses light blue background color etc by the default settings. So the new leaking information may let trackers know which IME is used. |
This feels like an acceptable tradeoff to me. Users that are actively composing will also now have enough information exposed for authors to render that text properly onto their editing canvas. UAs could also choose to alter the styles before dispatching textformatupdate. It may be acceptable to do so to ensure contrast or combat fingerprinting. We could add a note in the spec that UAs are free to make such adjustments? |
makes sense, for example, tor developers would do it.
Yeah, should be there. |
I don't find whether the events for
EditContext
is fired only in an associated instance of active element as a default action ofcomposition*
events or propagated from the DOM tree. I like the former better for making browsers' implementation simpler and saving the propagation cost. However, if so, the events can be attributes ofEditContext
because I have no idea of adding 2 or more event listeners for same event.The text was updated successfully, but these errors were encountered: