head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.32 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.30 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.28 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.26 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.24 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.22 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.20 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.18 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.16 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.14 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.12 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.10 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.8 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.6 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.4 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.2 pkgsrc-2022Q2-base:1.3; locks; strict; comment @// @; 1.3 date 2022.06.08.20.56.50; author leot; state Exp; branches; next 1.2; commitid DJM5tVbeAXiHmhHD; 1.2 date 2022.05.30.20.40.55; author leot; state Exp; branches; next 1.1; commitid nvdXPeu0IQYGy7GD; 1.1 date 2022.05.29.17.47.15; author leot; state Exp; branches; next ; commitid oN3kN8zBgbmXDYFD; desc @@ 1.3 log @webkit-gtk: Update status of upstreamed patches (All patches that were needed for JavaScriptCore on NetBSD are now upstreamed and JavaScriptCore should build and runs without local patches.) @ text @$NetBSD: patch-Source_WTF_wtf_posix_OSAllocatorPOSIX.cpp,v 1.2 2022/05/30 20:40:55 leot Exp $ Set protections for tryReserveUncommittedAligned() on platforms that have MAP_ALIGNED. This avoid a regression introduced by 247105@@main. Shared and applied upstream via . --- Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp.orig 2022-02-23 11:41:47.560819000 +0000 +++ Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp @@@@ -183,11 +183,15 @@@@ void* OSAllocator::tryReserveUncommitted #define MAP_NORESERVE 0 #endif UNUSED_PARAM(usage); - UNUSED_PARAM(writable); - UNUSED_PARAM(executable); UNUSED_PARAM(jitCageEnabled); UNUSED_PARAM(includesGuardPages); - void* result = mmap(0, bytes, PROT_NONE, MAP_NORESERVE | MAP_PRIVATE | MAP_ANON | MAP_ALIGNED(getLSBSet(alignment)), -1, 0); + int protection = PROT_READ; + if (writable) + protection |= PROT_WRITE; + if (executable) + protection |= PROT_EXEC; + + void* result = mmap(0, bytes, protection, MAP_NORESERVE | MAP_PRIVATE | MAP_ANON | MAP_ALIGNED(getLSBSet(alignment)), -1, 0); if (result == MAP_FAILED) return nullptr; if (result) @ 1.2 log @webkit-gtk: Hopefully fix all MAP_ALIGNED platforms Instead of reusing Linux code path for NetBSD fix the MAP_ALIGNED problematic codepath by setting the protections. This should hopefully fix other MAP_ALIGNED platforms, not just NetBSD. Remove XXX comment now that the problem is understood (mmap protection was set via MAP_NONE and never adjusted in the MAP_ALIGNED platforms). PKGREVISION++ @ text @d1 1 a1 1 $NetBSD: patch-Source_WTF_wtf_posix_OSAllocatorPOSIX.cpp,v 1.1 2022/05/29 17:47:15 leot Exp $ d6 1 a6 1 This avoid a regression introduced by: d8 1 a8 14 2022-02-10 Keith Miller tryReserveUncommittedAligned should explicitly take the alignment requested https://bugs.webkit.org/show_bug.cgi?id=236460 Reviewed by Yusuke Suzuki. When reducing the size of VA space reserved for Structures, we didn't take care to ensure the alignment matched the required alignment for our bit mask. To fix this we need to pass the original alignment to the allocator as a new parameter. * heap/StructureAlignedMemoryAllocator.cpp: (JSC::StructureMemoryManager::StructureMemoryManager): @ 1.1 log @webkit-gtk: Update to 2.36.3 pkgsrc changes: - Remove USE_LD_GOLD option adjustment. The option was removed, if gold is accidentally picked up it should be re-investigate how to re-disable it. - USE_SYSTEMD option is no longer available, switch to ENABLE_JOURNALD_LOG and unconditionally disable it to avoid possible systemd dependencies - ENABLE_OPENGL option is no longer available, switch to USE_OPENGL_OR_ES (not tested) Changes: WebKitGTK 2.36.3 ================ - Support capturing already encoded video streams, which takes advantage of encoding done in hardware by devices which support this feature. - Avoid using experimental GStreamer elements for video demuxing. - Avoid using the legacy GStreamer VA-API decoding plug-ins, which often cause rendering issues and are not much maintained. Their usage can be re-enabled setting WEBKIT_GST_ENABLE_LEGACY_VAAPI=1 in the environment. - Fix playback of YouTube streams which use dynamic ad insertion. - Fix display capture with Pipewire. - Fix the build without the X11 target when X11 headers are not present. - Fix several crashes and rendering issues. WebKitGTK 2.36.2 ================ - Fix some pages showing empty content boxes when using GTK4. - Fix the build with accessibility disabled. - Fix the build with newer Ruby versions. - Fix several crashes and rendering issues. WebKitGTK 2.36.1 ================ - Fix the build with accessibility disabled. - Fix several crashes and rendering issues. - Translation updates: Croatian. WebKitGTK 2.36.0 ================ - Fix selection foreground color on text with decorations. - Fix seeking on YouTube videos. - Fix list item marker not exposed to a11y when not a direct child of a list item. - Fix a crash while closing a page. - Fix the build to make it reproducible again. - Fix several crashes and rendering issues. WebKitGTK 2.35.90 ================= - Fix scrolling with the mouse wheel on sites using overscroll-behavior. - Suspend web processes after some time in the process cache. - Fix renderning of horizontal scrollbars with themes enabling steppers. - Ensure EGL displays are terminated before web process exits. - Deinitialize gstreamer before web process exits. - Make fonts under XDG_DATA_DIRS available in web process sanbox. - Canonicalize paths passed to bubblewrap launcher. - Fix several crashes and rendering issues. - Translation updates: Hebrew. WebKitGTK 2.35.3 ================ - Fix a crash at startup when bubblewrap sandbox is enabled. - Fix a crash when starting a drag an drop on touchscreen. - Fix several crashes and rendering issues. WebKitGTK 2.35.2 ================ - Add new accessibility implementation using ATSPI DBus interfaces instead of ATK. - Use native GtkWidgets for form validation popups. - Add support for requestVideoFrameCallback. - Add support for accent colors. - Fix pinch zooming from a link to not activate the link. - Fix kinetic scrolling via touch screen. - Fix several crashes and rendering issues. WebKitGTK 2.35.1 ================ - Make user interactive threads (event handler, scrolling, ...) real time in linux. - Add new API to set HTTP response information to custom uri schemes. - Add support for media session. - Change hardware-acceleration-policy setting default value to always. - Fix jsc_value_object_define_property_accessor() to work with objects not having a wrapped instance. - Fix several crashes and rendering issues. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 For NetBSD use the same code paths of OS(LINUX) (there isn't anything that NetBSD does not support). a22 4 Where probably the PROT_* are not readjusted. XXX: This is a wild-guess that should be double-checked! d25 3 a27 6 @@@@ -115,7 +115,7 @@@@ void* OSAllocator::tryReserveAndCommit(s void* OSAllocator::tryReserveUncommitted(size_t bytes, Usage usage, bool writable, bool executable, bool jitCageEnabled, bool includesGuardPages) { -#if OS(LINUX) +#if OS(LINUX) || OS(NETBSD) d29 15 a43 20 UNUSED_PARAM(writable); UNUSED_PARAM(executable); @@@@ -225,7 +225,7 @@@@ void* OSAllocator::reserveAndCommit(size void OSAllocator::commit(void* address, size_t bytes, bool writable, bool executable) { -#if OS(LINUX) +#if OS(LINUX) || OS(NETBSD) int protection = PROT_READ; if (writable) protection |= PROT_WRITE; @@@@ -249,7 +249,7 @@@@ void OSAllocator::commit(void* address, void OSAllocator::decommit(void* address, size_t bytes) { -#if OS(LINUX) +#if OS(LINUX) || OS(NETBSD) madvise(address, bytes, MADV_DONTNEED); if (mprotect(address, bytes, PROT_NONE)) CRASH(); @