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
Downloading DMG using WKDownload errors with "You do not have permiss…
…ion" https://bugs.webkit.org/show_bug.cgi?id=234249 Reviewed by Chris Dumez. Applications downloaded from the sandboxed network process can't be opened on macOS because they have QTN_FLAG_HARD set. The network process can't remove this and shouldn't be given such permission. However, WKDownload may be used by unsandboxed applications such as TestWebKitAPI that do have permission to remove QTN_FLAG_HARD. If this is the case, we should try to make the application able to be opened when finishing the download. I verified you still get the warning "Application Name" is an app downloaded from the Internet. Are you sure you want to open it? but you no longer get the warning that can't be bypassed. * Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj: * Source/WebCore/PAL/pal/spi/mac/QuarantineSPI.h: Renamed from Source/WebKit/Platform/spi/mac/QuarantineSPI.h. (QuarantineFileDeleter::operator ()): Added helper for std::unique_ptr use with qtn_file_t * Source/WebKit/NetworkProcess/Downloads/Download.cpp: (WebKit::Download::Download): * Source/WebKit/NetworkProcess/Downloads/Download.h: (WebKit::Download::sessionID const): (WebKit::Download::suggestedName const): Deleted. * Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm: * Source/WebKit/UIProcess/Cocoa/WKShareSheet.mm: * Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm: * Source/WebKit/UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::updateQuarantinePropertiesIfPossible): (WebKit::DownloadProxy::didFinish): * Source/WebKit/UIProcess/Downloads/DownloadProxy.h: * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Tools/TestWebKitAPI/Tests/WebKitCocoa/Download.mm: (tempFileThatDoesNotExist): Introduce a non-ASCII character to make sure file system representation code works as expected Canonical link: https://commits.webkit.org/251736@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
43e883c
commit 12bc4cb
Showing
11 changed files
with
80 additions
and
13 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
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