| Index: Source/core/html/forms/FileInputType.cpp
|
| diff --git a/Source/core/html/forms/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp
|
| index 62943e4a83ff3865d4c41840dbddebce9b76777c..547fd8abda294fe3941c217628fce28b8d141e69 100644
|
| --- a/Source/core/html/forms/FileInputType.cpp
|
| +++ b/Source/core/html/forms/FileInputType.cpp
|
| @@ -158,7 +158,7 @@ void FileInputType::handleDOMActivateEvent(Event* event)
|
| settings.acceptFileExtensions = input.acceptFileExtensions();
|
| settings.selectedFiles = m_fileList->paths();
|
| #if ENABLE(MEDIA_CAPTURE)
|
| - settings.useMediaCapture = input.capture();
|
| + settings.useMediaCapture = input.isFileUpload() && input.fastHasAttribute(captureAttr);
|
| #endif
|
| chrome->runOpenPanel(input.document().frame(), newFileChooser(settings));
|
| }
|
|
|