From ed83277fcad8d85d985cedbacec2b8c1b122ba67 Mon Sep 17 00:00:00 2001 From: Kevin Cox Date: Sat, 5 May 2018 11:13:32 +0100 Subject: [PATCH] Replace XULTextBoxElement for Firefox 61 compatibility (#916) It was removed: https://bugzilla.mozilla.org/show_bug.cgi?id=1456703 I replaced it with the same logic used when replacing it in mozilla-central. This file might be interesting to watch if future interfaces get removed: https://dxr.mozilla.org/mozilla-central/source/dom/interfaces/xul/moz.build --- extension/lib/utils.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extension/lib/utils.coffee b/extension/lib/utils.coffee index d805af9..ee54400 100644 --- a/extension/lib/utils.coffee +++ b/extension/lib/utils.coffee @@ -28,7 +28,6 @@ nsIDomUtils = XULButtonElement = Ci.nsIDOMXULButtonElement XULControlElement = Ci.nsIDOMXULControlElement XULMenuListElement = Ci.nsIDOMXULMenuListElement -XULTextBoxElement = Ci.nsIDOMXULTextBoxElement isXULDocument = (doc) -> doc.toString() == '[object XULDocument]' @@ -155,8 +154,7 @@ isTextInputElement = (element) -> return (element.localName == 'input' and element.type in [ 'text', 'search', 'tel', 'url', 'email', 'password', 'number' ]) or - element.localName == 'textarea' or - element instanceof XULTextBoxElement or + element.localName in [ 'textarea', 'textbox' ] or isContentEditable(element) isTypingElement = (element) -> -- 2.39.3