Skip to content

Commit

Permalink
browser(webkit): respect download attribute (#5474)
Browse files Browse the repository at this point in the history
References #5396
  • Loading branch information
aslushnikov committed Feb 16, 2021
1 parent d0352cf commit 4f1d84d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser_patches/webkit/BUILD_NUMBER
@@ -1,2 +1,2 @@
1434
Changed: yurys@chromium.org Mon 08 Feb 2021 09:49:33 AM PST
1435
Changed: lushnikov@chromium.org Tue Feb 16 10:30:00 MST 2021
Expand Up @@ -670,6 +670,11 @@ - (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 4f1d84d

Please sign in to comment.