Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Yury Semikhatskyb498a3f2ba86
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER
index 9c2de76605..44ba2fc680 100644
--- a/browser_patches/webkit/BUILD_NUMBER
+++ b/browser_patches/webkit/BUILD_NUMBER
@@ -1 +1 @@
-1210
+1211
diff --git a/browser_patches/webkit/src/Tools/Playwright/mac/AppDelegate.m b/browser_patches/webkit/src/Tools/Playwright/mac/AppDelegate.m
index d46e0dbe96..f4edc978e8 100644
--- a/browser_patches/webkit/src/Tools/Playwright/mac/AppDelegate.m
+++ b/browser_patches/webkit/src/Tools/Playwright/mac/AppDelegate.m
@@ -372,6 +372,10 @@ const NSActivityOptions ActivityOptions =
{
LOG(@"decidePolicyForNavigationAction");
+ if (navigationAction._shouldPerformDownload) {
+ decisionHandler(_WKNavigationActionPolicyDownload);
+ return;
+ }
if (navigationAction._canHandleRequest) {
decisionHandler(WKNavigationActionPolicyAllow);
return;