Closed Bug 1722473 Opened 3 years ago Closed 3 years ago

`KeyEvent.initKeyEvent` will be dropped

Categories

(Thunderbird :: Upstream Synchronization, task)

Tracking

(thunderbird91 unaffected)

RESOLVED FIXED
92 Branch
Tracking Status
thunderbird91 --- unaffected

People

(Reporter: masayuki, Assigned: darktrojan)

References

Details

Attachments

(1 file)

KeyEvent.initKeyEvent which is a legacy API will be dropped from Gecko because it's not supported by Blink/WebKit. comm-central still uses it in some places:
https://searchfox.org/comm-central/search?q=initKeyEvent&path=&case=true&regexp=false

Recommended solution is using:

let event = new KeyboardEvent(eventType, {
  bubbles: true,
  cancelable: true,
  keyCode: someting,
  charCode: anything,
};

But using the event constructor changes which value.

I'll look at this tomorrow. Thanks for letting us know.

Assignee: nobody → geoff

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b7b3bdecb432
Replace initKeyboardEvent with new KeyboardEvent. r=freaktechnik

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: