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

Issue 14918012: Fix check for updating WebDragDestGtk when creating a view for a RVH. (Closed)

Created:
7 years, 7 months ago by dcheng
Modified:
7 years, 7 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Fix check for updating WebDragDestGtk when creating a view for a RVH. CreateViewForWidget can be called for navigations that don't end up swapping in the render view. An example of this would be dragging and dropping a file on Chrome that it can't display, such as an executable. This is problematic because it creates a WebDragDestGtk for a view that is never actually displayed, thus breaking all drag and drop operations until that tab is navigated. To fix this, it's not sufficient to just check that the RVH isn't swapped out. Instead, update WebDragDestGtk only if the RVH is already the RVH for the web contents; otherwise, allow RenderViewSwappedIn to update it. BUG=241564 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201398

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix first nav #

Total comments: 2

Patch Set 3 : Tweak comment #

Patch Set 4 : Remove DCHECK since it can be legitimately hit if a renderer crashes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M content/browser/web_contents/web_contents_view_gtk.cc View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dcheng
7 years, 7 months ago (2013-05-16 23:11:26 UTC) #1
Charlie Reis
One question below. https://codereview.chromium.org/14918012/diff/1/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (left): https://codereview.chromium.org/14918012/diff/1/content/browser/web_contents/web_contents_view_gtk.cc#oldcode226 content/browser/web_contents/web_contents_view_gtk.cc:226: // We don't want to change ...
7 years, 7 months ago (2013-05-17 18:23:31 UTC) #2
dcheng
https://codereview.chromium.org/14918012/diff/1/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (left): https://codereview.chromium.org/14918012/diff/1/content/browser/web_contents/web_contents_view_gtk.cc#oldcode226 content/browser/web_contents/web_contents_view_gtk.cc:226: // We don't want to change any state in ...
7 years, 7 months ago (2013-05-18 00:33:18 UTC) #3
Charlie Reis
LGTM https://codereview.chromium.org/14918012/diff/4001/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (right): https://codereview.chromium.org/14918012/diff/4001/content/browser/web_contents/web_contents_view_gtk.cc#newcode232 content/browser/web_contents/web_contents_view_gtk.cc:232: // because there are other navigations that create ...
7 years, 7 months ago (2013-05-18 01:37:59 UTC) #4
dcheng
https://codereview.chromium.org/14918012/diff/4001/content/browser/web_contents/web_contents_view_gtk.cc File content/browser/web_contents/web_contents_view_gtk.cc (right): https://codereview.chromium.org/14918012/diff/4001/content/browser/web_contents/web_contents_view_gtk.cc#newcode232 content/browser/web_contents/web_contents_view_gtk.cc:232: // because there are other navigations that create views ...
7 years, 7 months ago (2013-05-18 01:49:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/14918012/9001
7 years, 7 months ago (2013-05-18 01:50:07 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=129020
7 years, 7 months ago (2013-05-18 03:00:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/14918012/21001
7 years, 7 months ago (2013-05-21 21:41:09 UTC) #8
commit-bot: I haz the power
7 years, 7 months ago (2013-05-22 00:17:57 UTC) #9
Message was sent while issue was closed.
Change committed as 201398

Powered by Google App Engine
This is Rietveld 408576698