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

Issue 2543803002: Fix crash where a RenderWidgetHost can be deleted in the middle of a (Closed)

Created:
4 years ago by lfg
Modified:
4 years ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, pwnall, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash where a RenderWidgetHost can be deleted in the middle of a drag operation. BUG=667188 Committed: https://crrev.com/b51498b854667a13515edd78b2a1120cce172f56 Cr-Commit-Position: refs/heads/master@{#435758}

Patch Set 1 #

Total comments: 12

Patch Set 2 : addressing comments #

Total comments: 4

Patch Set 3 : addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M content/browser/web_contents/web_contents_view_aura.h View 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 4 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 38 (21 generated)
lfg
Hey Lukasz, can you take a look? This should fix the crashes on SystemDragEnded. I ...
4 years ago (2016-12-01 00:42:17 UTC) #6
dcheng
Is part of the problem here that the WebContentsViewAura is destroyed, so the member access ...
4 years ago (2016-12-01 00:58:34 UTC) #8
lfg
On 2016/12/01 00:58:34, dcheng wrote: > Is part of the problem here that the WebContentsViewAura ...
4 years ago (2016-12-01 01:08:28 UTC) #9
dcheng
Right, but this was previously already stored in a WeakPtr. So if it wasn't a ...
4 years ago (2016-12-01 01:10:42 UTC) #10
lfg
On 2016/12/01 01:10:42, dcheng wrote: > Right, but this was previously already stored in a ...
4 years ago (2016-12-01 16:56:29 UTC) #11
Łukasz Anforowicz
Thanks for looking into this crash. The CL looks mostly good to me, but I ...
4 years ago (2016-12-01 20:22:46 UTC) #13
Łukasz Anforowicz
https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (left): https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc#oldcode944 content/browser/web_contents/web_contents_view_aura.cc:944: web_contents_->SystemDragEnded(source_rwh); On 2016/12/01 20:22:46, Łukasz Anforowicz wrote: > Oh, ...
4 years ago (2016-12-01 20:23:45 UTC) #14
lfg
https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (left): https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc#oldcode899 content/browser/web_contents/web_contents_view_aura.cc:899: drag_start_rwh_ = source_rwh->GetWeakPtr(); On 2016/12/01 20:22:46, Łukasz Anforowicz wrote: ...
4 years ago (2016-12-01 20:56:33 UTC) #15
Łukasz Anforowicz
Thanks - LGTM. https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (left): https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc#oldcode944 content/browser/web_contents/web_contents_view_aura.cc:944: web_contents_->SystemDragEnded(source_rwh); On 2016/12/01 20:56:33, lfg wrote: ...
4 years ago (2016-12-01 21:14:28 UTC) #20
dcheng
https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (left): https://codereview.chromium.org/2543803002/diff/1/content/browser/web_contents/web_contents_view_aura.cc#oldcode944 content/browser/web_contents/web_contents_view_aura.cc:944: web_contents_->SystemDragEnded(source_rwh); On 2016/12/01 20:56:33, lfg wrote: > On 2016/12/01 ...
4 years ago (2016-12-01 21:16:31 UTC) #21
lfg
https://codereview.chromium.org/2543803002/diff/20001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/2543803002/diff/20001/content/browser/web_contents/web_contents_view_aura.cc#newcode904 content/browser/web_contents/web_contents_view_aura.cc:904: // For example, the RenderWidgetHost can be deleted if ...
4 years ago (2016-12-01 21:21:32 UTC) #23
dcheng
lgtm +pwnall as FYI
4 years ago (2016-12-01 21:22:42 UTC) #25
lfg
+avi for owners review.
4 years ago (2016-12-01 21:30:36 UTC) #27
Avi (use Gerrit)
On 2016/12/01 21:30:36, lfg wrote: > +avi for owners review. Owner approval; LGTM The title ...
4 years ago (2016-12-01 23:23:58 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2543803002/40001
4 years ago (2016-12-01 23:26:18 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-01 23:33:45 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-01 23:35:54 UTC) #37
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b51498b854667a13515edd78b2a1120cce172f56
Cr-Commit-Position: refs/heads/master@{#435758}

Powered by Google App Engine
This is Rietveld 408576698