Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Issue 981223003: Protect WebViewImpl::handleGestureEvent from null client (Closed)

Created:
5 years, 9 months ago by rwlbuis
Modified:
5 years, 9 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

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. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191797

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update test name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M Source/web/WebViewImpl.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
rwlbuis
PTAL
5 years, 9 months ago (2015-03-06 21:50:50 UTC) #2
Rick Byers
LGTM. I can imagine there are shutdown races here, thanks! +aelias for OWNERS
5 years, 9 months ago (2015-03-07 15:26:28 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/981223003/diff/1/Source/web/tests/WebViewTest.cpp File Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/981223003/diff/1/Source/web/tests/WebViewTest.cpp#newcode1286 Source/web/tests/WebViewTest.cpp:1286: webView->close(); Given that the close() is after the handleInputEvent() ...
5 years, 9 months ago (2015-03-08 20:37:13 UTC) #5
rwlbuis
On 2015/03/08 20:37:13, aelias wrote: > https://codereview.chromium.org/981223003/diff/1/Source/web/tests/WebViewTest.cpp > File Source/web/tests/WebViewTest.cpp (right): > > https://codereview.chromium.org/981223003/diff/1/Source/web/tests/WebViewTest.cpp#newcode1286 > ...
5 years, 9 months ago (2015-03-09 13:58:29 UTC) #6
aelias_OOO_until_Jul13
On 2015/03/09 at 13:58:29, rob.buis wrote: > On 2015/03/08 20:37:13, aelias wrote: > > https://codereview.chromium.org/981223003/diff/1/Source/web/tests/WebViewTest.cpp ...
5 years, 9 months ago (2015-03-10 17:24:39 UTC) #7
rwlbuis
On 2015/03/10 17:24:39, aelias wrote: > On 2015/03/09 at 13:58:29, rob.buis wrote: > > On ...
5 years, 9 months ago (2015-03-11 21:15:57 UTC) #8
aelias_OOO_until_Jul13
OK, it looks like there's a comment saying m_client is expected to be sometimes NULL ...
5 years, 9 months ago (2015-03-12 19:32:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981223003/20001
5 years, 9 months ago (2015-03-12 20:04:27 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 21:30:49 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191797

Powered by Google App Engine
This is Rietveld 408576698