Skip to content

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

fix: do not ship broken symlinks in webkit for mac (#5512)

Andrey Lushnikoveb3efb30893e
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER
index 45ad536dce..b8849722c5 100644
--- a/browser_patches/webkit/BUILD_NUMBER
+++ b/browser_patches/webkit/BUILD_NUMBER
@@ -1,2 +1,2 @@
-1437
-Changed: [email protected] Fri Feb 19 16:12:07 PST 2021
+1438
+Changed: [email protected] Fri Feb 19 21:08:07 PST 2021
diff --git a/browser_patches/webkit/archive.sh b/browser_patches/webkit/archive.sh
index 0d640216ba..adec84818e 100755
--- a/browser_patches/webkit/archive.sh
+++ b/browser_patches/webkit/archive.sh
@@ -131,6 +131,9 @@ createZipForMac() {
# copy protocol
node $SCRIPTS_DIR/concat_protocol.js > $tmpdir/protocol.json
+ # Remove all broken symlinks. @see https://github.com/microsoft/playwright/issues/5472
+ find "${tmpdir}" -type l ! -exec test -e {} \; -print | xargs rm
+
# zip resulting directory and cleanup TMP.
ditto -c -k $tmpdir $ZIP_PATH
rm -rf $tmpdir