Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
browser(webkit): respect download attribute (#5474)
Andrey Lushnikov4f1d84d6b9c5
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBERindex 5b8b86af39..7c03f838aa 100644--- a/browser_patches/webkit/BUILD_NUMBER+++ b/browser_patches/webkit/BUILD_NUMBER@@ -1,2 +1,2 @@-1434-Changed: [email protected] Mon 08 Feb 2021 09:49:33 AM PST+1435+Changed: [email protected] Tue Feb 16 10:30:00 MST 2021diff --git a/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.m b/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.mindex ce705c110d..f5ef03729e 100644--- a/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.m+++ b/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.m@@ -670,6 +670,11 @@ static NSSet *dataTypes(){LOG(@"decidePolicyForNavigationAction");+ if (navigationAction.shouldPerformDownload) {+ decisionHandler(WKNavigationActionPolicyDownload);+ return;+ }+if (navigationAction._canHandleRequest) {decisionHandler(WKNavigationActionPolicyAllow);return;