Audit usage of EARLY_BETA_OR_EARLIER for `dom.event.keypress.key.allow_lone_surrogate`
Categories
(Core :: DOM: UI Events & Focus Handling, task, P1)
Tracking
()
People
(Reporter: hsinyi, Assigned: masayuki)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
We need to audit the usage and replace with another macro before August 17, when Nightly 155 merges to Beta.
See bug 2051729 comment 0
| Reporter | ||
Comment 1•3 months ago
|
||
Hi Masayuki, can you please audit this usage and update it properly? Thank you.
| Assignee | ||
Comment 2•3 months ago
|
||
Well, it seems that it's fine to ship the better behavior even though it's not compatible with Chrome.
| Assignee | ||
Comment 3•3 months ago
|
||
The pref was added in bug 1840519, 3 years ago. The motivation of the
new behavior is, String.fromCharCode(event.charCode) won't create
ill-formed UTF-16 string only from the high-surrogate or the
low-surrogate.
Unfortunately, this behavior is incompatible with Chrome, but we don't
get any bug reports from our testers in this 3 years. So, I think
shipping this is enough safe and the new behavior is better from the
Unicode spec point of view.
Note that there must be only a few keyboard layouts which can type
non-BMP characters directly. I tried to test it with creating a
custom keyboard layout (attachment 9341661 [details]). So, originally, this bug
affected only a small number of users.
Comment 4•3 months ago
|
||
Comment on attachment 9604400 [details]
Bug 2052478 - Ship the better keypress.charCode behavior when typing a surrogate pair r=smaug!
Revision D310450 was moved to bug 1849790. Setting attachment 9604400 [details] to obsolete.
Updated•3 months ago
|
Comment 5•3 months ago
|
||
Comment on attachment 9604400 [details]
Bug 2052478 - Ship the better keypress.charCode behavior when typing a surrogate pair r=smaug!
Revision D310450 was moved to bug 1849790. Setting attachment 9604400 [details] to obsolete.
| Assignee | ||
Comment 6•3 months ago
|
||
It's removed by shipping the new behavior in bug 1849790.
Description
•