commit | f81a5040023b4a9e865a28e097a04105fa447638 | [log] [tgz] |
---|---|---|
author | Kent Tamura <tkent@chromium.org> | Thu Nov 08 02:12:21 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 08 02:12:21 2018 |
tree | 7be97166ebb19dedcdda4e721fdf6eb483c3f559 | |
parent | 268a2cc7d528e44feee7eb8a14bd5cecf63bf7fd [diff] |
input[type=file]: Save and restore webkitRelativePath values Before this CL, we didn't save webkitRelativePath values on saving a tab session, and we computed them with the longest common ancestor directory of all files on restoring the tab session. After this CL, we save webkitRelativePath values, and restore them without finding the common ancestor directory. This CL is a preparation of fixing crbug.com/124187. * FileInputType::SaveFormControlState(): Save webktiRelativePath. * FormStateSignature() in form_controller.cc: Increment the version string due to the format change. * FileInputType::RestoreFormControlState(): Create |File| instances from FormControlState directly. We used to create a FileChooserFileInfoList from a FormControlState, and FileInputType::CreateFileList() converted it to |File| instances. We bypass FileChooserFileInoList because it can't represent webkitRelativePath. * FileInputType::FilesFromFormControlState(), HTMLInputElement:: FilesFromFileInputFormControlState(), and SavedFormState:: GetReferencedFilePaths(): Pass Vector<String> instead of FileChooserFileInfoList. These functions just need Vector<String>. Bug: 124187 Change-Id: I225463694d164c1f6ed1cb61da8a5bc42e2542c6 Reviewed-on: https://chromium-review.googlesource.com/c/1322671 Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#606286}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .