Last active
August 29, 2015 14:17
-
-
Save marchbnr/aa3df61a9bb3264731cf to your computer and use it in GitHub Desktop.
Temporary phantomjs patch to reenable file upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp b/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp | |
index 7362f63..1a7b148 100644 | |
--- a/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp | |
+++ b/src/qt/qtwebkit/Source/WebCore/html/FileInputType.cpp | |
@@ -187,8 +187,9 @@ void FileInputType::handleDOMActivateEvent(Event* event) | |
if (element()->isDisabledFormControl()) | |
return; | |
- if (!ScriptController::processingUserGesture()) | |
- return; | |
+ // PATCH related to #12506 - commented out to allow programmatic form file uploads | |
+ //if (!ScriptController::processingUserGesture()) | |
+ // return; | |
if (Chrome* chrome = this->chrome()) { | |
FileChooserSettings settings; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment