https://bugs.webkit.org/show_bug.cgi?id=58208
Patch by Rakesh KN <rakesh.kn@motorola.com> on 2012-02-02
Reviewed by Ryosuke Niwa.
.:
* ManualTests/input-file-hidden-open-dialog-on-click.html: Added.
Adding manual test as the file dialog opens only in User gesture.
Source/WebCore:
We want to allow opening file dialog on hidden element when click() is called
on the element. The behaviour is similar to Firefox and IE.
Added manual test as the file dialog opens only on user gesture.
* html/FileInputType.cpp:
(WebCore::FileInputType::handleDOMActivateEvent):
Removed renderer check as input can be hidden.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106538
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-02 Rakesh KN <rakesh.kn@motorola.com>
+
+ hidden attribute on <input type=file /> suppresses the file selection dialog
+ https://bugs.webkit.org/show_bug.cgi?id=58208
+
+ Reviewed by Ryosuke Niwa.
+
+ * ManualTests/input-file-hidden-open-dialog-on-click.html: Added.
+ Adding manual test as the file dialog opens only in User gesture.
+
2012-02-01 Philippe Normand <pnormand@igalia.com>
[GStreamer] FFTFrame implementation
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset='utf-8' />
+ <title>Test that file dialog opens when click() is called </title>
+</head>
+<body>
+Test manually that when you click on "Click me" button, an file open dialog appears.
+<input id=fileinput type="file" hidden />
+<button onclick="document.getElementById('fileinput').click();">Click me</button>
+</body>
+</html>
+2012-02-02 Rakesh KN <rakesh.kn@motorola.com>
+
+ hidden attribute on <input type=file /> suppresses the file selection dialog
+ https://bugs.webkit.org/show_bug.cgi?id=58208
+
+ Reviewed by Ryosuke Niwa.
+
+ We want to allow opening file dialog on hidden element when click() is called
+ on the element. The behaviour is similar to Firefox and IE.
+
+ Added manual test as the file dialog opens only on user gesture.
+
+ * html/FileInputType.cpp:
+ (WebCore::FileInputType::handleDOMActivateEvent):
+ Removed renderer check as input can be hidden.
+
2012-02-01 Philippe Normand <pnormand@igalia.com>
[GStreamer] FFTFrame implementation
void FileInputType::handleDOMActivateEvent(Event* event)
{
- if (element()->disabled() || !element()->renderer())
+ if (element()->disabled())
return;
if (!ScriptController::processingUserGesture())