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

Issue 12252016: Prevented connecting drag drop events to a SwappedOut RenderViewHost in WebContentsViewGtk (Closed)

Created:
7 years, 10 months ago by mthiesse
Modified:
4 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Prevented connecting events to a SwappedOut RenderViewHost in WebContentsViewGtk Added a check to see if the RenderWidgetHost passed to CreateViewForWidget is SwappedOut before connecting events to it, or creating a DragDest from it. Needed for: https://chromiumcodereview.appspot.com/12086095/ When a postMessage is sent to a guest process, like a BrowserPlugin guest, WebContentsViewGtk::CreateViewForWidget is called with a swapped out RenderWidgetHost. This RenderWidgetHost is then used as the WebDragDest for the window, preventing the window from receiving Drag and Drop events. BUG=161112, 177667 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188559

Patch Set 1 #

Total comments: 2

Patch Set 2 : A step back... #

Total comments: 1

Patch Set 3 : Use RenderViewSwappedIn to ensure we have a drag dest #

Total comments: 8

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Fixed issues preventing the setting of the drag_dest_ on RenderViewSwappedIn #

Total comments: 14

Patch Set 6 : Addressed Comments #

Patch Set 7 : sync #

Patch Set 8 : Oops. Fix compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -20 lines) Patch
M content/browser/web_contents/web_contents_view_gtk.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_gtk.cc View 1 2 3 4 5 3 chunks +26 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_drag_dest_gtk.h View 1 2 3 4 5 2 chunks +7 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_drag_dest_gtk.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Fady Samuel
https://codereview.chromium.org/12252016/diff/1/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (right): https://codereview.chromium.org/12252016/diff/1/content/browser/web_contents/web_contents_view_gtk.cc#newcode136 content/browser/web_contents/web_contents_view_gtk.cc:136: if (web_contents_->GetRenderManagerForTesting()->IsSwappedOut(rvh)) { This looks wrong...GetRenderManagerForTesting is supposed to ...
7 years, 10 months ago (2013-02-13 21:15:22 UTC) #1
mthiesse
On 2013/02/13 21:15:22, Fady Samuel wrote: > https://codereview.chromium.org/12252016/diff/1/content/browser/web_contents/web_contents_view_gtk.cc > File content/browser/web_contents/web_contents_view_gtk.cc (right): > > https://codereview.chromium.org/12252016/diff/1/content/browser/web_contents/web_contents_view_gtk.cc#newcode136 ...
7 years, 10 months ago (2013-02-14 15:57:24 UTC) #2
Evan Stade
I'm not the best reviewer, try jam@.
7 years, 10 months ago (2013-02-19 23:01:09 UTC) #3
jam
I'm not familiar with gtk or swapped out stuff. creis is the expert, redirecting to ...
7 years, 10 months ago (2013-02-20 00:57:28 UTC) #4
Charlie Reis
https://codereview.chromium.org/12252016/diff/1/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (right): https://codereview.chromium.org/12252016/diff/1/content/browser/web_contents/web_contents_view_gtk.cc#newcode136 content/browser/web_contents/web_contents_view_gtk.cc:136: if (web_contents_->GetRenderManagerForTesting()->IsSwappedOut(rvh)) { On 2013/02/13 21:15:22, Fady Samuel wrote: ...
7 years, 10 months ago (2013-02-20 06:42:45 UTC) #5
mthiesse
Alright, moved the checks for swapped out renderviews back into RenderViewHostManager and WebContentsImpl.
7 years, 10 months ago (2013-02-20 19:20:45 UTC) #6
Charlie Reis
This won't work. (I'd also recommend running try jobs on these drafts, since I'm pretty ...
7 years, 10 months ago (2013-02-21 02:22:16 UTC) #7
Fady Samuel
On 2013/02/21 02:22:16, creis wrote: > This won't work. (I'd also recommend running try jobs ...
7 years, 10 months ago (2013-02-21 02:31:36 UTC) #8
Charlie Reis
On 2013/02/21 02:31:36, Fady Samuel wrote: > On 2013/02/21 02:22:16, creis wrote: > > This ...
7 years, 10 months ago (2013-02-21 02:36:33 UTC) #9
mthiesse
PTAL creis. Hopefully this addresses your concerns. I believe, according to WebContentsImpl::RenderViewCreated, if a RVH ...
7 years, 9 months ago (2013-02-26 22:26:45 UTC) #10
Charlie Reis
I think you're on the right track, but it seems like we can make it ...
7 years, 9 months ago (2013-02-27 01:42:35 UTC) #11
mthiesse
https://codereview.chromium.org/12252016/diff/16001/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (right): https://codereview.chromium.org/12252016/diff/16001/content/browser/web_contents/web_contents_view_gtk.cc#newcode231 content/browser/web_contents/web_contents_view_gtk.cc:231: // receive any events. On 2013/02/27 01:42:35, creis wrote: ...
7 years, 9 months ago (2013-02-27 14:57:13 UTC) #12
Charlie Reis
https://codereview.chromium.org/12252016/diff/16001/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (right): https://codereview.chromium.org/12252016/diff/16001/content/browser/web_contents/web_contents_view_gtk.cc#newcode275 content/browser/web_contents/web_contents_view_gtk.cc:275: RenderViewHost* old_host) { On 2013/02/27 14:57:13, mthiesse wrote: > ...
7 years, 9 months ago (2013-02-27 20:01:44 UTC) #13
mthiesse
Phew, found the issues (2 of them). The first issue is that scoped pointer reset ...
7 years, 9 months ago (2013-03-13 18:06:20 UTC) #14
Charlie Reis
Nice debugging! This seems like the right approach to me. Are there ways to test ...
7 years, 9 months ago (2013-03-14 22:08:38 UTC) #15
mthiesse
Re: adding tests So as you probably know I'm in the process of getting drag ...
7 years, 9 months ago (2013-03-15 15:26:49 UTC) #16
Charlie Reis
On 2013/03/15 15:26:49, mthiesse wrote: > Re: adding tests > So as you probably know ...
7 years, 9 months ago (2013-03-15 17:54:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mthiesse@chromium.org/12252016/43001
7 years, 9 months ago (2013-03-15 19:43:09 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-15 20:12:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mthiesse@chromium.org/12252016/57001
7 years, 9 months ago (2013-03-16 00:54:19 UTC) #20
commit-bot: I haz the power
7 years, 9 months ago (2013-03-16 09:25:58 UTC) #21
Message was sent while issue was closed.
Change committed as 188559

Powered by Google App Engine
This is Rietveld 408576698