mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 09:01:16 +00:00
Bug 839473 - Return early in form.js for non editable content r=fabrice
This commit is contained in:
parent
13d4085355
commit
8cb536206d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user