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.
|
// 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;
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче