From 6d3913f459570df5d12cdda65f6a2e0a50cd6900 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 9 Nov 2023 21:59:28 +0100 Subject: [PATCH] chore: fix Ubuntu 22.04 WebKit on 20.04 host (#28068) https://github.com/microsoft/playwright/issues/27313 --- utils/docker/Dockerfile.jammy | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/docker/Dockerfile.jammy b/utils/docker/Dockerfile.jammy index fc0364de5c..d7c70a729c 100644 --- a/utils/docker/Dockerfile.jammy +++ b/utils/docker/Dockerfile.jammy @@ -40,6 +40,15 @@ RUN mkdir /ms-playwright && \ npm i /tmp/playwright-core.tar.gz && \ npm exec --no -- playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \ npm exec --no -- playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \ + # Workaround for https://github.com/microsoft/playwright/issues/27313 + # While the gstreamer plugin load process can be in-process, it ended up throwing + # an error that it can't have libsoup2 and libsoup3 in the same process because + # libgstwebrtc is linked against libsoup2. So we just remove the plugin. + if [ "$(uname -m)" = "aarch64" ]; then \ + rm /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \ + else \ + rm /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \ + fi && \ rm /tmp/playwright-core.tar.gz && \ rm -rf /ms-playwright-agent && \ rm -rf ~/.npm/ && \