Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index a98598dea11a6c1a491d2f5e355ca2c92c095b9b..f09839f305bdf0806e4878a368b7a6080e947420 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -33,6 +33,7 @@ |
#include "bindings/core/v8/ExceptionState.h" |
#include "bindings/core/v8/ScriptEventListener.h" |
+#include "core/InputTypeNames.h" |
#include "core/dom/Attr.h" |
#include "core/dom/CharacterData.h" |
#include "core/dom/ContainerNode.h" |
@@ -1451,7 +1452,7 @@ void InspectorDOMAgent::setFileInputFiles(ErrorString* errorString, int nodeId, |
Node* node = assertNode(errorString, nodeId); |
if (!node) |
return; |
- if (!isHTMLInputElement(*node) || !toHTMLInputElement(*node).isFileUpload()) { |
+ if (!isHTMLInputElement(*node) || toHTMLInputElement(*node).type() != InputTypeNames::file) { |
*errorString = "Node is not a file input element"; |
return; |
} |