Protect WebViewImpl::handleGestureEvent from null client
commitaa3fb8a5a58a6d1ef0327c3fdb8c037ba55392b7
authorrob.buis@samsung.com <rob.buis@samsung.com>
Thu, 12 Mar 2015 21:30:46 +0000 (12 21:30 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Thu, 12 Mar 2015 21:30:46 +0000 (12 21:30 +0000)
treede96b9c834972ffa4ea09f74097bb3959ae114f9
parenta4ded3f94f6342f6fc0d8777ec64cb9f3018df9d
Protect WebViewImpl::handleGestureEvent from null client

It is possible to crash in WebViewImpl::handleGestureEvent
due to a null client, as shown in the unit test
ClientTapHandlingClosedWindow. So if the client
is null return early.

Review URL: https://codereview.chromium.org/981223003

git-svn-id: svn://svn.chromium.org/blink/trunk@191797 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/Source/web/WebViewImpl.cpp
third_party/WebKit/Source/web/tests/WebViewTest.cpp