Skip to content

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

devops: fix firefox-beta build on Ubuntu 20.04 & 22.04 (#15175)

Andrey Lushnikov571b642670cc
diff --git a/browser_patches/firefox-beta/build.sh b/browser_patches/firefox-beta/build.sh
index 3a09b73ad9..8c90d0b5ca 100755
--- a/browser_patches/firefox-beta/build.sh
+++ b/browser_patches/firefox-beta/build.sh
@@ -104,6 +104,15 @@ if [[ $1 == "--full" || $2 == "--full" || $1 == "--bootstrap" ]]; then
fi
fi
+# Remove the cbindgen from mozbuild to rely on the one we install manually.
+# See https://github.com/microsoft/playwright/issues/15174
+if is_win; then
+ rm -rf "${USERPROFILE}\\.mozbuild\\cbindgen"
+else
+ rm -rf "${HOME}/.mozbuild/cbindgen"
+fi
+
+
if [[ $1 == "--juggler" ]]; then
./mach build faster
elif [[ $1 == "--bootstrap" ]]; then