mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 867567 - JavaScript Error: "TypeError: focused is null". r=kats
This commit is contained in:
parent
af607e2c94
commit
8fa8aefe46
@ -1248,7 +1248,7 @@ var BrowserApp = {
|
||||
if (aOnlyInputElements)
|
||||
return null;
|
||||
|
||||
if (focused instanceof HTMLTextAreaElement || focused.isContentEditable) {
|
||||
if (focused && (focused instanceof HTMLTextAreaElement || focused.isContentEditable)) {
|
||||
|
||||
if (focused instanceof HTMLBodyElement) {
|
||||
// we are putting focus into a contentEditable frame. scroll the frame into
|
||||
|
Loading…
Reference in New Issue
Block a user