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): correctly report outerWidth/Height on Mac (#3131)
Yury Semikhatsky74941340beea
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBERindex 115628598e..b25ae4a7f8 100644--- a/browser_patches/webkit/BUILD_NUMBER+++ b/browser_patches/webkit/BUILD_NUMBER@@ -1,2 +1,2 @@-1315-Changed: [email protected] Thu Jul 23 09:56:07 PDT 2020+1316+Changed: [email protected] Thu Jul 23 16:12:30 PDT 2020diff --git a/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m b/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.mindex 53881d97fe..e9a16afaa6 100644--- a/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m+++ b/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m@@ -368,6 +368,11 @@ const NSActivityOptions ActivityOptions =}}+- (void)_webView:(WKWebView *)webView getWindowFrameWithCompletionHandler:(void (^)(CGRect))completionHandler+{+ completionHandler([webView.window frame]);+}+- (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler{WebViewDialog* dialog = [[WebViewDialog alloc] autorelease];diff --git a/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.m b/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.mindex 6c1177d85f..9ea7388a6e 100644--- a/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.m+++ b/browser_patches/webkit/embedder/Playwright/mac/BrowserWindowController.m@@ -421,6 +421,11 @@ static BOOL areEssentiallyEqual(double a, double b)[self.window close];}+- (void)_webView:(WKWebView *)webView getWindowFrameWithCompletionHandler:(void (^)(CGRect))completionHandler+{+ completionHandler([self.window frame]);+}+#define DefaultMinimumZoomFactor (.5)#define DefaultMaximumZoomFactor (3.0)#define DefaultZoomFactorRatio (1.2)