Crash when right clicking in input box with -webkit-user-select: none
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 00:44:17 +0000 (00:44 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 00:44:17 +0000 (00:44 +0000)
commitfb3c8bf5e7c59c9e26cf871552ed3dda8f0bf786
tree409d29da5d1bf54be166c08fe3eb71b1627e5dcc
parent11df1773b174b73accf92b0c6170383c08a5637f
Crash when right clicking in input box with -webkit-user-select: none
https://bugs.webkit.org/show_bug.cgi?id=145981
<rdar://problem/22441925>

Reviewed by Enrica Casucci.

Source/WebCore:

Test: editing/selection/minimal-user-select-crash.html

* editing/Editor.cpp:
(WebCore::Editor::hasBidiSelection):
Visible position cannot be created because of the style that doesn't allow the selection.

LayoutTests:

* editing/selection/minimal-user-select-crash-expected.txt: Added.
* editing/selection/minimal-user-select-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/minimal-user-select-crash-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/minimal-user-select-crash.html [new file with mode: 0644]
LayoutTests/platform/ios-simulator/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/editing/Editor.cpp