Bug 1452462 - Remove usage of nsIDOMHTMLObjectElement in SeaMonkey. r=IanN a=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sun, 08 Apr 2018 21:33:12 +0200
changeset 30518 30610b34592ff75a77740d18c9e256d1aa7c2691
parent 30517 6394caf01a8f7b7aa2b755149a9e9a92e8207b78
child 30519 fbd3ecd0558fd6b786c8d40bf9384f9bfb522aa7
push id2164
push userfrgrahl@gmx.net
push dateSun, 08 Apr 2018 19:33:54 +0000
treeherdercomm-beta@30610b34592f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs1452462, 1402102
Bug 1452462 - Remove usage of nsIDOMHTMLObjectElement in SeaMonkey. r=IanN a=IanN Port Bug 1402102 [Remove nsIDOMHTMLObjectElement].
suite/browser/nsTypeAheadFind.js
--- a/suite/browser/nsTypeAheadFind.js
+++ b/suite/browser/nsTypeAheadFind.js
@@ -156,17 +156,17 @@ typeAheadFind.prototype = {
     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 ||
         ChromeUtils.getClassName(element) === "HTMLEmbedElement" ||
-        element instanceof Ci.nsIDOMHTMLObjectElement ||
+        ChromeUtils.getClassName(element) === "HTMLObjectElement" ||
         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))
       return true;