Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implement cancel event on <input type=file>
https://bugs.webkit.org/show_bug.cgi?id=227799 rdar://80340803 Reviewed by Aditya Keerthi. This PR implements the "Add a "cancel" event for when file upload selection is unchanged" behavior. The `cancel` event is now fired when: - The file picker is dismissed - The selected files are the same as those currently selected Spec: https://html.spec.whatwg.org/multipage/input.html#show-the-picker,-if-applicable * Source/WebCore/html/FileInputType.cpp: (WebCore::FileInputType::setFiles): (WebCore::FileInputType::fileChoosingCancelled): * Source/WebCore/html/FileInputType.h: * Source/WebCore/platform/FileChooser.cpp: (WebCore::FileChooser::cancelFileChoosing): * Source/WebCore/platform/FileChooser.h: * Source/WebKit/WebProcess/WebPage/WebOpenPanelResultListener.cpp: (WebKit::WebOpenPanelResultListener::didCancelFileChoosing): * Source/WebKit/WebProcess/WebPage/WebOpenPanelResultListener.h: * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::didCancelForOpenPanel): * Tools/TestWebKitAPI/Tests/WebKitCocoa/RunOpenPanel.mm: (-[FileInputTypeCancelEventUIDelegate webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:]): (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/255394@main
- Loading branch information
Showing
10 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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