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

Issue 2446743002: Remove WebFileChooserParams::initialValue (Closed)

Created:
4 years, 1 month ago by jsbell
Modified:
4 years, 1 month ago
Reviewers:
kinuko, dcheng
CC:
chromium-reviews, blink-reviews, kinuko+watch, asanka, juncai
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WebFileChooserParams::initialValue On the Chromium side, FileSelectHelper::RunFileChooser asserts that default filenames should only be specified for "Save" choosers. Blink doesn't use those ("download" is a browser thing) so just remove the field which would be ignored anyway. (Remembering the last used directory is done through other means in the browser.) BUG=632454, 655298 Committed: https://crrev.com/14785d90f691b2b20d07612a62ba35a630bbb9ac Cr-Commit-Position: refs/heads/master@{#427814}

Patch Set 1 #

Patch Set 2 : Add browser test #

Total comments: 2

Patch Set 3 : Rename initialValue, update docs/DCHECKs #

Patch Set 4 : Remove defaultName from blink API #

Total comments: 6

Patch Set 5 : Split test into own file; const sprinkles #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -38 lines) Patch
M content/browser/fileapi/file_system_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A content/browser/fileapi/fileapi_browsertest.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host.cc View 1 2 3 3 chunks +13 lines, -15 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 2 chunks +8 lines, -9 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/test/content_browser_test_utils_internal.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M content/test/content_browser_test_utils_internal.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebFileChooserParams.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (23 generated)
jsbell
FYI, I'll add a browser test that at least verifies that the value is not ...
4 years, 1 month ago (2016-10-24 23:34:37 UTC) #3
jsbell
kinuko@ - can you specifically review the content/ changes and the overall approach? (i.e. does ...
4 years, 1 month ago (2016-10-25 00:18:05 UTC) #8
dcheng
https://codereview.chromium.org/2446743002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (left): https://codereview.chromium.org/2446743002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#oldcode715 third_party/WebKit/Source/web/ChromeClientImpl.cpp:715: params.initialValue = params.selectedFiles[0]; Is it possible to remove initialValue ...
4 years, 1 month ago (2016-10-25 00:27:35 UTC) #9
jsbell
https://codereview.chromium.org/2446743002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (left): https://codereview.chromium.org/2446743002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#oldcode715 third_party/WebKit/Source/web/ChromeClientImpl.cpp:715: params.initialValue = params.selectedFiles[0]; On 2016/10/25 00:27:35, dcheng wrote: > ...
4 years, 1 month ago (2016-10-25 16:24:55 UTC) #13
jsbell
4 years, 1 month ago (2016-10-25 16:24:56 UTC) #14
dcheng
It feels a bit odd to have a value in the Blink public API that ...
4 years, 1 month ago (2016-10-25 17:30:00 UTC) #16
jsbell
On 2016/10/25 17:30:00, dcheng wrote: > It feels a bit odd to have a value ...
4 years, 1 month ago (2016-10-25 19:59:56 UTC) #23
dcheng
Blink LGTM
4 years, 1 month ago (2016-10-25 20:17:39 UTC) #24
kinuko
lgtm % nits https://codereview.chromium.org/2446743002/diff/60001/content/browser/fileapi/file_system_browsertest.cc File content/browser/fileapi/file_system_browsertest.cc (right): https://codereview.chromium.org/2446743002/diff/60001/content/browser/fileapi/file_system_browsertest.cc#newcode98 content/browser/fileapi/file_system_browsertest.cc:98: IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, FileInputChooserParams) { This is not ...
4 years, 1 month ago (2016-10-26 02:35:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446743002/80001
4 years, 1 month ago (2016-10-26 17:21:32 UTC) #29
jsbell
Thanks! https://codereview.chromium.org/2446743002/diff/60001/content/browser/fileapi/file_system_browsertest.cc File content/browser/fileapi/file_system_browsertest.cc (right): https://codereview.chromium.org/2446743002/diff/60001/content/browser/fileapi/file_system_browsertest.cc#newcode98 content/browser/fileapi/file_system_browsertest.cc:98: IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, FileInputChooserParams) { On 2016/10/26 02:35:01, kinuko wrote: ...
4 years, 1 month ago (2016-10-26 17:21:44 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/94252)
4 years, 1 month ago (2016-10-26 17:31:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446743002/80001
4 years, 1 month ago (2016-10-26 19:41:26 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-26 21:37:53 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 21:42:18 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/14785d90f691b2b20d07612a62ba35a630bbb9ac
Cr-Commit-Position: refs/heads/master@{#427814}

Powered by Google App Engine
This is Rietveld 408576698