public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/webkitgtk] epel10: Update to 2.52.1
@ 2026-10-28 9:25 Michael Catanzaro
0 siblings, 0 replies; only message in thread
From: Michael Catanzaro @ 2026-10-28 9:25 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/webkitgtk
Branch : epel10
Commit : 0b345932d7aaacf6a3da835625341c74c39b7328
Author : Michael Catanzaro <mcatanzaro@gnome.org>
Date : 2026-10-25T12:47:43+01:00
Stats : +79/-3 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/webkitgtk/c/0b345932d7aaacf6a3da835625341c74c39b7328?branch=epel10
Log:
Update to 2.52.1
---
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..843ab9d
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,73 @@
+From fae54da171d3fdee238c33418c4779bccc9d5ecb Mon Sep 17 00:00:00 2001
+From: Claudio Saavedra <csaavedra@igalia.com>
+Date: Fri, 27 Mar 2026 22:09:02 +0200
+Subject: [PATCH] [GTK3] Fix the dom bindings build
+ https://bugs.webkit.org/show_bug.cgi?id=310915
+
+Reviewed by NOBODY (OOPS!).
+
+305877.279@webkitglib/2.52 changed the signature of
+UserMessageHandler::postMessage. Fix that so that
+webkit_dom_dom_window_webkit_message_handlers_post_message() continues
+to work as usual.
+
+* Source/WebCore/page/UserMessageHandler.cpp:
+(WebCore::UserMessageHandler::postMessage):
+* Source/WebCore/page/UserMessageHandler.h:
+---
+ Source/WebCore/page/UserMessageHandler.cpp | 16 +++++++++++-----
+ Source/WebCore/page/UserMessageHandler.h | 2 +-
+ 2 files changed, 12 insertions(+), 6 deletions(-)
+
+diff --git a/Source/WebCore/page/UserMessageHandler.cpp b/Source/WebCore/page/UserMessageHandler.cpp
+index a82c2d47b263..1fa69a2e145f 100644
+--- a/Source/WebCore/page/UserMessageHandler.cpp
++++ b/Source/WebCore/page/UserMessageHandler.cpp
+@@ -63,16 +63,20 @@ static bool passesSameOriginCheck(JSC::JSGlobalObject& globalObject, RefPtr<Loca
+ return securityOrigin->isSameOriginAs(frameSecurityOrigin);
+ }
+
+-void UserMessageHandler::postMessage(JSC::JSGlobalObject& globalObject, JSC::JSValue value, Ref<DeferredPromise>&& promise)
++ExceptionOr<void> UserMessageHandler::postMessage(JSC::JSGlobalObject& globalObject, JSC::JSValue value, Ref<DeferredPromise>&& promise)
+ {
+ // Check to see if the descriptor has been removed. This can happen if the host application has
+ // removed the named message handler at the WebKit2 API level.
+ RefPtr descriptor = m_descriptor;
+- if (!descriptor)
+- return promise->reject(Exception { ExceptionCode::InvalidAccessError });
++ if (!descriptor) {
++ promise->reject(Exception { ExceptionCode::InvalidAccessError });
++ return Exception { ExceptionCode::InvalidAccessError };
++ }
+
+- if (!passesSameOriginCheck(globalObject, m_frame.get()))
+- return promise->reject(Exception { ExceptionCode::InvalidAccessError, "Failed same-origin check."_s });
++ if (!passesSameOriginCheck(globalObject, m_frame.get())) {
++ promise->reject(Exception { ExceptionCode::InvalidAccessError, "Failed same-origin check."_s });
++ return Exception { ExceptionCode::InvalidAccessError };
++ }
+
+ descriptor->didPostMessage(*this, globalObject, value, [promise = WTF::move(promise)](JSC::JSValue result, const String& errorMessage) {
+ if (errorMessage.isNull())
+@@ -84,6 +88,8 @@ void UserMessageHandler::postMessage(JSC::JSGlobalObject& globalObject, JSC::JSV
+ JSC::JSLockHolder lock(globalObject);
+ promise->reject<IDLAny>(JSC::createError(globalObject, errorMessage));
+ });
++
++ return { };
+ }
+
+ ExceptionOr<JSC::JSValue> UserMessageHandler::postLegacySynchronousMessage(JSC::JSGlobalObject& globalObject, JSC::JSValue value)
+diff --git a/Source/WebCore/page/UserMessageHandler.h b/Source/WebCore/page/UserMessageHandler.h
+index ae49b223c2d6..4f59318abb25 100644
+--- a/Source/WebCore/page/UserMessageHandler.h
++++ b/Source/WebCore/page/UserMessageHandler.h
+@@ -52,7 +52,7 @@ class UserMessageHandler : public RefCounted<UserMessageHandler>, public FrameDe
+ void ref() const final { RefCounted::ref(); }
+ void deref() const final { RefCounted::deref(); }
+
+- void postMessage(JSC::JSGlobalObject&, JSC::JSValue, Ref<DeferredPromise>&&);
++ ExceptionOr<void> postMessage(JSC::JSGlobalObject&, JSC::JSValue, Ref<DeferredPromise>&&);
+ ExceptionOr<JSC::JSValue> postLegacySynchronousMessage(JSC::JSGlobalObject&, JSC::JSValue);
+
+ const UserMessageHandlerDescriptor* descriptor() const { return m_descriptor.get(); }
diff --git a/sources b/sources
index 3150e13..6acc457 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (webkitgtk-2.52.0.tar.xz) = acb9cb5748b7b7e3a28076116cfd5acc5136e14e416bbac5d318d21af7b20471a91fd4341a39cc8cd2dc04c997e5ab122ea8a2306bea9e66472445ac268aa28c
-SHA512 (webkitgtk-2.52.0.tar.xz.asc) = f671823ea00f68558c6d57a1d3a5650ff47bcad0f50ad3f97844b267cad7cb5ce3046f0ad3dd62d0fdc994dbde1e01cda8bcd0d3b85bef9d3c053aa11b95d4bf
+SHA512 (webkitgtk-2.52.1.tar.xz) = 2798e2d94bcdde954e5cacfbae68219918dc2f9fae357ae8289e54db9d2ae6553b98819f073d8421d207ac55b07ec3838211602b4aeda2de248d6861ba1b3421
+SHA512 (webkitgtk-2.52.1.tar.xz.asc) = 92e94dff4321b1879a8d7933d4cec7487771262a4e5b5b76db23d94fcb75d6b02ba64478479d74372ac71ba0e17022f9535bb4cf7639dba8aefc1c9942e97b36
diff --git a/webkitgtk.spec b/webkitgtk.spec
index 8c1f990..c0ecd87 100644
--- a/webkitgtk.spec
+++ b/webkitgtk.spec
@@ -19,7 +19,7 @@
%endif
Name: webkitgtk
-Version: 2.52.0
+Version: 2.52.1
Release: %autorelease
Summary: GTK web content engine library
@@ -57,6 +57,9 @@ Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc
# $ gpg --export --export-options export-minimal 013A0127AC9C65B34FFA62526C1009B693975393 5AA3BC334FD7E3369E7C77B291C559DBE4C9123B > webkitgtk-keys.gpg
Source2: webkitgtk-keys.gpg
+# https://bugs.webkit.org/show_bug.cgi?id=310915
+Patch: build.patch
+
BuildRequires: bison
BuildRequires: bubblewrap
BuildRequires: clang
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-28 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 9:25 [rpms/webkitgtk] epel10: Update to 2.52.1 Michael Catanzaro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox