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

Issue 11666018: Don't put HTML onto the clipboard if there is file content data. (Closed)

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

Description

Don't put HTML onto the clipboard if there is file content data. BUG=55879 TEST=drag an image into mail, it should work Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174655

Patch Set 1 #

Total comments: 1

Patch Set 2 : cleaner #

Total comments: 2

Patch Set 3 : nil check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M content/browser/web_contents/web_drag_source_mac.mm View 1 2 2 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Avi (use Gerrit)
What do you think? This affects drags with just a single image and those with ...
7 years, 12 months ago (2012-12-22 23:07:42 UTC) #1
dcheng
Is the latter actually a problem? The latter can only occur if a selection is ...
7 years, 12 months ago (2012-12-22 23:30:25 UTC) #2
Avi (use Gerrit)
If you have a selection that includes an inline image, you get the image includes ...
7 years, 12 months ago (2012-12-22 23:32:24 UTC) #3
Nico
https://codereview.chromium.org/11666018/diff/1/content/browser/web_contents/web_drag_source_mac.mm File content/browser/web_contents/web_drag_source_mac.mm (right): https://codereview.chromium.org/11666018/diff/1/content/browser/web_contents/web_drag_source_mac.mm#newcode435 content/browser/web_contents/web_drag_source_mac.mm:435: // data. How does the HTML content for just ...
7 years, 12 months ago (2012-12-23 00:08:26 UTC) #4
Avi (use Gerrit)
Actually, Daniel is right; if you have a span of text and an inline image, ...
7 years, 12 months ago (2012-12-23 00:17:07 UTC) #5
Nico
How _does_ the HTML content for just an image look?
7 years, 12 months ago (2012-12-23 00:33:54 UTC) #6
Avi (use Gerrit)
On 2012/12/23 00:33:54, Nico wrote: > How _does_ the HTML content for just an image ...
7 years, 12 months ago (2012-12-23 18:45:21 UTC) #7
Nico
On 2012/12/23 18:45:21, Avi wrote: > On 2012/12/23 00:33:54, Nico wrote: > > How _does_ ...
7 years, 12 months ago (2012-12-26 18:41:47 UTC) #8
Avi (use Gerrit)
What do you mean "non-standalone"? If I have a web page open, and I drag ...
7 years, 12 months ago (2012-12-26 19:18:06 UTC) #9
Nico
On Wed, Dec 26, 2012 at 11:18 AM, <avi@chromium.org> wrote: > What do you mean ...
7 years, 12 months ago (2012-12-26 19:23:59 UTC) #10
Avi (use Gerrit)
SVG images don't appear to set dropData_->file_contents, so the behavior is completely different. My question ...
7 years, 12 months ago (2012-12-26 19:33:17 UTC) #11
Avi (use Gerrit)
To answer that question: Both file_contents and file_description_filename are only set if the drop data ...
7 years, 12 months ago (2012-12-26 20:03:16 UTC) #12
Nico
Sweet, lgtm. Can you mention parts of that in the CL description? ("File content data ...
7 years, 12 months ago (2012-12-26 20:32:23 UTC) #13
Avi (use Gerrit)
On 2012/12/26 20:32:23, Nico wrote: > Sweet, lgtm. > > Can you mention parts of ...
7 years, 12 months ago (2012-12-26 20:35:27 UTC) #14
Nico
On Wed, Dec 26, 2012 at 12:35 PM, <avi@chromium.org> wrote: > On 2012/12/26 20:32:23, Nico ...
7 years, 12 months ago (2012-12-26 20:39:27 UTC) #15
Avi (use Gerrit)
PTAL.
7 years, 12 months ago (2012-12-26 21:12:26 UTC) #16
Nico
https://codereview.chromium.org/11666018/diff/9003/content/browser/web_contents/web_drag_source_mac.mm File content/browser/web_contents/web_drag_source_mac.mm (right): https://codereview.chromium.org/11666018/diff/9003/content/browser/web_contents/web_drag_source_mac.mm#newcode439 content/browser/web_contents/web_drag_source_mac.mm:439: UTTypeConformsTo(fileUTI_.get(), kUTTypeImage); fileUTI_ is only set if !mimeType.empty(). Since ...
7 years, 12 months ago (2012-12-26 21:52:55 UTC) #17
Avi (use Gerrit)
https://codereview.chromium.org/11666018/diff/9003/content/browser/web_contents/web_drag_source_mac.mm File content/browser/web_contents/web_drag_source_mac.mm (right): https://codereview.chromium.org/11666018/diff/9003/content/browser/web_contents/web_drag_source_mac.mm#newcode439 content/browser/web_contents/web_drag_source_mac.mm:439: UTTypeConformsTo(fileUTI_.get(), kUTTypeImage); True. Fixed. I don't want to trace ...
7 years, 12 months ago (2012-12-26 22:22:10 UTC) #18
Avi (use Gerrit)
ptal
7 years, 12 months ago (2012-12-26 22:22:42 UTC) #19
Nico
lgtm
7 years, 12 months ago (2012-12-26 22:35:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11666018/11001
7 years, 12 months ago (2012-12-26 22:43:57 UTC) #21
commit-bot: I haz the power
Change committed as 174655
7 years, 12 months ago (2012-12-27 03:05:45 UTC) #22
dcheng
For whatever reason, I didn't get the rest of the replies in this thread. Just ...
7 years, 12 months ago (2012-12-27 04:33:36 UTC) #23
Avi (use Gerrit)
On 2012/12/27 04:33:36, dcheng wrote: > > I was testing on http://goodmorningkitten.com/ grabbing > an ...
7 years, 12 months ago (2012-12-27 06:06:53 UTC) #24
dcheng
On 2012/12/27 06:06:53, Avi wrote: > On 2012/12/27 04:33:36, dcheng wrote: > > > I ...
7 years, 11 months ago (2012-12-27 21:42:57 UTC) #25
Avi (use Gerrit)
7 years, 11 months ago (2012-12-27 21:48:51 UTC) #26
Message was sent while issue was closed.
This is indeed a rather unfortunate hack.

Powered by Google App Engine
This is Rietveld 408576698