Skip to content

Commit

Permalink
webkitgtk: Bump to version 2.46.1
Browse files Browse the repository at this point in the history
Changes:

* Skia is used instead of Cairo for 2D rendering, and GPU rendering is enabled by default.
* Offscreen Canvas is now enabled by default.
* Add support for system tracing using Sysprof.
* Add new API to load settings from a config file.
* Add a new setting to toggle 2D Canvas acceleration (enabled by default).
* Undeprecate console messages API and make it available in the 2.0 API.
* Fix login QR code not shown in WhatsApp web.
* Disable PSON by default again in GTK 3 API versions.
* Disable DMABuf video sink by default to prevent file descriptor leaks.
* Fix the build with GCC 13.
* Fix several crashes and rendering issues.

Release Notes:

* https://wpewebkit.org/release/wpewebkit-2.46.0.html
* https://wpewebkit.org/release/wpewebkit-2.46.1.html

wip
  • Loading branch information
psaavedra committed Oct 15, 2024
1 parent 7caa864 commit 1052ca3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/bitbake-build
with:
bitbake_source: 'raspberrypi3-mesa-webkitgtk raspberrypi3-mesa poky layers.raspberrypi.webkit conf_v4'
bitbake_source: 'raspberrypi4-64-webkitgtk raspberrypi4-64 poky layers.raspberrypi.webkit conf_v4'
bitbake_target: 'webkitgtk'
repo_release: 'scarthgap'
needs: scarthgap-repo
Expand Down

This file was deleted.

19 changes: 19 additions & 0 deletions recipes-browser/webkitgtk/webkitgtk/fix-bmalloc-armhf.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From: Alberto Garcia <[email protected]>
Subject: Fix the armhf build if bmalloc is enabled
Bug: https://bugs.webkit.org/show_bug.cgi?id=278858
Index: webkitgtk/Source/WebKit/UIProcess/gtk/PointerLockManagerX11.cpp
===================================================================
--- webkitgtk.orig/Source/WebKit/UIProcess/gtk/PointerLockManagerX11.cpp
+++ webkitgtk/Source/WebKit/UIProcess/gtk/PointerLockManagerX11.cpp
@@ -29,10 +29,10 @@
#if PLATFORM(X11)

#include "WebPageProxy.h"
-#include <X11/Xlib.h>
#include <gtk/gtk.h>
#include <wtf/TZoneMallocInlines.h>
#include <wtf/glib/GRefPtr.h>
+#include <X11/Xlib.h>

#if USE(GTK4)
#include <gdk/x11/gdkx.h>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d842

# you need harfbuzz with icu enabled, you can add this to your config:
# PACKAGECONFIG:append:pn-harfbuzz = " icu"
DEPENDS = "curl libxml2 cairo libxslt libidn \
DEPENDS = "curl libxml2 libxslt libidn \
gtk+3 gstreamer1.0 gstreamer1.0-plugins-base flex-native icu \
gperf-native perl-native ruby-native ninja-native \
glib-2.0 \
Expand All @@ -27,12 +27,13 @@ DEPENDS = "curl libxml2 cairo libxslt libidn \
"

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI = " \
https://www.webkitgtk.org/releases/webkitgtk-${PV}.tar.xz;name=tarball \
file://0001-Activate-HAVE_MISSING_STD_FILESYSTEM_PATH_CONSTRUCTO.patch \
file://fix-bmalloc-armhf.patch \
"

SRC_URI[tarball.sha256sum] = "2ce4ec1b78413035037aba8326b31ed72696626b7bea7bace5e46ac0d8cbe796"
SRC_URI[tarball.sha256sum] = "2a14faac359aff941d0bc4443eb5537e3702bcaf316b0a129e0e65f3ff8eaac0"

RRECOMMENDS:${PN} = "${PN}-bin \
ca-certificates \
Expand All @@ -59,7 +60,6 @@ PACKAGECONFIG ??= " ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)
${@bb.utils.contains_any('LAYERSERIES_CORENAMES', 'kirkstone langdale', '', 'gtk4', d)} \
jit \
jpegxl \
libbacktrace \
libsecret \
openjpeg \
video \
Expand Down Expand Up @@ -96,6 +96,7 @@ EXTRA_OECMAKE = " \
-DENABLE_INTROSPECTION=OFF \
-DENABLE_GTKDOC=OFF \
-DENABLE_MINIBROWSER=ON \
-DUSE_SYSPROF_CAPTURE=OFF \
-G Ninja \
"

Expand All @@ -111,6 +112,9 @@ PACKAGECONFIG:remove:riscv64 = "jit"
PACKAGECONFIG:remove:mipsarchn64 = "jit"
PACKAGECONFIG:remove:mipsarchn32 = "jit"

# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949621
LDFLAGS += "-Wl,--reduce-memory-overheads"

# http://errors.yoctoproject.org/Errors/Details/20370/
ARM_INSTRUCTION_SET:armv4 = "arm"
ARM_INSTRUCTION_SET:armv5 = "arm"
Expand Down

0 comments on commit 1052ca3

Please sign in to comment.