From 289a83cfaac6315cf23e094ce6ac5258b83ff2f3 Mon Sep 17 00:00:00 2001 From: Neil Rashbrook Date: Sun, 30 Oct 2011 14:57:12 +0000 Subject: [PATCH] Fix more bustage from bug 684821 a=mcsmurf for checkin to a CLOSED TREE --- suite/browser/nsTypeAheadFind.js | 4 ++-- suite/common/nsContextMenu.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/suite/browser/nsTypeAheadFind.js b/suite/browser/nsTypeAheadFind.js index aa0c79aa1b..8e951d97e8 100644 --- a/suite/browser/nsTypeAheadFind.js +++ b/suite/browser/nsTypeAheadFind.js @@ -182,8 +182,8 @@ typeAheadFind.prototype = { // Don't start a find if the focus is an editable element. var window = aEvent.currentTarget; var element = window.document.commandDispatcher.focusedElement; - if (element instanceof Components.interfaces.nsIDOMNSHTMLElement && - element.contentEditable == "true") + if (element instanceof Components.interfaces.nsIDOMHTMLElement && + element.isContentEditable) return true; // Don't start a find if the focus is on a form element. diff --git a/suite/common/nsContextMenu.js b/suite/common/nsContextMenu.js index 5083f40c68..387b4cc1fb 100644 --- a/suite/common/nsContextMenu.js +++ b/suite/common/nsContextMenu.js @@ -1307,7 +1307,7 @@ nsContextMenu.prototype = { return true; for (var node = this.target; node; node = node.parentNode) - if (node instanceof Components.interfaces.nsIDOMNSHTMLElement) + if (node instanceof Components.interfaces.nsIDOMHTMLElement) return node.isContentEditable; return false; },