diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-15 09:57:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-15 09:57:14 +0100 |
commit | 378cfc3b7b1890254f709142ae403cdba363b6c5 (patch) | |
tree | 6fd4e83d157736813fb91131a0d7c0d1720ad780 /net-libs/webkit-gtk/files | |
parent | f0be63af416323382c926d1ff97bcca80e1b08f6 (diff) |
net-libs/webkit-gtk : version bump
Diffstat (limited to 'net-libs/webkit-gtk/files')
5 files changed, 254 insertions, 0 deletions
diff --git a/net-libs/webkit-gtk/files/2.28.2-fix-ppc64-JSC.patch b/net-libs/webkit-gtk/files/2.28.2-fix-ppc64-JSC.patch new file mode 100644 index 00000000..96e4d7d0 --- /dev/null +++ b/net-libs/webkit-gtk/files/2.28.2-fix-ppc64-JSC.patch @@ -0,0 +1,59 @@ +From 46c7d3ea88dd77223f25c48ce4a8688db71c489b Mon Sep 17 00:00:00 2001 +From: "commit-queue@webkit.org" + <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> +Date: Thu, 7 May 2020 19:30:28 +0000 +Subject: [PATCH] REGRESSION(r251875): Crash in JSC::StructureIDTable::get on + ppc64le: gcSafeMemcpy broken on JSVALUE64 platforms other than x86_64 and + aarch64 https://bugs.webkit.org/show_bug.cgi?id=210685 + +Patch by Daniel Kolesa <daniel@octaforge.org> on 2020-05-07 +Reviewed by Michael Catanzaro. + +Fix gcSafeMemcpy on non-x86_64/aarch64 64-bit architectures. + +We were hitting an incorrect x86_64 assertion on values larger than +mediumCutoff on JSVALUE64 architectures other than x86_64 and aarch64, +as the control flow is wrong. + +* heap/GCMemoryOperations.h: +(JSC::gcSafeMemcpy): + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261326 268f45cc-cd09-0410-ab3c-d52691b4dbfc +--- + Source/JavaScriptCore/heap/GCMemoryOperations.h | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/Source/JavaScriptCore/heap/GCMemoryOperations.h b/Source/JavaScriptCore/heap/GCMemoryOperations.h +index f2b9e385bc9..ff66071db20 100644 +--- a/Source/JavaScriptCore/heap/GCMemoryOperations.h ++++ b/Source/JavaScriptCore/heap/GCMemoryOperations.h +@@ -53,7 +53,7 @@ ALWAYS_INLINE void gcSafeMemcpy(T* dst, T* src, size_t bytes) + bitwise_cast<volatile uint64_t*>(dst)[i] = bitwise_cast<volatile uint64_t*>(src)[i]; + }; + +-#if COMPILER(GCC_COMPATIBLE) && USE(JSVALUE64) ++#if COMPILER(GCC_COMPATIBLE) && (CPU(X86_64) || CPU(ARM64)) + if (bytes <= smallCutoff) + slowPathForwardMemcpy(); + else if (isARM64() || bytes <= mediumCutoff) { +@@ -121,8 +121,6 @@ ALWAYS_INLINE void gcSafeMemcpy(T* dst, T* src, size_t bytes) + : + : "d0", "d1", "memory" + ); +-#else +- slowPathForwardMemcpy(); + #endif // CPU(X86_64) + } else { + RELEASE_ASSERT(isX86_64()); +@@ -139,7 +137,7 @@ ALWAYS_INLINE void gcSafeMemcpy(T* dst, T* src, size_t bytes) + } + #else + slowPathForwardMemcpy(); +-#endif // COMPILER(GCC_COMPATIBLE) ++#endif // COMPILER(GCC_COMPATIBLE) && (CPU(X86_64) || CPU(ARM64)) + #else + memcpy(dst, src, bytes); + #endif // USE(JSVALUE64) +-- +2.20.1 + diff --git a/net-libs/webkit-gtk/files/2.28.2-fix-yelp-desktopless-build.patch b/net-libs/webkit-gtk/files/2.28.2-fix-yelp-desktopless-build.patch new file mode 100644 index 00000000..fdf9d7d4 --- /dev/null +++ b/net-libs/webkit-gtk/files/2.28.2-fix-yelp-desktopless-build.patch @@ -0,0 +1,53 @@ +From 9cd4011a12bf658aad3776251792bacdc894643a Mon Sep 17 00:00:00 2001 +From: "berto@igalia.com" + <berto@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> +Date: Mon, 27 Apr 2020 11:52:10 +0000 +Subject: [PATCH] [GTK] [2.28.0] The Yelp build crashes if DISPLAY is not set + https://bugs.webkit.org/show_bug.cgi?id=209431 + +Reviewed by Carlos Garcia Campos. + +Don't create a PlatformDisplayLibWPE as a fallback when using +Wayland or X11. + +* platform/graphics/PlatformDisplay.cpp: +(WebCore::PlatformDisplay::createPlatformDisplay): + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260750 268f45cc-cd09-0410-ab3c-d52691b4dbfc +--- + Source/WebCore/platform/graphics/PlatformDisplay.cpp | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/Source/WebCore/platform/graphics/PlatformDisplay.cpp b/Source/WebCore/platform/graphics/PlatformDisplay.cpp +index 8bb47ca2b77..f9547b3af69 100644 +--- a/Source/WebCore/platform/graphics/PlatformDisplay.cpp ++++ b/Source/WebCore/platform/graphics/PlatformDisplay.cpp +@@ -98,12 +98,6 @@ std::unique_ptr<PlatformDisplay> PlatformDisplay::createPlatformDisplay() + } + #endif // PLATFORM(GTK) + +-#if USE(WPE_RENDERER) +- return PlatformDisplayLibWPE::create(); +-#elif PLATFORM(WIN) +- return PlatformDisplayWin::create(); +-#endif +- + #if PLATFORM(WAYLAND) + if (auto platformDisplay = PlatformDisplayWayland::create()) + return platformDisplay; +@@ -121,6 +115,12 @@ std::unique_ptr<PlatformDisplay> PlatformDisplay::createPlatformDisplay() + return PlatformDisplayX11::create(nullptr); + #endif + ++#if USE(WPE_RENDERER) ++ return PlatformDisplayLibWPE::create(); ++#elif PLATFORM(WIN) ++ return PlatformDisplayWin::create(); ++#endif ++ + RELEASE_ASSERT_NOT_REACHED(); + } + +-- +2.20.1 + diff --git a/net-libs/webkit-gtk/files/2.28.2-non-jumbo-fix.patch b/net-libs/webkit-gtk/files/2.28.2-non-jumbo-fix.patch new file mode 100644 index 00000000..da9f1d3f --- /dev/null +++ b/net-libs/webkit-gtk/files/2.28.2-non-jumbo-fix.patch @@ -0,0 +1,34 @@ +From d553de92ed238278f51b93a2c90af7d3ff7a2da2 Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <leio@gentoo.org> +Date: Tue, 12 May 2020 15:28:45 +0300 +Subject: [PATCH] Try to fix an apparent non-unified build error +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: In member function ‘WTF::RefPtr<WebKit::InjectedBundleNodeHandle> +WebKit::InjectedBundleHitTestResult::urlElementHandle() const’: +Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:57:78: error: no matching function for call to +‘WebKit::InjectedBundleNodeHandle::getOrCreate(WebCore::Element*)’ + 57 | return InjectedBundleNodeHandle::getOrCreate(m_hitTestResult.URLElement()); + | ^ +In file included from Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:29 +--- + .../WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp b/Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp +index df8e55df1f0..26f045bd3fc 100644 +--- a/Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp ++++ b/Source/WebKit/WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp +@@ -32,6 +32,7 @@ + #include "WebImage.h" + #include <WebCore/BitmapImage.h> + #include <WebCore/Document.h> ++#include <WebCore/Element.h> + #include <WebCore/Frame.h> + #include <WebCore/FrameLoader.h> + #include <WebCore/FrameView.h> +-- +2.20.1 + diff --git a/net-libs/webkit-gtk/files/2.28.2-opengl-without-X-fixes.patch b/net-libs/webkit-gtk/files/2.28.2-opengl-without-X-fixes.patch new file mode 100644 index 00000000..6976c3ce --- /dev/null +++ b/net-libs/webkit-gtk/files/2.28.2-opengl-without-X-fixes.patch @@ -0,0 +1,53 @@ +From c67efa2bbe2094b40b4e104bb26497c2aff5ce68 Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <leio@gentoo.org> +Date: Sat, 9 May 2020 23:11:52 +0300 +Subject: [PATCH] Clean up OpenGLShims.h conditionals in a few places to fix + some build configurations + +--- + Source/WebCore/platform/graphics/GLContext.cpp | 5 ++++- + Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp | 5 ++++- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/Source/WebCore/platform/graphics/GLContext.cpp b/Source/WebCore/platform/graphics/GLContext.cpp +index b217988b990..1ba0eb8a482 100644 +--- a/Source/WebCore/platform/graphics/GLContext.cpp ++++ b/Source/WebCore/platform/graphics/GLContext.cpp +@@ -28,6 +28,9 @@ + + #if USE(GLX) + #include "GLContextGLX.h" ++#endif ++ ++#if !USE(OPENGL_ES) && !USE(LIBEPOXY) && !USE(ANGLE) + #include "OpenGLShims.h" + #endif + +@@ -57,7 +60,7 @@ inline ThreadGlobalGLContext* currentContext() + + static bool initializeOpenGLShimsIfNeeded() + { +-#if USE(OPENGL_ES) || USE(LIBEPOXY) ++#if USE(OPENGL_ES) || USE(LIBEPOXY) || USE(ANGLE) + return true; + #else + static bool initialized = false; +diff --git a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp +index 3515be452b2..82cce70f14b 100644 +--- a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp ++++ b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp +@@ -64,7 +64,10 @@ + + #if USE(GLX) + #include <GL/glx.h> +-#include <WebCore/OpenGLShims.h> ++#endif ++ ++#if !USE(OPENGL_ES) && !USE(LIBEPOXY) && !USE(ANGLE) ++#include "WebCore/OpenGLShims.h" + #endif + + #if USE(GSTREAMER) +-- +2.20.1 + diff --git a/net-libs/webkit-gtk/files/2.28.2-use-gst-audiointerleave.patch b/net-libs/webkit-gtk/files/2.28.2-use-gst-audiointerleave.patch new file mode 100644 index 00000000..f4bc7291 --- /dev/null +++ b/net-libs/webkit-gtk/files/2.28.2-use-gst-audiointerleave.patch @@ -0,0 +1,55 @@ +From 43686247013a1230d47b46d637f928eb47c99609 Mon Sep 17 00:00:00 2001 +From: "commit-queue@webkit.org" + <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> +Date: Wed, 29 Apr 2020 08:14:06 +0000 +Subject: [PATCH] [GStreamer] Switch to audiointerleave + https://bugs.webkit.org/show_bug.cgi?id=211124 + +Patch by Philippe Normand <pnormand@igalia.com> on 2020-04-29 +Reviewed by Xabier Rodriguez-Calvar. + +The audiointerleave element is a drop-in replacement of +interleave. It should behave a bit better in live. + +No new tests, existing webaudio tests cover this change. + +* platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp: +(webKitWebAudioSrcConstructed): +(webKitWebAudioSrcChangeState): + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260886 268f45cc-cd09-0410-ab3c-d52691b4dbfc +--- + .../audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp b/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp +index 2f937f677cc..ea134b7b1b2 100644 +--- a/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp ++++ b/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp +@@ -211,10 +211,10 @@ static void webKitWebAudioSrcConstructed(GObject* object) + ASSERT(priv->provider); + ASSERT(priv->sampleRate); + +- priv->interleave = gst_element_factory_make("interleave", nullptr); ++ priv->interleave = gst_element_factory_make("audiointerleave", nullptr); + + if (!priv->interleave) { +- GST_ERROR_OBJECT(src, "Failed to create interleave"); ++ GST_ERROR_OBJECT(src, "Failed to create audiointerleave"); + return; + } + +@@ -398,8 +398,8 @@ static GstStateChangeReturn webKitWebAudioSrcChangeState(GstElement* element, Gs + switch (transition) { + case GST_STATE_CHANGE_NULL_TO_READY: + if (!src->priv->interleave) { +- gst_element_post_message(element, gst_missing_element_message_new(element, "interleave")); +- GST_ELEMENT_ERROR(src, CORE, MISSING_PLUGIN, (nullptr), ("no interleave")); ++ gst_element_post_message(element, gst_missing_element_message_new(element, "audiointerleave")); ++ GST_ELEMENT_ERROR(src, CORE, MISSING_PLUGIN, (nullptr), ("no audiointerleave")); + return GST_STATE_CHANGE_FAILURE; + } + src->priv->numberOfSamples = 0; +-- +2.20.1 + |