Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 259548.204@safari-7615-branch (e110042). https://bugs.web…
…kit.org/show_bug.cgi?id=252426 Nullptr crash in DateTimeFieldElement::isFocusable() https://bugs.webkit.org/show_bug.cgi?id=252426 rdar://105383909 Reviewed by Aditya Keerthi and Wenson Hsieh. The bug was caused by FocusController calling isFocusable() on a disconnected element of the shadow tree of input element after blur event handler had changed the input type. Fixed the crash by checking the connected-ness early and bailing out if it's disconnected. * LayoutTests/fast/dom/focus-dialog-blur-input-type-change-crash-expected.txt: Added. * LayoutTests/fast/dom/focus-dialog-blur-input-type-change-crash.html: Added. * Source/WebCore/dom/Document.cpp: (WebCore::Document::setFocusedElement): Canonical link: https://commits.webkit.org/259548.204@safari-7615-branch
- Loading branch information