Sun Jun 4 09:26:35 2023 UTC ()
firefox: Update to 113.0.2

* Not tested under NetBSD/i386 and 9 for this commit. If you find problems,
  please report your failure to me.
* Disable WebGL for a while to avoid runtime errors under NetBSD.
* Do not pass '-j1 -j1' to cargo when MAKE_JOBS=1.
* Do not restrict cargo to unconditional -j1.
* Use ffmpeg6 instead of ffmpeg5.

Changelog:
113.0.2

Fixed

  * Fixed an issue which caused Picture-in-Picture windows to not be snappable
    on Windows 11 or on systems with the FancyZones PowerToy installed (bug
    1832331)

  * Fixed a video playback crash on some Windows systems with Intel graphics (
    bug 1831329)

  * Fixed a bug which could cause Firefox to freeze on some pages when loading
    them with the Developer Tools Web Console open (bug 1828026)

  * Fixed a bug which would cause the bookmarks and history sidebars to not
    properly react to the browser window being vertically resized (bug 1831535)

113.0.1

Fixed

  * Fixed incorrect colors for Windows users with installed monitor/display
    color profiles, particularly on wide gamut displays (bug 1832215)

  * Fixed borders being visible around fullscreen windows for some
    configurations (bug 1830721)

  * Fixed an issue which may cause users in some configurations to experience
    tearing when watching videos in fullscreen mode (bug 1830792)

113.0

New

  * Say hello to enhanced Picture-in-Picture! Rewind, check video duration, and
    effortlessly switch to full-screen mode on the web's most popular video
    websites.

  * Firefox's address bar is already a great place to search for what you're
    looking for. Now you'll always be able to see your web search terms and
    refine them while viewing your search's results - no additional scrolling
    needed! Also, a new result menu has been added making it easier to remove
    history results and dismiss sponsored Firefox Suggest entries.
    Image demonstrating search terms persisting in the address bar after
    hitting Enter for easier editing

  * Private windows now protect users even better by blocking third-party
    cookies and storage of content trackers.

  * Passwords automatically generated by Firefox now include special
    characters, giving users more secure passwords by default.

  * Firefox 113 introduces a redesigned accessibility engine which
    significantly improves the speed, responsiveness, and stability of Firefox
    when used with:

      + Screen readers, as well as certain other accessibility software;
      + East Asian input methods;
      + Enterprise single sign-on software; and
      + Other applications which use accessibility frameworks to access
        information.
  * Importing bookmarks from Safari or a Chrome-based browser? The favicons for
    those bookmarks will now also be imported by default to make them easier to
    identify.

  * Firefox 113 now supports AV1 Image Format files containing animations
    (AVIS), improving support for AVIF images across the web.

  * The Windows GPU sandbox first shipped in the Firefox 110 release has been
    tightened to enhance the security benefits it provides.

  * A 13-year-old feature request was fulfilled and Firefox now supports files
    being drag-and-dropped directly from Microsoft Outlook. A special thanks to
    volunteer contributor Marco Spiess for helping to get this across the
    finish line!

  * Users on macOS can now access the Services sub-menu directly from Firefox
    context menus.

  * On Windows, the elastic overscroll effect has been enabled by default. When
    two-finger scrolling on the touchpad or scrolling on the touchscreen, you
    will now see a bouncing animation when scrolling past the edge of a scroll
    container.

  * Firefox is now available in the Tajik (tg) language.

Fixed

  * Various security fixes.

Changed

  * The long-deprecated mozRTCPeerConnection, mozRTCIceCandidate, and
    mozRTCSessionDescription WebRTC interfaces have been removed. Sites should
    utilize the non-prefixed versions instead.

Security fixes:
#CVE-2023-32205: Browser prompts could have been obscured by popups
#CVE-2023-32206: Crash in RLBox Expat driver
#CVE-2023-32207: Potential permissions request bypass via clickjacking
#CVE-2023-32208: Leak of script base URL in service workers via import()
#CVE-2023-32209: Persistent DoS via favicon image
#CVE-2023-32210: Incorrect principal object ordering
#CVE-2023-32211: Content process crash due to invalid wasm code
#CVE-2023-32212: Potential spoof due to obscured address bar
#CVE-2023-32213: Potential memory corruption in FileReader::DoReadData()
#MFSA-TMP-2023-0002: Race condition in dav1d decoding
#CVE-2023-32214: Potential DoS via exposed protocol handlers
#CVE-2023-32215: Memory safety bugs fixed in Firefox 113 and Firefox ESR 102.11
#CVE-2023-32216: Memory safety bugs fixed in Firefox 113


(ryoon)
diff -r1.557 -r1.558 pkgsrc/www/firefox/Makefile
diff -r1.496 -r1.497 pkgsrc/www/firefox/distinfo
diff -r1.252 -r1.253 pkgsrc/www/firefox/mozilla-common.mk
diff -r1.6 -r1.7 pkgsrc/www/firefox/files/node-wrapper.sh
diff -r1.1 -r1.2 pkgsrc/www/firefox/patches/patch-Cargo.lock
diff -r1.18 -r1.19 pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js
diff -r1.10 -r1.11 pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk
diff -r0 -r1.1 pkgsrc/www/firefox/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp
diff -r1.2 -r0 pkgsrc/www/firefox/patches/patch-mozglue_misc_Uptime.cpp
diff -r1.1 -r0 pkgsrc/www/firefox/patches/patch-third-party_rust_authenticator_src_transport_netbsd_device.rs
diff -r0 -r1.6 pkgsrc/www/firefox/patches/patch-toolkit_xre_glxtest.cpp

cvs diff -r1.557 -r1.558 pkgsrc/www/firefox/Makefile (expand / switch to unified diff)

--- pkgsrc/www/firefox/Makefile 2023/06/02 18:47:20 1.557
+++ pkgsrc/www/firefox/Makefile 2023/06/04 09:26:35 1.558
@@ -1,28 +1,27 @@ @@ -1,28 +1,27 @@
1# $NetBSD: Makefile,v 1.557 2023/06/02 18:47:20 wiz Exp $ 1# $NetBSD: Makefile,v 1.558 2023/06/04 09:26:35 ryoon Exp $
2 2
3FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} 3FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
4MOZ_BRANCH= 112.0 4MOZ_BRANCH= 113.0
5MOZ_BRANCH_MINOR= .1 5MOZ_BRANCH_MINOR= .2
6 6
7DISTNAME= firefox-${FIREFOX_VER}.source 7DISTNAME= firefox-${FIREFOX_VER}.source
8PKGNAME= ${DISTNAME:S/.source//:S/b/beta/:S/esr//} 8PKGNAME= ${DISTNAME:S/.source//:S/b/beta/:S/esr//}
9PKGREVISION= 5 
10CATEGORIES= www 9CATEGORIES= www
11MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/} 10MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
12MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/} 11MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/}
13EXTRACT_SUFX= .tar.xz 12EXTRACT_SUFX= .tar.xz
14 13
15NODEJSKIT= nodejs-output-111.0.tgz 14NODEJSKIT= nodejs-output-113.0.2.tgz
16DISTFILES= ${DEFAULT_DISTFILES} ${NODEJSKIT} 15DISTFILES= ${DEFAULT_DISTFILES} ${NODEJSKIT}
17SITES.${NODEJSKIT}= ${MASTER_SITE_LOCAL} 16SITES.${NODEJSKIT}= ${MASTER_SITE_LOCAL}
18 17
19MAINTAINER= ryoon@NetBSD.org 18MAINTAINER= ryoon@NetBSD.org
20HOMEPAGE= https://www.mozilla.org/en-US/firefox/ 19HOMEPAGE= https://www.mozilla.org/en-US/firefox/
21COMMENT= Web browser with support for extensions (version ${FIREFOX_VER:tu:C/\\.[[:digit:]\.]*//}) 20COMMENT= Web browser with support for extensions (version ${FIREFOX_VER:tu:C/\\.[[:digit:]\.]*//})
22LICENSE= mpl-1.1 21LICENSE= mpl-1.1
23 22
24# -------- BEFORE UPDATING THIS PACKAGE PLEASE READ & UNDERSTAND: ------- 23# -------- BEFORE UPDATING THIS PACKAGE PLEASE READ & UNDERSTAND: -------
25# 24#
26# This package works around a (stupid) build time dependency on nodejs 25# This package works around a (stupid) build time dependency on nodejs
27# (which is not available for all architectures and unnecessary for the 26# (which is not available for all architectures and unnecessary for the
28# real build). To do this, it places some additional burden on the 27# real build). To do this, it places some additional burden on the
@@ -36,28 +35,26 @@ LICENSE= mpl-1.1 @@ -36,28 +35,26 @@ LICENSE= mpl-1.1
36# When the package is ready for commit (but before commit), do: 35# When the package is ready for commit (but before commit), do:
37# 36#
38# make maintainer-files 37# make maintainer-files
39# 38#
40# This will do another round (depending on state of your work dir at this 39# This will do another round (depending on state of your work dir at this
41# moment) of one or two builds and generate a cache of all output that 40# moment) of one or two builds and generate a cache of all output that
42# nodejs generates during a build. 41# nodejs generates during a build.
43# 42#
44# When this is done, just commit the results (they will be in the files/ 43# When this is done, just commit the results (they will be in the files/
45# directory). 44# directory).
46# 45#
47# ----------------------------------------------------------------------- 46# -----------------------------------------------------------------------
48 47
49UNLIMIT_RESOURCES+= datasize virtualsize 
50 
51WRKSRC= ${WRKDIR}/firefox-${FIREFOX_VER:C/b.*//} 48WRKSRC= ${WRKDIR}/firefox-${FIREFOX_VER:C/b.*//}
52 49
53MOZILLA_DIR= # empty 50MOZILLA_DIR= # empty
54 51
55# Note: In --enable-chrome-format=flat case, 52# Note: In --enable-chrome-format=flat case,
56# when updating remember to conditionalise about-background.png in PLIST 53# when updating remember to conditionalise about-background.png in PLIST
57CONFIGURE_ARGS+= --enable-application=browser 54CONFIGURE_ARGS+= --enable-application=browser
58 55
59#CFLAGS+= -I${PREFIX}/include/nspr 56#CFLAGS+= -I${PREFIX}/include/nspr
60# for lang/gcc6 57# for lang/gcc6
61CFLAGS+= -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS 58CFLAGS+= -D_GLIBCXX_INCLUDE_NEXT_C_HEADERS
62CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS 59CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
63# Do not use uselocale() in third_party/pipewire. 60# Do not use uselocale() in third_party/pipewire.

cvs diff -r1.496 -r1.497 pkgsrc/www/firefox/distinfo (expand / switch to unified diff)

--- pkgsrc/www/firefox/distinfo 2023/04/28 18:56:22 1.496
+++ pkgsrc/www/firefox/distinfo 2023/06/04 09:26:35 1.497
@@ -1,48 +1,48 @@ @@ -1,48 +1,48 @@
1$NetBSD: distinfo,v 1.496 2023/04/28 18:56:22 maya Exp $ 1$NetBSD: distinfo,v 1.497 2023/06/04 09:26:35 ryoon Exp $
2 2
3BLAKE2s (firefox-112.0.1.source.tar.xz) = e0ea6615a9eb3b64e8888527ab2b17d1ea530bbd9f98aae36981dc8f51cc7aef 3BLAKE2s (firefox-113.0.2.source.tar.xz) = b9ec55cc7b6cd65a375d70a5491a255e8b01b739c42fa541f61f05c0ab17b47f
4SHA512 (firefox-112.0.1.source.tar.xz) = 23a5cd9c1f165275d8ca7465bebce86018441c72292421f4ed56d7ad8ada9402dc8d22a08467d9d0ef3ef8c62338006dfa3bcbddf12cb8a59eafa0bd7d0cda50 4SHA512 (firefox-113.0.2.source.tar.xz) = 7b1ff7d547fda02901f54a2593e03598a830698192003d833e27b85db0e00571ff66e03ebd4089e76fa65b09df000cbb2542450beeabb0b310875910603e6743
5Size (firefox-112.0.1.source.tar.xz) = 506649248 bytes 5Size (firefox-113.0.2.source.tar.xz) = 500503164 bytes
6BLAKE2s (nodejs-output-111.0.tgz) = 5e61c766822fdb7f5ef9e358de2ed00ba1c5074a2dad1e1d491772532f2bfe09 6BLAKE2s (nodejs-output-113.0.2.tgz) = da79ce7a5ab44378ac326caaa496dc5592bfb645b24b09f11c241933dc8ebb86
7SHA512 (nodejs-output-111.0.tgz) = 79ff7d122c48453a10312918b315acbe8dff6695042311be1b4aaa69c59fb77c7c14affc4f24fe23d9a6707d4c4dccf90c063e0f3af7de5807cdc45df5d0829e 7SHA512 (nodejs-output-113.0.2.tgz) = 83c7f21ec8bd1af66aa7ffa4d0ab442c41946f470918100ae50c7792182ed94afc588161a5142cdfbc71b85049beb3c660fce22444fca736a326810cfd8c1d4b
8Size (nodejs-output-111.0.tgz) = 208870 bytes 8Size (nodejs-output-113.0.2.tgz) = 216297 bytes
9SHA1 (patch-Cargo.lock) = 36e15ec468dda2102469354276cb9e46b1a734ac 9SHA1 (patch-Cargo.lock) = 6cedfbc82aa0af21e99e8b1035a9d17a28be3d62
10SHA1 (patch-Cargo.toml) = e5478a9268b5891b42573b1954ff584877c75bc1 10SHA1 (patch-Cargo.toml) = e5478a9268b5891b42573b1954ff584877c75bc1
11SHA1 (patch-browser_app_profile_firefox.js) = 18041d7fe211d61578863cfc53349278925f8e56 11SHA1 (patch-browser_app_profile_firefox.js) = 3b01cf7e37ea39bdd358fb14de5ce382b945ae39
12SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678 12SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
13SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9d1f15ff487efa9202114d19ed5668b4e7aa032a 13SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9d1f15ff487efa9202114d19ed5668b4e7aa032a
14SHA1 (patch-config_makefiles_rust.mk) = 188178b184d79737247ed3770cc8f4370cd7f6c0 14SHA1 (patch-config_makefiles_rust.mk) = 38c613cd87a9c3f868179caaab6e8a029eafd65f
15SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49 15SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49
 16SHA1 (patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp) = b93b4c6367bd2fb3d1868ab7d97ca56c100be414
16SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = e458c9c8dc66edc69c1874734af28a77fc5e3993 17SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = e458c9c8dc66edc69c1874734af28a77fc5e3993
17SHA1 (patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h) = b2adce9e65662283a11b6dcff40e95523e940045 18SHA1 (patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h) = b2adce9e65662283a11b6dcff40e95523e940045
18SHA1 (patch-gfx_skia_skia_src_core_SkCpu.cpp) = 36218819254f3681b9c717d652ea78c9f20d49ad 19SHA1 (patch-gfx_skia_skia_src_core_SkCpu.cpp) = 36218819254f3681b9c717d652ea78c9f20d49ad
19SHA1 (patch-gfx_skia_skia_src_core_SkVM.cpp) = bf556ef959bcf0ef64420fc72ecdb6dbeed90b98 20SHA1 (patch-gfx_skia_skia_src_core_SkVM.cpp) = bf556ef959bcf0ef64420fc72ecdb6dbeed90b98
20SHA1 (patch-gfx_wr_swgl_build.rs) = df6ebfaabb4d27994e59a9d0eaf12c7cf08415fb 21SHA1 (patch-gfx_wr_swgl_build.rs) = df6ebfaabb4d27994e59a9d0eaf12c7cf08415fb
21SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 298642a3527804115b398fb7904a3596962932e3 22SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 298642a3527804115b398fb7904a3596962932e3
22SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 35d20981d33ccdb1d8ffb8039e48798777f11658 23SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 35d20981d33ccdb1d8ffb8039e48798777f11658
23SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = 6cdd0fe60455eab8f9846257c2bfea207f19478b 24SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = 6cdd0fe60455eab8f9846257c2bfea207f19478b
24SHA1 (patch-js_src_jit_FlushICache.cpp) = b7536050d06e87612fbedc7ce269b5f120eb0ce9 25SHA1 (patch-js_src_jit_FlushICache.cpp) = b7536050d06e87612fbedc7ce269b5f120eb0ce9
25SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = 1e25924a29e3700b0e0e5d143f1db35029b431fb 26SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = 1e25924a29e3700b0e0e5d143f1db35029b431fb
26SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba 27SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba
27SHA1 (patch-js_src_vm_ArrayBufferObject.cpp) = 374ffc0ce12e1c5babf2e553aba96612b0a30b1e 28SHA1 (patch-js_src_vm_ArrayBufferObject.cpp) = 374ffc0ce12e1c5babf2e553aba96612b0a30b1e
28SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = de58daa0fd23d4fec50426602b65c9ea5862558a 29SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = de58daa0fd23d4fec50426602b65c9ea5862558a
29SHA1 (patch-media_libpng_pngpriv.h) = c8084332560017cd7c9b519b61d125fa28af0dbc 30SHA1 (patch-media_libpng_pngpriv.h) = c8084332560017cd7c9b519b61d125fa28af0dbc
30SHA1 (patch-media_libtheora_lib_info.c) = f6dbf536d73859a1ff78304c2e9f6a6f74dac01f 31SHA1 (patch-media_libtheora_lib_info.c) = f6dbf536d73859a1ff78304c2e9f6a6f74dac01f
31SHA1 (patch-modules_fdlibm_src_math__private.h) = e20b6c23011d7123cbbd64a500eb8ce8c426620e 32SHA1 (patch-modules_fdlibm_src_math__private.h) = e20b6c23011d7123cbbd64a500eb8ce8c426620e
32SHA1 (patch-mozglue_misc_Uptime.cpp) = daefe25ef1ebc8e4d3735017b9e8ac68c4710a00 
33SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = b0d1f6a6e0eb852b0fd0238ad3f8ed3166c60a50 33SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = b0d1f6a6e0eb852b0fd0238ad3f8ed3166c60a50
34SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = a7cd867916524770609d1c307a65b315b88456f4 34SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = a7cd867916524770609d1c307a65b315b88456f4
35SHA1 (patch-third-party_rust_authenticator_src_transport_netbsd_device.rs) = cb914efb0bd1b9a46dde1661230c7e09e49fc9e0 
36SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4 35SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4
37SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc) = 455be625b5de2f6f1f4b2dbb6c8cb33ca16c2583 36SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc) = 455be625b5de2f6f1f4b2dbb6c8cb33ca16c2583
38SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = 8848fb05c1e8b45234f74db71602a8a84c0404a4 37SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = 8848fb05c1e8b45234f74db71602a8a84c0404a4
39SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 8111952a107eb2cd665525ddd0e27c79eee3c1cd 38SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 8111952a107eb2cd665525ddd0e27c79eee3c1cd
40SHA1 (patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc) = b90e22b50879f7adcc1da3a993f52c0701b720f8 39SHA1 (patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc) = b90e22b50879f7adcc1da3a993f52c0701b720f8
41SHA1 (patch-third__party_wasm2c_wasm2c_wasm-rt-os-unix.c) = e63607bcad6c25b11f58b0523ed5dfacddf9c36e 40SHA1 (patch-third__party_wasm2c_wasm2c_wasm-rt-os-unix.c) = e63607bcad6c25b11f58b0523ed5dfacddf9c36e
42SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = e905e38ef1b88d764c695c019f15609350c1c43b 41SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = e905e38ef1b88d764c695c019f15609350c1c43b
43SHA1 (patch-toolkit_modules_subprocess_subprocess__shared__unix.js) = 2303b753066298305ccae80d72765dbc4da5e0dc 42SHA1 (patch-toolkit_modules_subprocess_subprocess__shared__unix.js) = 2303b753066298305ccae80d72765dbc4da5e0dc
44SHA1 (patch-toolkit_moz.configure) = c183f8b1566ffed0df17bf856f693b3a288affeb 43SHA1 (patch-toolkit_moz.configure) = c183f8b1566ffed0df17bf856f693b3a288affeb
45SHA1 (patch-toolkit_mozapps_installer_packager.mk) = 706635b76a7b525794aba95e95544f09e18bb662 44SHA1 (patch-toolkit_mozapps_installer_packager.mk) = 706635b76a7b525794aba95e95544f09e18bb662
 45SHA1 (patch-toolkit_xre_glxtest.cpp) = 8a6cf6976615130dcbf8c63d9c7d79cd47351894
46SHA1 (patch-widget_gtk_DMABufSurface.cpp) = b07836c49c0c9c85e7923d3297ad674453165522 46SHA1 (patch-widget_gtk_DMABufSurface.cpp) = b07836c49c0c9c85e7923d3297ad674453165522
47SHA1 (patch-xpcom_base_nscore.h) = 1ac4d34d3c9e80bc1ac966c6c84cb320bc0fa1ec 47SHA1 (patch-xpcom_base_nscore.h) = 1ac4d34d3c9e80bc1ac966c6c84cb320bc0fa1ec
48SHA1 (patch-xpcom_reflect_xptcall_md_unix_moz.build) = 81d43a046fcef6bf6717d52485686ba8e8738254 48SHA1 (patch-xpcom_reflect_xptcall_md_unix_moz.build) = 81d43a046fcef6bf6717d52485686ba8e8738254

cvs diff -r1.252 -r1.253 pkgsrc/www/firefox/mozilla-common.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/mozilla-common.mk 2023/06/02 18:47:20 1.252
+++ pkgsrc/www/firefox/mozilla-common.mk 2023/06/04 09:26:35 1.253
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: mozilla-common.mk,v 1.252 2023/06/02 18:47:20 wiz Exp $ 1# $NetBSD: mozilla-common.mk,v 1.253 2023/06/04 09:26:35 ryoon Exp $
2# 2#
3# common Makefile fragment for mozilla packages based on gecko 2.0. 3# common Makefile fragment for mozilla packages based on gecko 2.0.
4# 4#
5# used by www/firefox/Makefile 5# used by www/firefox/Makefile
6 6
7.include "../../mk/bsd.prefs.mk" 7.include "../../mk/bsd.prefs.mk"
8 8
9PYTHON_VERSIONS_INCOMPATIBLE= 27 9PYTHON_VERSIONS_INCOMPATIBLE= 27
10PYTHON_FOR_BUILD_ONLY= tool 10PYTHON_FOR_BUILD_ONLY= tool
11ALL_ENV+= PYTHON3=${PYTHONBIN} 11ALL_ENV+= PYTHON3=${PYTHONBIN}
12 12
13REPLACE_PYTHON= build/cargo-linker 13REPLACE_PYTHON= build/cargo-linker
14 14
@@ -125,26 +125,40 @@ CONFIGURE_ARGS+= --with-wasi-sysroot=${P @@ -125,26 +125,40 @@ CONFIGURE_ARGS+= --with-wasi-sysroot=${P
125CONFIGURE_ENV+= WASM_CC=${PREFIX}/bin/clang 125CONFIGURE_ENV+= WASM_CC=${PREFIX}/bin/clang
126CONFIGURE_ENV+= WASM_CXX=${PREFIX}/bin/clang++ 126CONFIGURE_ENV+= WASM_CXX=${PREFIX}/bin/clang++
127.else 127.else
128CONFIGURE_ARGS+= --without-wasm-sandboxed-libraries 128CONFIGURE_ARGS+= --without-wasm-sandboxed-libraries
129.endif 129.endif
130 130
131.include "../../sysutils/pciutils/libname.mk" 131.include "../../sysutils/pciutils/libname.mk"
132SUBST_CLASSES+= fix-libpci-soname 132SUBST_CLASSES+= fix-libpci-soname
133SUBST_STAGE.fix-libpci-soname= pre-configure 133SUBST_STAGE.fix-libpci-soname= pre-configure
134SUBST_MESSAGE.fix-libpci-soname= Fixing libpci soname 134SUBST_MESSAGE.fix-libpci-soname= Fixing libpci soname
135SUBST_FILES.fix-libpci-soname+= ${MOZILLA_DIR}toolkit/xre/glxtest.cpp 135SUBST_FILES.fix-libpci-soname+= ${MOZILLA_DIR}toolkit/xre/glxtest.cpp
136SUBST_SED.fix-libpci-soname+= -e 's,"libpci.so, "lib${PCIUTILS_LIBNAME}.so,' 136SUBST_SED.fix-libpci-soname+= -e 's,"libpci.so, "lib${PCIUTILS_LIBNAME}.so,'
137 137
 138# Do not pass '-j1 -j1' for MAKE_JOBS=1 for NetBSD 9.3 or rearlier.
 139.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 090400
 140RUST_MAKE_JOBS= # empty by default
 141. if ${MAKE_JOBS} > 1
 142RUST_MAKE_JOBS= -j1 # for MAKE_JOBS=1, RUST_MAKE_JOBS should be empty.
 143. endif
 144.endif
 145
 146SUBST_CLASSES+= njobs
 147SUBST_STAGE.njobs= pre-configure
 148SUBST_MESSAGE.njobs= Setting MAKE_JOBS for cairo
 149SUBST_FILES.njobs+= ${MOZILLA_DIR}config/makefiles/rust.mk
 150SUBST_VARS.njobs+= RUST_MAKE_JOBS
 151
138# Workaround for link of libxul.so as of 96.0. 152# Workaround for link of libxul.so as of 96.0.
139# There are too many -ldl under third_paty/libwebrtc. 153# There are too many -ldl under third_paty/libwebrtc.
140.include "../../mk/dlopen.buildlink3.mk" 154.include "../../mk/dlopen.buildlink3.mk"
141BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} 155BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
142 156
143CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess 157CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess
144CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess 158CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess
145CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess 159CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess
146CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess 160CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess
147CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub 161CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub
148CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub 162CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub
149CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub 163CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub
150CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub 164CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub

cvs diff -r1.6 -r1.7 pkgsrc/www/firefox/files/node-wrapper.sh (expand / switch to unified diff)

--- pkgsrc/www/firefox/files/node-wrapper.sh 2023/04/05 14:22:35 1.6
+++ pkgsrc/www/firefox/files/node-wrapper.sh 2023/06/04 09:26:35 1.7
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1#! /bin/sh 1#! /bin/sh
2 2
3VERS=v19.7.0 3VERS=v20.2.0
4 4
5if [ "$1" = "-v" ] || [ "$1" = "--version" ]; then 5if [ "$1" = "-v" ] || [ "$1" = "--version" ]; then
6 printf "${VERS}\n" 6 printf "${VERS}\n"
7fi 7fi
8 8
9exit 0 9exit 0

cvs diff -r1.1 -r1.2 pkgsrc/www/firefox/patches/Attic/patch-Cargo.lock (expand / switch to unified diff)

--- pkgsrc/www/firefox/patches/Attic/patch-Cargo.lock 2023/04/28 18:56:22 1.1
+++ pkgsrc/www/firefox/patches/Attic/patch-Cargo.lock 2023/06/04 09:26:35 1.2
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1$NetBSD: patch-Cargo.lock,v 1.1 2023/04/28 18:56:22 maya Exp $ 1$NetBSD: patch-Cargo.lock,v 1.2 2023/06/04 09:26:35 ryoon Exp $
2 2
3Enable patching authenticator-rs 3Enable patching authenticator-rs
4 4
5--- Cargo.lock.orig 2023-04-14 16:27:56.000000000 +0000 5--- Cargo.lock.orig 2023-04-27 21:16:08.000000000 +0000
6+++ Cargo.lock 6+++ Cargo.lock
7@@ -380,8 +380,6 @@ dependencies = [ 7@@ -321,8 +321,6 @@ dependencies = [
8 [[package]] 8 [[package]]
9 name = "authenticator" 9 name = "authenticator"
10 version = "0.4.0-alpha.10" 10 version = "0.4.0-alpha.11"
11-source = "registry+https://github.com/rust-lang/crates.io-index" 11-source = "registry+https://github.com/rust-lang/crates.io-index"
12-checksum = "2238116278e3a069a5148ce1efaa73d750a0d7341e011235a0ddb3e7079cb1be" 12-checksum = "e73e25e6ae754b553f930c48af8f0e5ca71e641c419151e95bafd5644ff6e21b"
13 dependencies = [ 13 dependencies = [
14 "base64", 14 "base64",
15 "bitflags", 15 "bitflags 1.3.2",

cvs diff -r1.18 -r1.19 pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js (expand / switch to unified diff)

--- pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js 2023/01/07 23:36:39 1.18
+++ pkgsrc/www/firefox/patches/patch-browser_app_profile_firefox.js 2023/06/04 09:26:35 1.19
@@ -1,48 +1,51 @@ @@ -1,48 +1,51 @@
1$NetBSD: patch-browser_app_profile_firefox.js,v 1.18 2023/01/07 23:36:39 ryoon Exp $ 1$NetBSD: patch-browser_app_profile_firefox.js,v 1.19 2023/06/04 09:26:35 ryoon Exp $
2 2
3This patch modifies default Firefox settings - see the comments above 3This patch modifies default Firefox settings - see the comments above
4each one. 4each one.
5 5
6--- browser/app/profile/firefox.js.orig 2022-12-15 22:31:34.000000000 +0000 6--- browser/app/profile/firefox.js.orig 2023-05-22 16:53:55.000000000 +0000
7+++ browser/app/profile/firefox.js 7+++ browser/app/profile/firefox.js
8@@ -2099,7 +2099,11 @@ pref("reader.pocket.ctaVersion", ""); 8@@ -2120,7 +2120,11 @@ pref("reader.pocket.ctaVersion", "");
9  9
10 pref("view_source.tab", true); 10 pref("view_source.tab", true);
11  11
12-pref("dom.serviceWorkers.enabled", true); 12-pref("dom.serviceWorkers.enabled", true);
13+// On NetBSD, many web applications (e.g. Telegram, Mastodon, Twitter) 13+// On NetBSD, many web applications (e.g. Telegram, Mastodon, Twitter)
14+// will freeze until the service worker is restarted in about:serviceworkers. 14+// will freeze until the service worker is restarted in about:serviceworkers.
15+// This is a workaround that makes most of these sites function. 15+// This is a workaround that makes most of these sites function.
16+// The root cause of this should be investigated. 16+// The root cause of this should be investigated.
17+pref("dom.serviceWorkers.enabled", false); 17+pref("dom.serviceWorkers.enabled", false);
18  18
19 // Enable Push API. 19 // Enable Push API.
20 pref("dom.push.enabled", true); 20 pref("dom.push.enabled", true);
21@@ -2279,6 +2283,27 @@ pref("app.normandy.onsync_skew_sec", 600 21@@ -2329,6 +2333,30 @@ pref("app.normandy.onsync_skew_sec", 600
22 pref("toolkit.coverage.enabled", false); 22 pref("toolkit.coverage.enabled", false);
23 pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org"); 23 pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org");
24  24
25+// Select UI locale from LANG/LC_MESSAGE environmental variables 25+// Select UI locale from LANG/LC_MESSAGE environmental variables
26+pref("intl.locale.requested", ""); 26+pref("intl.locale.requested", "");
27+ 27+
28+// Enable system addons, for example langpacks from www/firefox-l10n 28+// Enable system addons, for example langpacks from www/firefox-l10n
29+pref("extensions.autoDisableScopes", 11); 29+pref("extensions.autoDisableScopes", 11);
30+ 30+
31+// Firefox includes a complex mechanism for "blacklisting" GPUs that 31+// Firefox includes a complex mechanism for "blacklisting" GPUs that
32+// appears to fail on a NetBSD system where the only available OpenGL 32+// appears to fail on a NetBSD system where the only available OpenGL
33+// implementations are all from Mesa. WebRender was supposed to be 33+// implementations are all from Mesa. WebRender was supposed to be
34+// enabled by default from Firefox 91 onwards and appears to greatly 34+// enabled by default from Firefox 91 onwards and appears to greatly
35+// improve performance even with acceleration disabled at the kernel 35+// improve performance even with acceleration disabled at the kernel
36+// level. 36+// level.
37+pref("gfx.webrender.all", true); 37+pref("gfx.webrender.all", true);
38+ 38+
39+// Disable Web MIDI support 39+// Disable Web MIDI support
40+// NetBSD gets immediate SIGSEGV when Web MIDI is enabled. 40+// NetBSD gets immediate SIGSEGV when Web MIDI is enabled.
41+pref("midi.testing", true); 41+pref("midi.testing", true);
42+pref("dom.webmidi.enabled", true); 42+pref("dom.webmidi.enabled", true);
43+pref("midi.prompt.testing", true); 43+pref("midi.prompt.testing", true);
44+pref("media.navigator.permission.disabled", true); 44+pref("media.navigator.permission.disabled", true);
45+ 45+
 46+// DIsable WebGL for NetBSD systems
 47+pref("webgl.disabled", true);
 48+
46 // Discovery prefs 49 // Discovery prefs
47 pref("browser.discovery.enabled", true); 50 pref("browser.discovery.enabled", true);
48 pref("browser.discovery.containers.enabled", true); 51 pref("browser.discovery.containers.enabled", true);

cvs diff -r1.10 -r1.11 pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk 2022/06/14 16:44:29 1.10
+++ pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk 2023/06/04 09:26:35 1.11
@@ -1,29 +1,29 @@ @@ -1,29 +1,29 @@
1$NetBSD: patch-config_makefiles_rust.mk,v 1.10 2022/06/14 16:44:29 ryoon Exp $ 1$NetBSD: patch-config_makefiles_rust.mk,v 1.11 2023/06/04 09:26:35 ryoon Exp $
2 2
3NetBSD doesn't get along with parallel rust builds (it causes issues 3NetBSD doesn't get along with parallel rust builds (it causes issues
4with ld.so) which are the default. Force -j1. 4with ld.so) which are the default. Force -j1.
5 5
6Use less memory to fix build under NetBSD/i386. 6Use less memory to fix build under NetBSD/i386.
7From: https://bugzilla.mozilla.org/show_bug.cgi?id=1644409 7From: https://bugzilla.mozilla.org/show_bug.cgi?id=1644409
8 8
9--- config/makefiles/rust.mk.orig 2022-06-08 14:10:19.000000000 +0000 9--- config/makefiles/rust.mk.orig 2022-06-08 14:10:19.000000000 +0000
10+++ config/makefiles/rust.mk 10+++ config/makefiles/rust.mk
11@@ -58,6 +58,9 @@ ifdef MOZ_TSAN 11@@ -58,6 +58,9 @@ ifdef MOZ_TSAN
12 cargo_build_flags += -Zbuild-std=std,panic_abort 12 cargo_build_flags += -Zbuild-std=std,panic_abort
13 RUSTFLAGS += -Zsanitizer=thread 13 RUSTFLAGS += -Zsanitizer=thread
14 endif 14 endif
15+ifeq ($(OS_ARCH),NetBSD) 15+ifeq ($(OS_ARCH),NetBSD)
16+cargo_build_flags += -j1 16+cargo_build_flags += @RUST_MAKE_JOBS@
17+endif 17+endif
18  18
19 rustflags_sancov = 19 rustflags_sancov =
20 ifdef LIBFUZZER 20 ifdef LIBFUZZER
21@@ -90,7 +93,8 @@ ifndef rustflags_sancov 21@@ -90,7 +93,8 @@ ifndef rustflags_sancov
22 # Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045. 22 # Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045.
23 ifndef MOZ_CODE_COVERAGE 23 ifndef MOZ_CODE_COVERAGE
24 ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE))) 24 ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
25-cargo_rustc_flags += -Clto 25-cargo_rustc_flags += -Clto
26+cargo_rustc_flags += -Clto=thin 26+cargo_rustc_flags += -Clto=thin
27+export CARGO_PROFILE_RELEASE_LTO=thin 27+export CARGO_PROFILE_RELEASE_LTO=thin
28 endif 28 endif
29 # We need -Cembed-bitcode=yes for all crates when using -Clto. 29 # We need -Cembed-bitcode=yes for all crates when using -Clto.

File Added: pkgsrc/www/firefox/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp
$NetBSD: patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp,v 1.1 2023/06/04 09:26:35 ryoon Exp $

--- dom/webtransport/api/WebTransportDatagramDuplexStream.cpp.orig	2023-04-23 21:17:18.000000000 +0000
+++ dom/webtransport/api/WebTransportDatagramDuplexStream.cpp
@@ -62,7 +62,7 @@ void WebTransportDatagramDuplexStream::S
                                                          ErrorResult& aRv) {
   // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-incomingmaxage
   // Step 1
-  if (isnan(aMaxAge) || aMaxAge < 0.) {
+  if (std::isnan(aMaxAge) || aMaxAge < 0.) {
     aRv.ThrowRangeError("Invalid IncomingMaxAge");
     return;
   }
@@ -78,7 +78,7 @@ void WebTransportDatagramDuplexStream::S
                                                          ErrorResult& aRv) {
   // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-outgoingmaxage
   // Step 1
-  if (isnan(aMaxAge) || aMaxAge < 0.) {
+  if (std::isnan(aMaxAge) || aMaxAge < 0.) {
     aRv.ThrowRangeError("Invalid OutgoingMaxAge");
     return;
   }
@@ -94,7 +94,7 @@ void WebTransportDatagramDuplexStream::S
     double aWaterMark, ErrorResult& aRv) {
   // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-incominghighwatermark
   // Step 1
-  if (isnan(aWaterMark) || aWaterMark < 0.) {
+  if (std::isnan(aWaterMark) || aWaterMark < 0.) {
     aRv.ThrowRangeError("Invalid OutgoingMaxAge");
     return;
   }
@@ -110,7 +110,7 @@ void WebTransportDatagramDuplexStream::S
     double aWaterMark, ErrorResult& aRv) {
   // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-outgoinghighwatermark
   // Step 1
-  if (isnan(aWaterMark) || aWaterMark < 0.) {
+  if (std::isnan(aWaterMark) || aWaterMark < 0.) {
     aRv.ThrowRangeError("Invalid OutgoingHighWaterMark");
     return;
   }

File Deleted: pkgsrc/www/firefox/patches/Attic/patch-mozglue_misc_Uptime.cpp

File Deleted: pkgsrc/www/firefox/patches/Attic/patch-third-party_rust_authenticator_src_transport_netbsd_device.rs

File Added: pkgsrc/www/firefox/patches/patch-toolkit_xre_glxtest.cpp
$NetBSD: patch-toolkit_xre_glxtest.cpp,v 1.6 2023/06/04 09:26:35 ryoon Exp $

* Do not test Linux-specific entry for non-Linux.

--- toolkit/xre/glxtest.cpp.orig	2023-04-14 16:28:10.000000000 +0000
+++ toolkit/xre/glxtest.cpp
@@ -289,11 +289,15 @@ static void close_logging() {
 #define PCI_BASE_CLASS_DISPLAY 0x03
 
 static void get_pci_status() {
+#if defined(__linux__)
   if (access("/sys/bus/pci/", F_OK) != 0 &&
       access("/sys/bus/pci_express/", F_OK) != 0) {
     record_warning("cannot access /sys/bus/pci");
     return;
   }
+#else
+  return;
+#endif
 
   void* libpci = dlopen("libpci.so.3", RTLD_LAZY);
   if (!libpci) {