[WK1] Null dereference loading Blink layout test editing/input/text-input-controller...
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 02:47:50 +0000 (02:47 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 02:47:50 +0000 (02:47 +0000)
commit6904ca06c6b5a557f43562012a1c230a5d5e8f8b
treebff2ee77df071f7c01872f9f65d019b1827c28c7
parenta0c6db0a2a15f1c5051431ec0e6dabfe80ce551e
[WK1] Null dereference loading Blink layout test editing/input/text-input-controller-no-editable-no-crash.html
https://bugs.webkit.org/show_bug.cgi?id=149484
<rdar://problem/22811338>

Reviewed by Darin Adler.

Source/WebKit/mac:

firstRectForCharacterRange(): don't fall over in an editable-less frame.

* WebView/WebFrame.mm:
(-[WebFrame _convertToDOMRange:]):

LayoutTests:

This test is from Blink r194870:
https://codereview.chromium.org/1122593004

* editing/mac/input/text-input-controller-no-editable-no-crash-expected.txt: Added.
* editing/mac/input/text-input-controller-no-editable-no-crash.html: Added.
* platform/wk2/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/mac/input/text-input-controller-no-editable-no-crash-expected.txt [new file with mode: 0644]
LayoutTests/editing/mac/input/text-input-controller-no-editable-no-crash.html [new file with mode: 0644]
LayoutTests/platform/wk2/TestExpectations
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebFrame.mm