Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(r202953): Clicking on input[type=file] doesn't open a file…
… picker https://bugs.webkit.org/show_bug.cgi?id=159686 Source/WebCore: Reviewed by Chris Dumez. The bug was caused by DOMActivate event not propagating out of the user-agent shadow tree of a file input, and FileInputType not receiving the event to open the file picker. Made DOMActivate "composed" event which cross shadow boundaries to fix the bug. The feedback was given back to W3C on WICG/webcomponents#513 (comment) Test: fast/forms/file/open-file-panel.html * dom/Event.cpp: (WebCore::Event::composed): Tools: Reviewed by Chris Dumez. Added a code to print "OPEN FILE PANEL" in the text when runOpenPanel is called in the UI delegate. * WebKitTestRunner/TestController.cpp: (WTR::runOpenPanel): (WTR::TestController::createOtherPage): (WTR::TestController::createWebViewWithOptions): LayoutTests: <rdar://problem/27263589> Reviewed by Chris Dumez. Added a regression test for opening a file picker on a type=file input element. The test currently only works on WebKit2 since the support for logging "OPEN FILE PANEL" was only added to WebKitTestRunner. Also added WebKit2 specific expected results for some tests that tries to open file panel. * fast/forms/file/open-file-panel-expected.txt: Added. * fast/forms/file/open-file-panel.html: Added. * platform/ios-simulator-wk1/TestExpectations: * platform/mac-wk1/TestExpectations: * platform/win/TestExpectations: * platform/wk2/accessibility: Added. * platform/wk2/accessibility/axpress-on-aria-button-expected.txt: Copied from LayoutTests/accessibility/axpress-on-aria-button-expected.txt. * platform/wk2/accessibility/file-upload-button-with-axpress-expected.txt: Copied from LayoutTests/accessibility/file-upload-button-with-axpress-expected.txt. * platform/wk2/fast: Added. * platform/wk2/fast/events: Added. * platform/wk2/fast/events/domactivate-sets-underlying-click-event-as-handled-expected.txt: Copied from LayoutTests/fast/events/domactivate-sets-underlying-click-event-as-handled-expected.txt. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@203187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information