2011-04-05 Sailesh Agrawal <sail@chromium.org>

        Reviewed by Darin Fisher.

        Don't clear existing files if the user cancels the file chooser dialog.
        https://bugs.webkit.org/show_bug.cgi?id=55200

        * src/WebFileChooserCompletionImpl.cpp:
        (WebKit::WebFileChooserCompletionImpl::didChooseFile):

git-svn-id: svn://svn.chromium.org/blink/trunk@82914 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 58ff7c7a
2011-04-05 Sailesh Agrawal <sail@chromium.org>
Reviewed by Darin Fisher.
Don't clear existing files if the user cancels the file chooser dialog.
https://bugs.webkit.org/show_bug.cgi?id=55200
* src/WebFileChooserCompletionImpl.cpp:
(WebKit::WebFileChooserCompletionImpl::didChooseFile):
2011-04-05 John Mellor <johnme@chromium.org>
Reviewed by Darin Fisher.
......
......@@ -46,8 +46,7 @@ void WebFileChooserCompletionImpl::didChooseFile(const WebVector<WebString>& fil
{
if (fileNames.size() == 1)
m_fileChooser->chooseFile(fileNames[0]);
else {
// This clause handles a case of file_names.size()==0 too.
else if (fileNames.size() > 0) {
Vector<WTF::String> paths;
for (size_t i = 0; i < fileNames.size(); ++i)
paths.append(fileNames[i]);
......
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