[iOS] Crash long pressing on <input type=file>
authorjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jun 2015 21:39:57 +0000 (21:39 +0000)
committerjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jun 2015 21:39:57 +0000 (21:39 +0000)
commitc55dc9b79ee61e9f8f5914b0f711c62d49fe3ac2
treef2542c4af8f28f489ff728bff3b878b39eb2f085
parent7918fedd4707b6ac416fe7d525a798ee58cf9dd7
[iOS] Crash long pressing on <input type=file>
https://bugs.webkit.org/show_bug.cgi?id=146009
<rdar://problem/21234453>

Reviewed by Ryosuke Niwa.

.:

* ManualTests/ios/long-press-input-type-file-crash.html: Added.

Source/WebCore:

* dom/Position.cpp:
(WebCore::Position::atStartOfTree):
(WebCore::Position::atEndOfTree):
Null check the container node before passing it to findParent().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
ManualTests/ios/long-press-input-type-file-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Position.cpp