Index: Source/core/html/FileInputType.cpp |
diff --git a/Source/core/html/FileInputType.cpp b/Source/core/html/FileInputType.cpp |
index 50e4641836b8d4fa2cab08b3c7f0d678cc9fe34b..27a855454d242a8afb1840a81af4f98fbd0e197f 100644 |
--- a/Source/core/html/FileInputType.cpp |
+++ b/Source/core/html/FileInputType.cpp |
@@ -152,6 +152,7 @@ void FileInputType::handleDOMActivateEvent(Event* event) |
settings.selectedFiles = m_fileList->paths(); |
#if ENABLE(MEDIA_CAPTURE) |
settings.capture = input->capture(); |
+ settings.useMediaCapture = input->fastHasAttribute(captureAttr); |
#endif |
chrome->runOpenPanel(input->document()->frame(), newFileChooser(settings)); |
} |