Commit 058561a1 authored by rob@robwu.nl's avatar rob@robwu.nl

Support <input webkitdirectory> in KDE file chooser

Currently NOTREACHED() is reached when the KDE file chooser is active.

TEST=Manually:
1. Start Chrome in a KDE environment
2. Visit data:text/html,<input type=file webkitdirectory>
3. Click on the file chooser and select any directory.
4. In KDE environments, NOTREACHED() is reached.

5. Repeat the same steps with the env var NO_CHROME_KDE_FILE_DIALOG=1,
   and observe that NOTREACHED() is not reached any more, because the
   gtk fallback is used (which works correctly since r240564).

Review URL: https://codereview.chromium.org/445883002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287863 0039d316-1c4b-4281-b951-d872f2087c98
parent 07772742
...@@ -354,7 +354,7 @@ void SelectFileDialogImplKDE::FileSelected(const base::FilePath& path, ...@@ -354,7 +354,7 @@ void SelectFileDialogImplKDE::FileSelected(const base::FilePath& path,
*last_saved_path_ = path.DirName(); *last_saved_path_ = path.DirName();
else if (type_ == SELECT_OPEN_FILE) else if (type_ == SELECT_OPEN_FILE)
*last_opened_path_ = path.DirName(); *last_opened_path_ = path.DirName();
else if (type_ == SELECT_FOLDER) else if (type_ == SELECT_FOLDER || type_ == SELECT_UPLOAD_FOLDER)
*last_opened_path_ = path; *last_opened_path_ = path;
else else
NOTREACHED(); NOTREACHED();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment