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
devops: cross-compile firefox for Ubuntu 20.04 Arm64 (#10091)
Andrey Lushnikov296a2bb72fc2
diff --git a/browser_patches/checkout_build_archive_upload.sh b/browser_patches/checkout_build_archive_upload.shindex cb3152c957..78f85dbcf1 100755--- a/browser_patches/checkout_build_archive_upload.sh+++ b/browser_patches/checkout_build_archive_upload.sh@@ -207,6 +207,13 @@ elif [[ "$BUILD_FLAVOR" == "firefox-ubuntu-20.04" ]]; thenEXPECTED_HOST_OS="Ubuntu"EXPECTED_HOST_OS_VERSION="20.04"BUILD_BLOB_NAME="firefox-ubuntu-20.04.zip"+elif [[ "$BUILD_FLAVOR" == "firefox-ubuntu-20.04-arm64" ]]; then+ BROWSER_NAME="firefox"+ EXTRA_BUILD_ARGS="--full --linux-arm64"+ EXTRA_ARCHIVE_ARGS="--linux-arm64"+ EXPECTED_HOST_OS="Ubuntu"+ EXPECTED_HOST_OS_VERSION="20.04"+ BUILD_BLOB_NAME="firefox-ubuntu-20.04-arm64.zip"elif [[ "$BUILD_FLAVOR" == "firefox-mac-11" ]]; thenBROWSER_NAME="firefox"EXTRA_BUILD_ARGS="--full"diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBERindex 9a44b88906..0dba107e33 100644--- a/browser_patches/firefox/BUILD_NUMBER+++ b/browser_patches/firefox/BUILD_NUMBER@@ -1,2 +1,2 @@-1302-Changed: [email protected] Thu 04 Nov 2021 12:24:04 PM PDT+1303+Changed: [email protected] Fri Nov 5 07:27:32 HST 2021diff --git a/browser_patches/firefox/EXPECTED_BUILDS b/browser_patches/firefox/EXPECTED_BUILDSindex 576b60dd9d..a75b76d735 100644--- a/browser_patches/firefox/EXPECTED_BUILDS+++ b/browser_patches/firefox/EXPECTED_BUILDS@@ -2,4 +2,5 @@ firefox-mac-11.zipfirefox-mac-11-arm64.zipfirefox-ubuntu-18.04.zipfirefox-ubuntu-20.04.zip+firefox-ubuntu-20.04-arm64.zipfirefox-win64.zipdiff --git a/browser_patches/firefox/archive.sh b/browser_patches/firefox/archive.shindex ec364beeba..30055b1e7f 100755--- a/browser_patches/firefox/archive.sh+++ b/browser_patches/firefox/archive.sh@@ -41,7 +41,11 @@ fiOBJ_FOLDER="obj-build-playwright"-./mach package+if [[ "$2" == "--linux-arm64" ]]; then+ CMD_STRIP=/usr/bin/aarch64-linux-gnu-strip ./mach package+else+ ./mach package+finode "${SCRIPT_FOLDER}"/install-preferences.js "$PWD"/$OBJ_FOLDER/dist/firefoxif ! [[ -d $OBJ_FOLDER/dist/firefox ]]; thendiff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.shindex fd078c59f5..04e1369c0c 100755--- a/browser_patches/firefox/build.sh+++ b/browser_patches/firefox/build.sh@@ -51,6 +51,10 @@ elseexit 1;fi+if [[ $1 == "--linux-arm64" || $2 == "--linux-arm64" ]]; then+ echo "ac_add_options --target=aarch64-linux-gnu" >> .mozconfig+fi+OBJ_FOLDER="obj-build-playwright"echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfigecho "ac_add_options --disable-crashreporter" >> .mozconfig@@ -82,6 +86,7 @@ if [[ $1 != "--juggler" ]]; thenfiif [[ $1 == "--full" || $2 == "--full" ]]; then+ echo "ac_add_options --enable-bootstrap" >> .mozconfigif [[ "$(uname)" == "Darwin" || "$(uname)" == "Linux" ]]; thenSHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browserfidiff --git a/browser_patches/firefox/patches/bootstrap.diff b/browser_patches/firefox/patches/bootstrap.diffindex bfc7ab18ff..51b030c6d1 100644--- a/browser_patches/firefox/patches/bootstrap.diff+++ b/browser_patches/firefox/patches/bootstrap.diff@@ -2123,6 +2123,19 @@ index 35526ca3a37327b324166dd42e450d108667a643..a2c70b2b432b2a714a928a1c08f520b0nsresult rv = NS_OK;nsCOMPtr<nsIContentSecurityPolicy> preloadCsp = mDocument->GetPreloadCsp();if (!preloadCsp) {+diff --git a/python/mozbuild/mozpack/executables.py b/python/mozbuild/mozpack/executables.py+index 0130e089e5ea3fd59b76b7ca6151460d0ea8aded..d8f04e345957bc5d02f2cfe1c80aa30ad052ae58 100644+--- a/python/mozbuild/mozpack/executables.py++++ b/python/mozbuild/mozpack/executables.py+@@ -101,7 +101,7 @@ def strip(path):+ """+ from buildconfig import substs++- strip = substs["STRIP"]++ strip = os.getenv("CMD_STRIP") or substs["STRIP"]+ flags = substs.get("STRIP_FLAGS", [])+ cmd = [strip] + flags + [path]+ if subprocess.call(cmd) != 0:diff --git a/security/manager/ssl/nsCertOverrideService.cpp b/security/manager/ssl/nsCertOverrideService.cppindex e108f50ef6d3e9b7b2fd6dbdf5742bcba2e65571..6d34e51fc2f63626014ec8c13ff85c5f63e4cdd1 100644--- a/security/manager/ssl/nsCertOverrideService.cpp