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

Issue 380553002: Add a unit test that filenames aren't unintentionally converted to URLs. (Closed)

Created:
6 years, 5 months ago by dcheng
Modified:
6 years, 5 months ago
CC:
Andre, chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Add a unit test that filenames aren't unintentionally converted to URLs. Also fixes two issues in OSExchangeDataProviderWin: - It used a disjoint set of clipboard formats when handling GetUrl(..., true /* filename conversion */) vs GetFilenames(...), so the actual returned results would vary depending on which one was called. - It incorrectly used ::DragFinish() instead of ::ReleaseStgMedium(). ::DragFinish() is only meant to be used in conjunction with WM_DROPFILES. BUG=346135 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283226

Patch Set 1 #

Patch Set 2 : Update more for CrOS #

Patch Set 3 : Fix Windows #

Total comments: 5

Patch Set 4 : Dubious casts #

Patch Set 5 : De-uglify #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -143 lines) Patch
M base/win/scoped_hglobal.h View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M printing/backend/print_backend_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/clipboard_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/base/clipboard/clipboard_util_win.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M ui/base/clipboard/clipboard_util_win.cc View 1 2 3 4 14 chunks +100 lines, -110 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_win.cc View 1 2 3 4 6 chunks +8 lines, -11 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_unittest.cc View 1 2 3 4 5 3 chunks +49 lines, -3 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_win_unittest.cc View 1 2 3 4 10 chunks +10 lines, -10 lines 0 comments Download
M ui/ui_unittests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
dcheng
This is a test I should have added when I fixed the original security bug.
6 years, 5 months ago (2014-07-09 00:55:32 UTC) #1
dcheng
Fix Windows
6 years, 5 months ago (2014-07-09 21:28:31 UTC) #2
dcheng
+sky, mind taking a look? I'm going to be testing locally to make sure it ...
6 years, 5 months ago (2014-07-09 21:31:56 UTC) #3
dcheng
On 2014/07/09 at 21:31:56, dcheng (OOO wrote: > +sky, mind taking a look? > > ...
6 years, 5 months ago (2014-07-10 20:47:06 UTC) #4
sky
https://codereview.chromium.org/380553002/diff/40001/ui/base/clipboard/clipboard_util_win.cc File ui/base/clipboard/clipboard_util_win.cc (right): https://codereview.chromium.org/380553002/diff/40001/ui/base/clipboard/clipboard_util_win.cc#newcode143 ui/base/clipboard/clipboard_util_win.cc:143: return url->is_valid(); Under what circumstance would url not be ...
6 years, 5 months ago (2014-07-10 22:44:34 UTC) #5
dcheng
(I also fixed an incorrect usage of DragFinish instead of ReleaseStgMedium) https://codereview.chromium.org/380553002/diff/40001/ui/base/clipboard/clipboard_util_win.cc File ui/base/clipboard/clipboard_util_win.cc (right): ...
6 years, 5 months ago (2014-07-11 22:32:58 UTC) #6
dcheng
https://codereview.chromium.org/380553002/diff/40001/ui/base/clipboard/clipboard_util_win.cc File ui/base/clipboard/clipboard_util_win.cc (right): https://codereview.chromium.org/380553002/diff/40001/ui/base/clipboard/clipboard_util_win.cc#newcode190 ui/base/clipboard/clipboard_util_win.cc:190: GlobalUnlock(medium.hGlobal); On 2014/07/11 22:32:58, dcheng (OOO) wrote: > On ...
6 years, 5 months ago (2014-07-11 22:45:30 UTC) #7
sky
LGTM
6 years, 5 months ago (2014-07-11 22:58:12 UTC) #8
dcheng
+cpu for base/win OWNERS review +thestig for printing OWNERS review +garykac for remoting OWNERS review ...
6 years, 5 months ago (2014-07-11 23:01:50 UTC) #9
garykac
remoting lgtm
6 years, 5 months ago (2014-07-11 23:28:21 UTC) #10
Lei Zhang
printing lgtm
6 years, 5 months ago (2014-07-11 23:33:05 UTC) #11
cpu_(ooo_6.6-7.5)
base/win lgtm
6 years, 5 months ago (2014-07-15 00:25:01 UTC) #12
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 5 months ago (2014-07-15 00:27:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/380553002/100001
6 years, 5 months ago (2014-07-15 00:28:52 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-15 16:49:35 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-15 19:04:41 UTC) #16
Message was sent while issue was closed.
Change committed as 283226

Powered by Google App Engine
This is Rietveld 408576698