Skip to content

Commit b498a3f

Browse files
authored
browser(webkit): make blob downloads work on Mac (#1971)
1 parent 242c366 commit b498a3f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1210
1+
1211

browser_patches/webkit/src/Tools/Playwright/mac/AppDelegate.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
372372
{
373373
LOG(@"decidePolicyForNavigationAction");
374374

375+
if (navigationAction._shouldPerformDownload) {
376+
decisionHandler(_WKNavigationActionPolicyDownload);
377+
return;
378+
}
375379
if (navigationAction._canHandleRequest) {
376380
decisionHandler(WKNavigationActionPolicyAllow);
377381
return;

0 commit comments

Comments
 (0)