Fix more bustage from bug 684821
a=mcsmurf for checkin to a CLOSED TREE
This commit is contained in:
Родитель
79717d3896
Коммит
289a83cfaa
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче