Upgraded wpewebkit from 2.36.0 to 2.43.1

This commit is contained in:
dslm4515
2024-02-12 10:14:20 -06:00
parent 7d97c37c96
commit 344036f02a
2 changed files with 34 additions and 8 deletions

View File

@ -0,0 +1,22 @@
it is not portable to use initial-exec in shared objects that are meant to be
dlopen'd.
glibc reserves some space to allow this anyway- but other libcs like musl do
not.
using an initial-exec variables forces the entire libwebkit2gtk.so to gain a TLS
program header, which makes it fail to dlopen with musl's loader.
see https://gitlab.freedesktop.org/mesa/mesa/-/commit/8570a2a280587a1e43ac11ad46ad62dfdd6c7b39
--
diff --git a/Source/WebCore/platform/graphics/gbm/GraphicsContextGLANGLELinux.cpp b/Source/WebCore/platform/graphics/gbm/GraphicsContextGLANGLELinux.cpp
index f8627d2c..6666f6d0 100644
--- a/Source/WebCore/platform/graphics/gbm/GraphicsContextGLANGLELinux.cpp
+++ b/Source/WebCore/platform/graphics/gbm/GraphicsContextGLANGLELinux.cpp
@@ -108,7 +108,7 @@ RefPtr<PixelBuffer> GraphicsContextGLANGLE::readCompositedResults()
bool GraphicsContextGLANGLE::makeContextCurrent()
{
- static thread_local TLS_MODEL_INITIAL_EXEC GraphicsContextGLANGLE* s_currentContext { nullptr };
+ static thread_local GraphicsContextGLANGLE* s_currentContext { nullptr };
if (s_currentContext == this)
return true;