From defe1e3a36efa80dcc4631b0c0f0eb6bbc7ba853 Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Tue, 21 Sep 2021 11:50:31 +0100 Subject: [PATCH] [js] Skip initKeyEvent usage when Gecko is verion 93 or later. Fixes #9853 --- javascript/atoms/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/atoms/events.js b/javascript/atoms/events.js index 50df19dccce02..8e300e1f958f5 100644 --- a/javascript/atoms/events.js +++ b/javascript/atoms/events.js @@ -351,7 +351,7 @@ bot.events.KeyboardEventFactory_.prototype.create = function (target, opt_args) var doc = goog.dom.getOwnerDocument(target); var event; - if (goog.userAgent.GECKO) { + if (goog.userAgent.GECKO && !goog.isEngineVersion(93)) { var view = goog.dom.getWindow(doc); var keyCode = args.charCode ? 0 : args.keyCode; event = doc.createEvent('KeyboardEvent');