зеркало из https://github.com/mozilla/gecko-dev.git
Bug 839473 - Return early in form.js for non editable content. r=fabrice, a=lsblakk
This commit is contained in:
Родитель
34eabcdc51
Коммит
14750f963d
|
@ -237,12 +237,20 @@ let FormAssistant = {
|
|||
|
||||
switch (evt.type) {
|
||||
case "focus":
|
||||
if (target && isContentEditable(target)) {
|
||||
if (!target) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (target instanceof HTMLDocument || target == content) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (isContentEditable(target)) {
|
||||
this.showKeyboard(this.getTopLevelEditable(target));
|
||||
break;
|
||||
}
|
||||
|
||||
if (target && this.isFocusableElement(target))
|
||||
if (this.isFocusableElement(target))
|
||||
this.showKeyboard(target);
|
||||
break;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче