Fix more bustage from bug 684821

a=mcsmurf for checkin to a CLOSED TREE
This commit is contained in:
Neil Rashbrook 2011-10-30 14:57:12 +00:00
Родитель 79717d3896
Коммит 289a83cfaa
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -182,8 +182,8 @@ typeAheadFind.prototype = {
// Don't start a find if the focus is an editable element. // Don't start a find if the focus is an editable element.
var window = aEvent.currentTarget; var window = aEvent.currentTarget;
var element = window.document.commandDispatcher.focusedElement; var element = window.document.commandDispatcher.focusedElement;
if (element instanceof Components.interfaces.nsIDOMNSHTMLElement && if (element instanceof Components.interfaces.nsIDOMHTMLElement &&
element.contentEditable == "true") element.isContentEditable)
return true; return true;
// Don't start a find if the focus is on a form element. // Don't start a find if the focus is on a form element.

Просмотреть файл

@ -1307,7 +1307,7 @@ nsContextMenu.prototype = {
return true; return true;
for (var node = this.target; node; node = node.parentNode) 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 node.isContentEditable;
return false; return false;
}, },