Bug 1389622 - Remove usage of nsIDOMHTMLEmbedElement in SeaMonkey. r=IanN a=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sun, 08 Apr 2018 21:32:27 +0200
changeset 30516 99fcd281d389f920b85639810e82d149386d357b
parent 30515 2789c630e3e56489b4f354436c74a3a62085b761
child 30517 6394caf01a8f7b7aa2b755149a9e9a92e8207b78
push idunknown
push userunknown
push dateunknown
reviewersIanN, IanN
bugs1389622, 1387184
Bug 1389622 - Remove usage of nsIDOMHTMLEmbedElement in SeaMonkey. r=IanN a=IanN Port Bug 1387184 [Remove nsIDOMHTMLEmbedElement].
suite/browser/nsTypeAheadFind.js
--- a/suite/browser/nsTypeAheadFind.js
+++ b/suite/browser/nsTypeAheadFind.js
@@ -155,17 +155,17 @@ typeAheadFind.prototype = {
     var element = window.document.commandDispatcher.focusedElement;
     if (element.nodeType == element.ELEMENT_NODE &&
         element.namespaceURI == "http://www.w3.org/1999/xhtml" &&
         element.isContentEditable)
       return true;
 
     // Don't start a find if the focus is on a form element.
     if (element instanceof Ci.nsIDOMXULElement ||
-        element instanceof Ci.nsIDOMHTMLEmbedElement ||
+        ChromeUtils.getClassName(element) === "HTMLEmbedElement" ||
         element instanceof Ci.nsIDOMHTMLObjectElement ||
         ChromeUtils.getClassName(element) === "HTMLSelectElement" ||
         ChromeUtils.getClassName(element) === "HTMLTextAreaElement")
       return true;
 
     // Don't start a find if the focus is on an editable field
     if (element instanceof Ci.nsIDOMHTMLInputElement &&
         element.mozIsTextField(false))