browser(webkit): make blob downloads work on Mac (#1971)

This commit is contained in:
Yury Semikhatsky 2020-04-24 16:53:25 -07:00 committed by GitHub
parent 242c3667ce
commit b498a3f2ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
1210
1211

View File

@ -372,6 +372,10 @@ const NSActivityOptions ActivityOptions =
{
LOG(@"decidePolicyForNavigationAction");
if (navigationAction._shouldPerformDownload) {
decisionHandler(_WKNavigationActionPolicyDownload);
return;
}
if (navigationAction._canHandleRequest) {
decisionHandler(WKNavigationActionPolicyAllow);
return;