Skip to content

Commit

Permalink
browser(webkit): make blob downloads work on Mac (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Apr 24, 2020
1 parent 242c366 commit b498a3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser_patches/webkit/BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1210
1211
4 changes: 4 additions & 0 deletions browser_patches/webkit/src/Tools/Playwright/mac/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
{
LOG(@"decidePolicyForNavigationAction");

if (navigationAction._shouldPerformDownload) {
decisionHandler(_WKNavigationActionPolicyDownload);
return;
}
if (navigationAction._canHandleRequest) {
decisionHandler(WKNavigationActionPolicyAllow);
return;
Expand Down

0 comments on commit b498a3f

Please sign in to comment.