CVS commit: pkgsrc/www/firefox

"Ryo ONODERA" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	ryoon
Date:		Fri Aug 14 12:26:11 UTC 2026

Modified Files:
	pkgsrc/www/firefox: Makefile distinfo mozilla-common.mk
	pkgsrc/www/firefox/patches: patch-browser_app_profile_firefox.js
Added Files:
	pkgsrc/www/firefox/patches: patch-dom_canvas_WebGLMethodDispatcher.h

Log Message:
www/firefox: Update to 153.0.4

* Reenable WebGL with a patch from tsutsui@ via PR pkg/60579.
* Remove commented-out hunspell dependency. hunspell is sandboxed with wasm
  and external hunspell is not available anymore.

Changelog:
153.0.4:
Fixed

  * Fixed Firefox becoming unresponsive when clearing browsing history, which
    could also result in site data being lost. (Bug 2059647)

153.0.3:
New

  * Smart Window includes several enhancements:

      + The suggestion list now shows more results, making it easier to find
        history and switch to open tabs. (Bug 2019042)
      + The assistant can now answer questions directly using web search
        results from Exa, instead of handing off to a search engine. (Bug
        2046183, Bug 2044385)

Fixed

  * Fixed audio and video failing to play, or hanging when seeking, on websites
    that load media from a Blob URL. (Bug 2056444)

  * Fixed Internet shortcuts dragged from Firefox to the desktop being marked
    as untrusted on Windows, which caused a security warning every time they
    were opened. (Bug 2056865)

  * Fixed the Bookmarks, History, and other sidebars failing to open when the
    sidebar is hidden and the password manager has been turned off by an
    enterprise policy. (Bug 2056857)

  * Fixed a Mozilla VPN upgrade offer appearing for people in regions where
    Mozilla VPN is not sold. (Bug 2058264)

  * Fixed frequent Inspector crashes in the Developer Tools on pages where an
    extension content script had added event listeners. (Bug 2042101)

  * Fixed a rare case on Windows where starting Firefox while a partial update
    was still being applied could leave the installation broken and unable to
    start. (Bug 2058197, Bug 2058594)


To generate a diff of this commit:
cvs rdiff -u -r1.668 -r1.669 pkgsrc/www/firefox/Makefile
cvs rdiff -u -r1.589 -r1.590 pkgsrc/www/firefox/distinfo
cvs rdiff -u -r1.320 -r1.321 pkgsrc/www/firefox/mozilla-common.mk
cvs rdiff -u -r1.25 -r1.26 \
    pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/firefox/patches/patch-dom_canvas_WebGLMethodDispatcher.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 6.9 KB)
Modified files:

Index: pkgsrc/www/firefox/Makefile
diff -u pkgsrc/www/firefox/Makefile:1.668 pkgsrc/www/firefox/Makefile:1.669
--- pkgsrc/www/firefox/Makefile:1.668	Wed Jul 29 13:58:19 2026
+++ pkgsrc/www/firefox/Makefile	Fri Aug 14 12:26:11 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.668 2026/07/29 13:58:19 ryoon Exp $
+# $NetBSD: Makefile,v 1.669 2026/08/14 12:26:11 ryoon Exp $
 
 FIREFOX_VER=		${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
 MOZ_BRANCH=		153.0
-MOZ_BRANCH_MINOR=	.1
+MOZ_BRANCH_MINOR=	.4
 
 DISTNAME=	firefox-${FIREFOX_VER}.source
 PKGNAME=	${DISTNAME:S/.source//:S/b/beta/:S/esr//}

Index: pkgsrc/www/firefox/distinfo
diff -u pkgsrc/www/firefox/distinfo:1.589 pkgsrc/www/firefox/distinfo:1.590
--- pkgsrc/www/firefox/distinfo:1.589	Thu Aug  6 18:17:20 2026
+++ pkgsrc/www/firefox/distinfo	Fri Aug 14 12:26:11 2026
@@ -1,18 +1,19 @@
-$NetBSD: distinfo,v 1.589 2026/08/06 18:17:20 tnn Exp $
+$NetBSD: distinfo,v 1.590 2026/08/14 12:26:11 ryoon Exp $
 
-BLAKE2s (firefox-153.0.1.source.tar.xz) = 6f1f0f7801c8fdb23a8b8f200e90134a3a957948dc571ef0b7220dada197db54
-SHA512 (firefox-153.0.1.source.tar.xz) = 310d1aa27b7902ef5e052962e3b7d2819d0f5f6e596fddeafee53f09e9390d4801f5b654f4ca1e9fd4c15c71241fc31844afaa4d086f82c51b516a401fbe7f40
-Size (firefox-153.0.1.source.tar.xz) = 803443372 bytes
+BLAKE2s (firefox-153.0.4.source.tar.xz) = 3fcff4dc0ae8826dbc775fc1af1a2d30021267d567ef5c8b07c1640f78d4dbfe
+SHA512 (firefox-153.0.4.source.tar.xz) = 9081beed7f08797c2128094169cf95af4a35e208fd22bba709bfb1a19e15d15aa484fccae71154d2ae0ff955bf629cd634cc7ed6b180371aea792daf7c689ff7
+Size (firefox-153.0.4.source.tar.xz) = 803207992 bytes
 BLAKE2s (nodejs-output-153.0.tgz) = 55a9ae8d1b743f57148a3b763bce2bc9afe2bd902f5b5d6a07a3e597c569aca1
 SHA512 (nodejs-output-153.0.tgz) = 2513c4c47c9bb619a1702a36b8ec316a6c48d6b641656abf86ff33c5ae9e146721947b26a3a1af8295a005daeffb0c77e5f82f36ca9a717decc6850b3518c275
 Size (nodejs-output-153.0.tgz) = 247910 bytes
-SHA1 (patch-browser_app_profile_firefox.js) = 44c1fe360411e5946824aa4c814eaf5929e3648d
+SHA1 (patch-browser_app_profile_firefox.js) = f111e03a9c70b6ad5ba64bf95d45302b9256687a
 SHA1 (patch-build_gn__processor.py) = 078f773104bf4c1b30584564aefe365db6ba6daf
 SHA1 (patch-build_moz.configure_init.configure) = 65deb3c233df0aab81eb1fca05d708e5a4ed169a
 SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
 SHA1 (patch-config_gcc-stl-wrapper.template.h) = f2d19349e2e93c0f82db0a76124103e6ae6bba9d
 SHA1 (patch-config_makefiles_rust.mk) = 25eb2d4c99ace2b215917490f28ceb90ab90145f
 SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49
+SHA1 (patch-dom_canvas_WebGLMethodDispatcher.h) = 78f6e44116a939615523339fb73ac93f40777749
 SHA1 (patch-dom_media_mediacapabilities_MediaCapabilitiesValidation.cpp) = 2f471067387bb63d530ba1299f0542d3b3a785b6
 SHA1 (patch-dom_media_webrtc_libwebrtc__overrides_moz.build) = a2ff7cf1e6aaf888ee78581d89c7e658f46c3fcd
 SHA1 (patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp) = b93b4c6367bd2fb3d1868ab7d97ca56c100be414

Index: pkgsrc/www/firefox/mozilla-common.mk
diff -u pkgsrc/www/firefox/mozilla-common.mk:1.320 pkgsrc/www/firefox/mozilla-common.mk:1.321
--- pkgsrc/www/firefox/mozilla-common.mk:1.320	Thu Aug  6 18:17:21 2026
+++ pkgsrc/www/firefox/mozilla-common.mk	Fri Aug 14 12:26:11 2026
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.320 2026/08/06 18:17:21 tnn Exp $
+# $NetBSD: mozilla-common.mk,v 1.321 2026/08/14 12:26:11 ryoon Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -281,9 +281,6 @@ RUST_REQ=	1.90.0
 .include "../../lang/rust/rust.mk"
 .include "../../multimedia/libvpx/buildlink3.mk"
 .include "../../net/libIDL/buildlink3.mk"
-# TODO: check again, pkgsrc has hunspell 1.7
-# was: textproc/hunspell 1.3 is too old
-#.include "../../textproc/hunspell/buildlink3.mk"
 .include "../../multimedia/ffmpeg8/buildlink3.mk"
 .include "../../x11/libXt/buildlink3.mk"
 .include "../../x11/libXtst/buildlink3.mk"

Index: pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js
diff -u pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js:1.25 pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js:1.26
--- pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js:1.25	Thu Jul 16 13:11:48 2026
+++ pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js	Fri Aug 14 12:26:11 2026
@@ -1,11 +1,11 @@
-$NetBSD: patch-browser_app_profile_firefox.js,v 1.25 2026/07/16 13:11:48 ryoon Exp $
+$NetBSD: patch-browser_app_profile_firefox.js,v 1.26 2026/08/14 12:26:11 ryoon Exp $
 
 This patch modifies default Firefox settings - see the comments above
 each one.
 
---- browser/app/profile/firefox.js.orig	2025-10-03 13:17:55.000000000 +0000
+--- browser/app/profile/firefox.js.orig	2026-08-10 18:46:16.000000000 +0000
 +++ browser/app/profile/firefox.js
-@@ -2842,6 +2842,39 @@ pref("app.normandy.onsync_skew_sec", 600
+@@ -2929,6 +2929,36 @@ pref("toolkit.coverage.endpoint.base", "https://covera
  pref("toolkit.coverage.enabled", false);
  pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org");
  
@@ -30,9 +30,6 @@ each one.
 +pref("midi.prompt.testing", true);
 +pref("media.navigator.permission.disabled", true);
 +
-+// Avoid runtime error from WebGL for NetBSD systems. webgl.out-of-process was removed.
-+pref("webgl.disabled", true);
-+
 +// Avoid unfunctional video and audio codecs
 +pref("media.allow-audio-non-utility", true);
 +

Added files:

Index: pkgsrc/www/firefox/patches/patch-dom_canvas_WebGLMethodDispatcher.h
diff -u /dev/null pkgsrc/www/firefox/patches/patch-dom_canvas_WebGLMethodDispatcher.h:1.1
--- /dev/null	Fri Aug 14 12:26:11 2026
+++ pkgsrc/www/firefox/patches/patch-dom_canvas_WebGLMethodDispatcher.h	Fri Aug 14 12:26:11 2026
@@ -0,0 +1,26 @@
+$NetBSD: patch-dom_canvas_WebGLMethodDispatcher.h,v 1.1 2026/08/14 12:26:11 ryoon Exp $
+
+- Work around broken WebGL method dispatch on NetBSD.
+  From PR pkg/60579: www/firefox: WebGL does not work on NetBSD
+
+--- dom/canvas/WebGLMethodDispatcher.h.orig	2026-07-27 13:13:11.000000000 +0000
++++ dom/canvas/WebGLMethodDispatcher.h
+@@ -31,7 +31,18 @@ class WebGLMethodDispatcher
+ 
+ // Defines each method the WebGLMethodDispatcher handles.  The COUNTER value
+ // is used as a cross-process ID for each of the methods.
++#ifdef __NetBSD__
++// XXX: NetBSD system headers use __COUNTER__ in __CTASSERT(), so
++//      __COUNTER__ may already have been incremented when this header is
++//      included.  Normalize the method IDs so that they start at zero.
++constexpr size_t kWebGLMethodDispatcherCounterBase = __COUNTER__ + 1;
++
++#define DEFINE_ASYNC(_METHOD)                                      \
++  DEFINE_METHOD_DISPATCHER(                                        \
++      __COUNTER__ - kWebGLMethodDispatcherCounterBase, _METHOD, 0)
++#else
+ #define DEFINE_ASYNC(_METHOD) DEFINE_METHOD_DISPATCHER(__COUNTER__, _METHOD, 0)
++#endif
+ 
+ DEFINE_ASYNC(HostWebGLContext::CreateBuffer)
+ DEFINE_ASYNC(HostWebGLContext::CreateFramebuffer)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.