Closed Bug 2052478 Opened 3 months ago Closed 3 months ago

Audit usage of EARLY_BETA_OR_EARLIER for `dom.event.keypress.key.allow_lone_surrogate`

Categories

(Core :: DOM: UI Events & Focus Handling, task, P1)

task

Tracking

()

RESOLVED FIXED

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

Hi Masayuki, can you please audit this usage and update it properly? Thank you.

Flags: needinfo?(masayuki)

Well, it seems that it's fine to ship the better behavior even though it's not compatible with Chrome.

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)
OS: Unspecified → All
Hardware: Unspecified → All
See Also: → 1840519

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 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.

Attachment #9604400 - Attachment is obsolete: true
Attachment #9604400 - Attachment is obsolete: false

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.

Attachment #9604400 - Attachment is obsolete: true

It's removed by shipping the new behavior in bug 1849790.

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: