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

Issue 13758002: Fix dropping images into content editable divs. (Closed)

Created:
7 years, 8 months ago by Avi (use Gerrit)
Modified:
7 years, 8 months ago
Reviewers:
Nico, andruid
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, sail+watch_chromium.org, dcheng
Visibility:
Public.

Description

Fix dropping images into content editable divs. Mail.app and TextEdit accept drags that have both HTML and image flavors on them, but don't process them correctly. Therefore, if there is an image flavor, don't put the HTML data on as HTML, but rather put it on as a special flavor. External apps won't see HTML but Chrome will know enough to read it as HTML. BUG=55879, 225710 TEST=as in bug 225710, doesn't regress bug 55879 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192853

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -22 lines) Patch
M content/browser/web_contents/web_drag_dest_mac.mm View 1 chunk +5 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_drag_source_mac.mm View 3 chunks +26 lines, -19 lines 0 comments Download
M ui/base/dragdrop/cocoa_dnd_util.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/base/dragdrop/cocoa_dnd_util.mm View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Avi (use Gerrit)
Nico: Do you remember https://chromiumcodereview.appspot.com/11666018 ? Yes? That broke things hard. Time to hack it ...
7 years, 8 months ago (2013-04-07 00:34:03 UTC) #1
Avi (use Gerrit)
I'm truly sorry for this CL.
7 years, 8 months ago (2013-04-07 00:34:16 UTC) #2
Nico
lgtm Please expand the CL description to make it describe what this CL does, and ...
7 years, 8 months ago (2013-04-08 16:37:00 UTC) #3
Avi (use Gerrit)
On 2013/04/08 16:37:00, Nico wrote: > Please expand the CL description to make it describe ...
7 years, 8 months ago (2013-04-08 16:50:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/13758002/1
7 years, 8 months ago (2013-04-08 16:51:50 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 17:00:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/13758002/1
7 years, 8 months ago (2013-04-08 17:38:32 UTC) #7
commit-bot: I haz the power
Change committed as 192853
7 years, 8 months ago (2013-04-08 18:53:16 UTC) #8
andruid
7 years, 8 months ago (2013-04-08 19:25:28 UTC) #9
Message was sent while issue was closed.
It's up to the application to use all the data flavors.

Do not hide the HTML if there is an image. That is awful!!!

It also violates the HTML 5 spec.

Thanks!

Andruid Kerne
Interface Ecology Lab @ Texas A&m

Powered by Google App Engine
This is Rietveld 408576698