Skip to content

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

browser(webkit): fix WPE compilation (#635)

Yury Semikhatskyf463d06bd2ee
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER
index 9707e87684..af6316f1e0 100644
--- a/browser_patches/webkit/BUILD_NUMBER
+++ b/browser_patches/webkit/BUILD_NUMBER
@@ -1 +1 @@
-1108
+1109
diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diff
index 0ce5c113b9..80d57874f6 100644
--- a/browser_patches/webkit/patches/bootstrap.diff
+++ b/browser_patches/webkit/patches/bootstrap.diff
@@ -15016,10 +15016,10 @@ index 0000000000000000000000000000000000000000..033ff802d3971a455667cd64c0e68dd1
+} // namespace WPEToolingBackends
diff --git a/Tools/wpe/backends/NullViewBackend.h b/Tools/wpe/backends/NullViewBackend.h
new file mode 100644
-index 0000000000000000000000000000000000000000..7a2a03491c33231de1c1d692e18fb71cc478b90f
+index 0000000000000000000000000000000000000000..c4489294acfe73adcb3593f2d54a3be625307f28
--- /dev/null
+++ b/Tools/wpe/backends/NullViewBackend.h
-@@ -0,0 +1,43 @@
+@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) Microsoft Corporation.
+ *
@@ -15060,6 +15060,9 @@ index 0000000000000000000000000000000000000000..7a2a03491c33231de1c1d692e18fb71c
+ virtual ~NullViewBackend() = default;
+private:
+ void displayBuffer(struct wpe_fdo_egl_exported_image*) override { };
++#if WPE_FDO_CHECK_VERSION(1, 5, 0)
++ void displayBuffer(struct wpe_fdo_shm_exported_buffer*) override { };
++#endif
+};
+
+} // namespace WPEToolingBackends