git: 9623a4df4224 - main - www/ungoogled-chromium: update to 107.0.5304.87

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sun, 30 Oct 2022 09:47:10 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9623a4df4224d9cc2ecee283c951b9745052694c

commit 9623a4df4224d9cc2ecee283c951b9745052694c
Author:     Robert Nagy <robert@openbsd.org>
AuthorDate: 2022-10-30 05:29:28 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2022-10-30 09:46:43 +0000

    www/ungoogled-chromium: update to 107.0.5304.87
    
    Security:       https://vuxml.freebsd.org/freebsd/b4ef02f4-549f-11ed-8ad9-3065ec8fd3ec.html
    Security:       https://vuxml.freebsd.org/freebsd/1225c888-56ea-11ed-b5c3-3065ec8fd3ec.html
---
 www/ungoogled-chromium/Makefile                    |  17 +-
 www/ungoogled-chromium/distinfo                    |  14 +-
 www/ungoogled-chromium/files/patch-BUILD.gn        |  27 +-
 ...patch-ash_display_mirror__window__controller.cc |   8 +-
 www/ungoogled-chromium/files/patch-base_BUILD.gn   |  38 +--
 ...rtition__allocator_partition__address__space.cc |   4 +-
 ...ocator_partition__allocator_partition__alloc.cc |   7 +-
 ...partition__allocator_partition__alloc__config.h |   6 +-
 ...tition__allocator_partition__alloc__constants.h |   4 +-
 ...llocator_partition__allocator_partition__page.h |   6 +-
 ...locator_partition__allocator_partition__root.cc |  14 +-
 .../files/patch-base_debug_stack__trace__posix.cc  |   8 +-
 .../patch-base_files_file__path__watcher__bsd.cc   |   4 +-
 .../files/patch-base_files_file__util__unittest.cc |   6 +-
 .../files/patch-base_i18n_icu__util.cc             |   4 +-
 .../files/patch-base_native__library__unittest.cc  |   4 +-
 .../files/patch-base_process_memory.cc             |   4 +-
 .../files/patch-base_process_process__metrics.cc   |  19 +-
 .../files/patch-base_process_process__metrics.h    |  24 +-
 ...patch-base_process_process__metrics__freebsd.cc |  26 +-
 ...e_profiler_sampling__profiler__thread__token.cc |  20 ++
 ...se_profiler_sampling__profiler__thread__token.h |  20 ++
 ...ch-base_profiler_stack__base__address__posix.cc |  44 +++
 .../patch-base_profiler_thread__delegate__posix.cc |  20 ++
 .../files/patch-base_rand__util.h                  |   4 +-
 .../files/patch-base_rand__util__posix.cc          |  20 +-
 .../patch-base_third__party_symbolize_symbolize.cc |  11 -
 ...patch-base_threading_platform__thread__posix.cc |  14 +-
 ...tch-base_trace__event_malloc__dump__provider.cc |   6 +-
 .../files/patch-build_config_compiler_BUILD.gn     |  33 ++-
 www/ungoogled-chromium/files/patch-cc_BUILD.gn     |   4 +-
 .../patch-chrome_app_chrome__main__delegate.cc     |  26 +-
 .../patch-chrome_app_generated__resources.grd      |  16 +-
 .../files/patch-chrome_app_settings__strings.grdp  |  10 +-
 ...hrome_app_theme_chrome__unscaled__resources.grd |  59 ++--
 .../patch-chrome_app_theme_theme__resources.grd    |  73 +++--
 .../files/patch-chrome_browser_about__flags.cc     |  34 +--
 .../patch-chrome_browser_browser__process__impl.cc |   8 +-
 .../patch-chrome_browser_browser__resources.grd    |  11 -
 ..._browser_chrome__browser__interface__binders.cc |  16 +-
 .../patch-chrome_browser_chrome__browser__main.cc  |   8 +-
 ...ome_browser_chrome__content__browser__client.cc |  38 ++-
 ...rome_browser_chrome__content__browser__client.h |   4 +-
 ...download_chrome__download__manager__delegate.cc |  15 +-
 ...rome_browser_download_download__file__picker.cc |   4 +-
 ...hrome_browser_download_download__item__model.cc |   8 +-
 ...t_device__trust__connector__service__factory.cc |   8 +-
 ...ser_commands_key__rotation__command__factory.cc |  10 +-
 ...tors_reporting_browser__crash__event__router.cc |   4 +-
 ...ctors_reporting_browser__crash__event__router.h |  17 +-
 .../files/patch-chrome_browser_extensions_BUILD.gn |   4 +-
 ..._private_enterprise__reporting__private__api.cc |  10 +-
 ...writer__private_removable__storage__provider.cc |   6 +-
 ...__private_passwords__private__delegate__impl.cc |  11 +
 ...extensions_api_settings__private_prefs__util.cc |  18 +-
 ..._browser_extensions_external__provider__impl.cc |   6 +-
 ...e__file__system__access__permission__context.cc |   4 +-
 .../patch-chrome_browser_flag__descriptions.cc     |  16 +-
 .../patch-chrome_browser_flag__descriptions.h      |  10 +-
 ...dia__galleries_media__file__system__registry.cc |   4 +-
 ...-chrome_browser_media_router_discovery_BUILD.gn |   4 +-
 ...wser_media_webrtc_webrtc__logging__controller.h |   6 +-
 ...chrome__browser__main__extra__parts__metrics.cc |   4 +-
 ...ser_metrics_chrome__metrics__service__client.cc |  12 +-
 ...hrome_browser_metrics_power_process__monitor.cc |   4 +-
 ...chrome_browser_metrics_power_process__monitor.h |   4 +-
 ...rowser_net_system__network__context__manager.cc |   6 +-
 ..._browser_new__tab__page_new__tab__page__util.cc |  11 +-
 ...wser_policy_browser__signin__policy__handler.cc |   4 +-
 ...onfiguration__policy__handler__list__factory.cc |  35 ++-
 .../patch-chrome_browser_prefs_browser__prefs.cc   |  35 ++-
 ...hrome__browser__main__extra__parts__profiles.cc |   6 +-
 .../patch-chrome_browser_profiles_profile__impl.cc |   6 +-
 ...h-chrome_browser_renderer__preferences__util.cc |   8 +-
 ..._resources_plugin__metadata_plugins__linux.json |  31 ---
 ..._appearance__page_appearance__browser__proxy.ts |  16 +-
 ...settings_appearance__page_appearance__page.html |   8 +-
 ...s_settings_appearance__page_appearance__page.ts |  38 ++-
 ...s_settings_autofill__page_passwords__shared.css |   4 +-
 ...ome_browser_resources_signin_signin__shared.css |   6 +-
 ...sync__confirmation_sync__confirmation__app.html |  10 +-
 ...d__content__scanning_binary__upload__service.cc |   4 +-
 ...ser_sharing_sharing__handler__registry__impl.cc |   6 +-
 ...tch-chrome_browser_sync_chrome__sync__client.cc |   4 +-
 ..._task__manager_sampling_task__group__sampler.cc |  14 +-
 .../patch-chrome_browser_themes_theme__helper.cc   |  11 +-
 .../patch-chrome_browser_themes_theme__service.cc  |  11 +-
 ...e_browser_themes_theme__service__aura__linux.cc |  40 +--
 ...hrome_browser_themes_theme__service__factory.cc |  26 +-
 .../files/patch-chrome_browser_ui_browser.h        |   4 +-
 ...rome_browser_ui_browser__command__controller.cc |  10 +-
 .../patch-chrome_browser_ui_browser__dialogs.h     |  11 -
 .../files/patch-chrome_browser_ui_chrome__pages.cc |   4 +-
 .../files/patch-chrome_browser_ui_chrome__pages.h  |   4 +-
 ...h-chrome_browser_ui_signin__view__controller.cc |   4 +-
 ...browser_ui_signin__view__controller__delegate.h |   4 +-
 ...browser_ui_startup_startup__browser__creator.cc |   6 +-
 ...r_ui_startup_startup__browser__creator__impl.cc |   4 +-
 .../files/patch-chrome_browser_ui_tab__helpers.cc  |   8 +-
 ...h-chrome_browser_ui_views_first__run__dialog.cc |   6 +-
 ...chrome_browser_ui_views_frame_browser__frame.cc |  53 ++--
 ...-chrome_browser_ui_views_frame_browser__frame.h |  29 ++
 ...er__non__client__frame__view__factory__views.cc |  10 +-
 ...-chrome_browser_ui_views_frame_browser__view.cc |   4 +-
 ..._ui_views_frame_opaque__browser__frame__view.cc |  13 +-
 ...r_ui_views_frame_opaque__browser__frame__view.h |  13 +-
 ...paque__browser__frame__view__layout__delegate.h |  20 ++
 ...es_signin__view__controller__delegate__views.cc |  15 +-
 ...les_signin__view__controller__delegate__views.h |   4 +-
 ..._browser_ui_views_tabs_tab__drag__controller.cc |  10 +-
 ...r_ui_views_tabs_tab__hover__card__controller.cc |  10 +-
 ...i_web__applications_app__browser__controller.cc |  11 -
 .../patch-chrome_browser_ui_webui_about__ui.cc     |   6 +-
 ...i_webui_chrome__web__ui__controller__factory.cc |  14 +-
 ...rowser_ui_webui_settings_appearance__handler.cc |  21 +-
 ...browser_ui_webui_settings_appearance__handler.h |  11 -
 ...tings_settings__localized__strings__provider.cc |  35 ++-
 ...lications_os__integration_web__app__shortcut.cc |  54 ++--
 ...plications_os__integration_web__app__shortcut.h |  10 +-
 ..._os__integration_web__app__shortcut__manager.cc |   4 +-
 ...thn_chrome__authenticator__request__delegate.cc |  10 +-
 .../files/patch-chrome_common_chrome__features.cc  |  14 +-
 .../files/patch-chrome_common_chrome__features.h   |  12 +-
 .../files/patch-chrome_common_chrome__paths.cc     |   4 +-
 ...ch-chrome_common_media_cdm__host__file__path.cc |   4 +-
 .../files/patch-chrome_common_pref__names.cc       |  16 +-
 .../files/patch-chrome_common_pref__names.h        |  20 +-
 .../files/patch-chrome_common_url__constants.cc    |   4 +-
 .../files/patch-chrome_common_url__constants.h     |   4 +-
 .../patch-chrome_common_webui__url__constants.cc   |  12 +-
 .../patch-chrome_common_webui__url__constants.h    |   8 +-
 ...ome_renderer_chrome__render__frame__observer.cc |   4 +-
 ...vices_printing_print__backend__service__impl.cc |   4 +-
 .../files/patch-chrome_test_BUILD.gn               |   4 +-
 ...chrome_updater_device__management_dm__client.cc |   4 +-
 .../files/patch-chrome_updater_installer.cc        |   4 +-
 .../files/patch-chrome_updater_util.cc             |   4 +-
 ...utofill_core_browser_personal__data__manager.cc |   4 +-
 ...ill_core_common_autofill__payments__features.cc |   4 +-
 ...components_cast__channel_cast__message__util.cc |   4 +-
 ...e__engagement_public_feature__configurations.cc |   4 +-
 ...eature__engagement_public_feature__constants.cc |  17 +-
 ...feature__engagement_public_feature__constants.h |  15 +-
 ...nts_feature__engagement_public_feature__list.cc |   8 +-
 ...ents_feature__engagement_public_feature__list.h |  14 +-
 .../files/patch-components_metrics_motherboard.cc  |   4 +-
 ...zation__guide_core_optimization__guide__util.cc |   4 +-
 ...aint__preview_browser_paint__preview__client.cc |   4 +-
 ...ger_core_browser_sync_password__sync__bridge.cc |   6 +-
 ...ager_core_common_password__manager__features.cc |   4 +-
 ...nager_core_common_password__manager__features.h |   8 +-
 ...ponents_policy_resources_policy__templates.json |  52 ++--
 ..._default__model_cross__device__user__segment.cc |  11 +
 ...onents_translate_core_common_translate__util.cc |   4 +-
 ...isplay__embedder_skia__output__surface__impl.cc |   4 +-
 ...omponents_viz_service_display_skia__renderer.cc |   4 +-
 .../files/patch-content_app_content__main.cc       |   4 +-
 ...atch-content_app_content__main__runner__impl.cc |  24 +-
 .../files/patch-content_browser_BUILD.gn           |   4 +-
 .../patch-content_browser_browser__main__loop.cc   |   8 +-
 ..._compositor_viz__process__transport__factory.cc |   4 +-
 ...ent_browser_download_download__manager__impl.cc |   8 +-
 ...patch-content_browser_gpu_gpu__process__host.cc |  15 +-
 ...wser_media_frameless__media__interface__proxy.h |   4 +-
 ...ontent_browser_media_media__interface__proxy.cc |   6 +-
 ...r_renderer__host_render__process__host__impl.cc |  16 +-
 ...er_renderer__host_render__process__host__impl.h |   8 +-
 ...wser_renderer__host_render__view__host__impl.cc |   4 +-
 ...derer__host_render__widget__host__view__aura.cc |  16 +-
 ...h-content_browser_utility__sandbox__delegate.cc |   4 +-
 ...wser_web__contents_web__contents__view__aura.cc |   4 +-
 .../files/patch-content_common_BUILD.gn            |   4 +-
 .../patch-content_gpu_gpu__sandbox__hook__linux.cc |  14 +-
 ...-content_public_browser_render__process__host.h |   4 +-
 ...t_public_common_common__param__traits__macros.h |   4 +-
 ...atch-content_public_common_content__features.cc |   8 +-
 ...patch-content_public_common_content__features.h |   4 +-
 ...atch-content_public_common_content__switches.cc |   6 +-
 ...patch-content_public_common_content__switches.h |   6 +-
 ...ntent_public_test_mock__render__process__host.h |   4 +-
 ...content_renderer_media_render__media__client.cc |  12 +-
 ...patch-content_renderer_render__process__impl.cc |  10 +-
 .../patch-content_renderer_render__thread__impl.cc |   8 +-
 ...ent_renderer_renderer__blink__platform__impl.cc |   6 +-
 .../files/patch-content_shell_BUILD.gn             |   4 +-
 ...atch-content_shell_app_shell__main__delegate.cc |   4 +-
 ...nt_shell_browser_shell__browser__main__parts.cc |   4 +-
 ...hell_utility_shell__content__utility__client.cc |   6 +-
 .../files/patch-content_test_BUILD.gn              |   6 +-
 .../files/patch-content_zygote_zygote__linux.cc    |   4 +-
 .../patch-extensions_browser_extension__prefs.cc   |   4 +-
 ...image_angle__vulkan__image__backing__factory.cc |   4 +-
 ...e_shared__image_external__vk__image__backing.cc |   4 +-
 ...ce_shared__image_gl__texture__image__backing.cc |   4 +-
 ...service_shared__image_shared__image__factory.cc |  10 +-
 ...__image_wrapped__sk__image__backing__factory.cc |   8 +-
 ...ommand__buffer_service_webgpu__decoder__impl.cc |   4 +-
 .../files/patch-gpu_ipc_service_gpu__init.cc       |  34 ++-
 ...ss_lib_browser_headless__web__contents__impl.cc |   4 +-
 .../files/patch-media_audio_BUILD.gn               |   4 +-
 .../files/patch-media_audio_audio__features.cc     |  11 -
 ...atch-media_audio_sndio_audio__manager__sndio.cc |  12 +-
 .../files/patch-media_base_media__switches.cc      |  10 +-
 .../files/patch-media_base_media__switches.h       |   4 +-
 .../files/patch-media_base_supported__types.cc     |  10 +-
 .../files/patch-media_base_video__frame.cc         |  16 +-
 .../files/patch-media_base_video__frame.h          |  12 +-
 .../files/patch-media_cdm_cdm__paths__unittest.cc  |   6 +-
 ...-media_gpu_chromeos_video__decoder__pipeline.cc |   6 +-
 ...dware__video__decoding__sandbox__hook__linux.cc |   4 +-
 .../files/patch-media_media__options.gni           |   6 +-
 ...media_mojo_mojom_video__frame__mojom__traits.cc |   4 +-
 ...ideo_gpu__memory__buffer__video__frame__pool.cc |  18 +-
 ...ia_video_video__encode__accelerator__adapter.cc |  12 +-
 ...eo_video__encode__accelerator__adapter__test.cc |  14 +-
 .../files/patch-mojo_core_BUILD.gn                 |   4 +-
 .../files/patch-mojo_core_channel.cc               |   4 +-
 www/ungoogled-chromium/files/patch-net_BUILD.gn    |  18 +-
 .../files/patch-net_dns_BUILD.gn                   |   8 +-
 .../files/patch-net_dns_host__resolver__manager.cc |   4 +-
 .../files/patch-net_dns_public_BUILD.gn            |   4 +-
 ...xy__resolution_proxy__config__service__linux.cc |   4 +-
 .../files/patch-net_socket_udp__socket__posix.cc   |   8 +-
 .../files/patch-net_third__party_quiche_BUILD.gn   |   6 +-
 ...patch-net_url__request_url__request__context.cc |   4 +-
 .../patch-net_url__request_url__request__context.h |   4 +-
 ..._url__request_url__request__context__builder.cc |   4 +-
 .../files/patch-pdf_pdfium_pdfium__engine.cc       |   4 +-
 ...ch-remoting_host_basic__desktop__environment.cc |  11 +
 .../files/patch-remoting_host_ipc__constants.cc    |  23 +-
 ...ch-remoting_host_me2me__desktop__environment.cc |  22 +-
 .../files/patch-remoting_host_policy__watcher.cc   |  12 +-
 .../patch-remoting_host_remoting__me2me__host.cc   |  34 +--
 .../patch-remoting_host_setup_start__host__main.cc |   8 +-
 ...hn_remote__webauthn__caller__security__utils.cc |   4 +-
 ...ices_cert__verifier_cert__verifier__creation.cc |   6 +-
 ...ch-services_device_hid_hid__connection__fido.cc | 141 ++++++----
 ...tch-services_device_hid_hid__connection__fido.h |  55 ++--
 .../patch-services_device_hid_hid__service.cc      |  12 +-
 ...patch-services_device_hid_hid__service__fido.cc | 307 +++++++++++++--------
 .../patch-services_device_hid_hid__service__fido.h |  64 +++--
 .../files/patch-services_device_usb_BUILD.gn       |  20 +-
 .../patch-services_device_usb_usb__service.cc      |  22 ++
 ...patch-services_device_usb_usb__service__fake.cc |  54 ++++
 .../patch-services_device_usb_usb__service__fake.h |  51 ++++
 .../files/patch-services_network_BUILD.gn          |   4 +-
 .../files/patch-third__party_angle_BUILD.gn        |  10 +-
 ...tch-third__party_angle_src_libANGLE_Display.cpp |   4 +-
 ...third__party_angle_src_libANGLE_formatutils.cpp |   4 +-
 ...rty_angle_src_libANGLE_renderer_driver__utils.h |   4 +-
 ...h-third__party_blink_public_platform_platform.h |   4 +-
 ...blink_renderer_core_exported_web__view__impl.cc |   6 +-
 ...y_blink_renderer_core_frame_web__frame__test.cc |   6 +-
 ...arty_blink_renderer_core_layout_layout__view.cc |   6 +-
 ...party_blink_renderer_core_paint_paint__layer.cc |   4 +-
 ..._renderer_core_scroll_scrollbar__theme__aura.cc |   6 +-
 ..._audio_audio__renderer__mixer__manager__test.cc |   4 +-
 ...peerconnection_webrtc__audio__renderer__test.cc |   4 +-
 ...odules_webgl_webgl__rendering__context__base.cc |   4 +-
 ...modules_webgl_webgl__webcodecs__video__frame.cc |   4 +-
 ...h-third__party_blink_renderer_platform_BUILD.gn |   4 +-
 ...er_platform_graphics_video__frame__submitter.cc |   4 +-
 ..._peerconnection_rtc__video__encoder__factory.cc |  17 ++
 ...derer_platform_runtime__enabled__features.json5 |  22 +-
 ...nk_renderer_platform_scheduler_common_thread.cc |   4 +-
 ...widget_compositing_categorized__worker__pool.cc |   4 +-
 ...ird__party_boringssl_src_include_openssl_base.h |   4 +-
 .../files/patch-third__party_libxml_src_dict.c     |   8 +-
 ...-third__party_perfetto_src_base_unix__socket.cc |   4 +-
 ...patch-third__party_swiftshader_src_WSI_BUILD.gn |   4 +-
 ...eps_vulkan-loader_src_loader_get__environment.c |  20 --
 ...eps_vulkan-loader_src_loader_get__environment.h |  16 --
 ...ps_vulkan-loader_src_loader_stack__allocation.h |  16 --
 ...vulkan-loader_src_loader_vk__loader__platform.h |  46 +--
 ...dation-layers_src_layers_vk__loader__platform.h |  11 -
 ...n-validation-layers_src_layers_vk__mem__alloc.h |  11 +-
 .../files/patch-third__party_wayland_features.gni  |   6 +-
 .../files/patch-third__party_webrtc_BUILD.gn       |   4 +-
 ...rd__party_webrtc_modules_audio__device_BUILD.gn |   4 +-
 .../patch-third__party_webrtc_rtc__base_BUILD.gn   |   4 +-
 .../patch-third__party_webrtc_rtc__base_network.cc |   4 +-
 ...ty_webrtc_rtc__base_physical__socket__server.cc |  16 +-
 ...rty_webrtc_rtc__base_physical__socket__server.h |   6 +-
 .../files/patch-ui_aura_screen__ozone.h            |   4 +-
 ...patch-ui_base_ime_dummy__text__input__client.cc |   4 +-
 .../patch-ui_base_test_skia__gold__pixel__diff.cc  |   4 +-
 .../files/patch-ui_base_ui__base__types.h          |  11 +
 .../files/patch-ui_base_webui_web__ui__util.cc     |   4 +-
 .../files/patch-ui_base_x_x11__cursor__loader.cc   |  10 +-
 .../files/patch-ui_color_color__id.h               |   4 +-
 .../files/patch-ui_color_color__provider__utils.cc |  11 +
 .../files/patch-ui_color_system__theme.h           |  11 +
 .../files/patch-ui_compositor_compositor.cc        |   4 +-
 .../files/patch-ui_compositor_compositor.h         |   4 +-
 .../files/patch-ui_display_screen.cc               |   4 +-
 .../files/patch-ui_display_screen.h                |   6 +-
 .../files/patch-ui_events_event.cc                 |   4 +-
 www/ungoogled-chromium/files/patch-ui_gfx_BUILD.gn |   4 +-
 .../files/patch-ui_gl_gl__implementation.cc        |  11 +
 ...i_message__center_views_message__popup__view.cc |   4 +-
 ...i_ozone_test_mock__platform__window__delegate.h |  11 +
 ..._platform__window_platform__window__delegate.cc |  11 +
 ...i_platform__window_platform__window__delegate.h |  11 +
 .../patch-ui_views_controls_textfield_textfield.cc |  14 +-
 ...__aura_desktop__window__tree__host__platform.cc |   4 +-
 .../files/patch-ui_views_widget_widget.cc          |  12 +-
 .../files/patch-ui_views_widget_widget.h           |   4 +-
 .../patch-ui_views_window_custom__frame__view.cc   |   4 +-
 www/ungoogled-chromium/files/patch-v8_BUILD.gn     |   8 +-
 .../files/patch-v8_include_v8-internal.h           |   4 +-
 .../files/patch-v8_src_api_api.cc                  |   6 +-
 .../files/patch-v8_src_base_platform_memory.h      |  16 ++
 .../patch-v8_src_base_platform_platform-posix.cc   |  21 +-
 .../files/patch-v8_src_base_small-vector.h         |  11 +
 ...piler_backend_ia32_instruction-selector-ia32.cc |   6 +-
 ...src_wasm_baseline_ia32_liftoff-assembler-ia32.h |  26 +-
 316 files changed, 2243 insertions(+), 1728 deletions(-)

diff --git a/www/ungoogled-chromium/Makefile b/www/ungoogled-chromium/Makefile
index 378b08edbbc2..f38b053df7b5 100644
--- a/www/ungoogled-chromium/Makefile
+++ b/www/ungoogled-chromium/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	ungoogled-chromium
-PORTVERSION=	106.0.5249.119
-PORTREVISION=	1
-UGVERSION=	106.0.5249.103-1
+PORTVERSION=	107.0.5304.87
+UGVERSION=	${DISTVERSION}-1
 CATEGORIES=	www wayland
 MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/ \
 		https://nerd.hu/distfiles/:external
@@ -31,7 +30,9 @@ BUILD_DEPENDS=	bash:shells/bash \
 		${LOCALBASE}/share/usbids/usb.ids:misc/usbids \
 		${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \
 		${LOCALBASE}/include/va/va.h:multimedia/libva \
-		${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri
+		${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri \
+		${LOCALBASE}/libdata/pkgconfig/Qt5Core.pc:devel/qt5-core \
+		${LOCALBASE}/libdata/pkgconfig/Qt5Widgets.pc:x11-toolkits/qt5-widgets
 
 LIB_DEPENDS=	libatk-bridge-2.0.so:accessibility/at-spi2-atk \
 		libatspi.so:accessibility/at-spi2-core \
@@ -70,7 +71,7 @@ RUN_DEPENDS=	xdg-open:devel/xdg-utils \
 		noto-basic>0:x11-fonts/noto-basic
 
 USES=		bison compiler:c++17-lang cpe desktop-file-utils gl gnome iconv jpeg \
-		localbase:ldflags ninja perl5 pkgconfig python:3.7+,build shebangfix \
+		localbase:ldflags ninja perl5 pkgconfig python:3.7+,build qt:5 shebangfix \
 		tar:xz xorg
 
 CPE_VENDOR=	google
@@ -81,6 +82,7 @@ USE_LDCONFIG=	${DATADIR}
 USE_PERL5=	build
 USE_XORG=	x11 xcb xcomposite xcursor xext xdamage xfixes xi \
 		xorgproto xrandr xrender xscrnsaver xtst
+USE_QT=		buildtools:build
 SHEBANG_FILES=	chrome/tools/build/linux/chrome-wrapper buildtools/linux64/clang-format
 
 MAKE_ARGS=	-C out/${BUILDTYPE}
@@ -111,6 +113,7 @@ GN_ARGS+=	fatal_linker_warnings=false \
 		use_system_libjpeg=true \
 		use_system_libwayland=true \
 		use_system_wayland_scanner=true \
+		use_system_libwayland_server=true \
 		use_udev=false \
 		extra_cxxflags="${CXXFLAGS}" \
 		extra_ldflags="${LDFLAGS}"
@@ -220,6 +223,10 @@ TEST_ALL_TARGET=	${TEST_TARGETS}
 .include <bsd.port.options.mk>
 .include <bsd.port.pre.mk>
 
+.if ${OSREL} == "12.3"
+BROKEN=		does not compile, libc++ too old
+.endif
+
 .if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
 IGNORE=		you have selected HEIMDAL_BASE but do not have Heimdal installed in base
 .endif
diff --git a/www/ungoogled-chromium/distinfo b/www/ungoogled-chromium/distinfo
index d476a779db6d..9acc76970753 100644
--- a/www/ungoogled-chromium/distinfo
+++ b/www/ungoogled-chromium/distinfo
@@ -1,9 +1,9 @@
-TIMESTAMP = 1665572929
-SHA256 (chromium-106.0.5249.119.tar.xz) = 0f091b4950e120d5c3e23ab391bacfdb6ce8eb8d0acab55e9dae1a8c247dd192
-SIZE (chromium-106.0.5249.119.tar.xz) = 1611067204
-SHA256 (ungoogled-chromium-106.0.5249.103-1.tar.gz) = d7a0f692a73dc5ad2149a4b87ee5e4eceff92f9c042e2252bd568808c7d72d90
-SIZE (ungoogled-chromium-106.0.5249.103-1.tar.gz) = 664853
-SHA256 (chromium-106.0.5249.119-testdata.tar.xz) = b07d5729ca619226da7ef6d9b380554eb274708e7a85d0964419bf803871f299
-SIZE (chromium-106.0.5249.119-testdata.tar.xz) = 265351916
+TIMESTAMP = 1667066021
+SHA256 (chromium-107.0.5304.87.tar.xz) = 6c0e00c186e22a1be29177ea410ba40ff0bf65f3ded67a345eb5b17f76c93c59
+SIZE (chromium-107.0.5304.87.tar.xz) = 1688896996
+SHA256 (ungoogled-chromium-107.0.5304.87-1.tar.gz) = de6f84f9a1c49fb316f4f4ce1c1fde8e0710a6a196f0bf11dd403b9a53f65c12
+SIZE (ungoogled-chromium-107.0.5304.87-1.tar.gz) = 670222
+SHA256 (chromium-107.0.5304.87-testdata.tar.xz) = 9b4ebb4c1d5bcab70f4eb0738cc2cc9a6545780f9b4d8f7ee1abb4708fa09b35
+SIZE (chromium-107.0.5304.87-testdata.tar.xz) = 266527724
 SHA256 (test_fonts-336e775eec536b2d785cc80eff6ac39051931286.tar.gz) = a2ca2962daf482a8f943163541e1c73ba4b2694fabcd2510981f2db4eda493c8
 SIZE (test_fonts-336e775eec536b2d785cc80eff6ac39051931286.tar.gz) = 32624734
diff --git a/www/ungoogled-chromium/files/patch-BUILD.gn b/www/ungoogled-chromium/files/patch-BUILD.gn
index 0508cd496d04..fbab6f7809b7 100644
--- a/www/ungoogled-chromium/files/patch-BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-BUILD.gn
@@ -1,6 +1,6 @@
---- BUILD.gn.orig	2022-10-01 07:40:07 UTC
+--- BUILD.gn.orig	2022-10-29 17:50:56 UTC
 +++ BUILD.gn
-@@ -53,7 +53,7 @@ declare_args() {
+@@ -59,7 +59,7 @@ declare_args() {
    root_extra_deps = []
  }
  
@@ -9,7 +9,7 @@
    # An official (maximally optimized!) component (optimized for build times)
    # build doesn't make sense and usually doesn't work.
    assert(!is_component_build)
-@@ -83,7 +83,6 @@ group("gn_all") {
+@@ -89,7 +89,6 @@ group("gn_all") {
      "//codelabs",
      "//components:components_unittests",
      "//components/gwp_asan:gwp_asan_unittests",
@@ -17,7 +17,7 @@
      "//net:net_unittests",
      "//sandbox:sandbox_unittests",
      "//services:services_unittests",
-@@ -441,7 +440,7 @@ group("gn_all") {
+@@ -447,7 +446,7 @@ group("gn_all") {
      ]
    }
  
@@ -26,7 +26,7 @@
      deps += [
        "//third_party/breakpad:breakpad_unittests",
        "//third_party/breakpad:core-2-minidump",
-@@ -634,6 +633,15 @@ group("gn_all") {
+@@ -640,6 +639,15 @@ group("gn_all") {
      deps += [ "//gpu/tools/compositor_model_bench" ]
    }
  
@@ -42,7 +42,7 @@
    if (is_mac) {
      deps += [
        "//third_party/breakpad:crash_inspector",
-@@ -682,7 +690,7 @@ group("gn_all") {
+@@ -688,7 +696,7 @@ group("gn_all") {
          host_os == "win") {
        deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
      }
@@ -51,7 +51,16 @@
      deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
    }
  
-@@ -1194,7 +1202,7 @@ if (!is_ios) {
+@@ -1115,7 +1123,7 @@ if (!is_ios) {
+     ]
+   }
+ 
+-  if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android && !is_castos) {
++  if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android && !is_castos && !is_bsd) {
+     # WPT Webdriver tests runner
+     # chrome/test/chromedriver/test/run_webdriver_tests.py
+     script_test("webdriver_wpt_tests") {
+@@ -1210,7 +1218,7 @@ if (!is_ios) {
        data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
      }
  
@@ -60,7 +69,7 @@
        data_deps +=
            [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
      }
-@@ -1203,7 +1211,7 @@ if (!is_ios) {
+@@ -1219,7 +1227,7 @@ if (!is_ios) {
        data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
      }
  
@@ -69,7 +78,7 @@
        data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
      }
  
-@@ -1646,7 +1654,7 @@ group("chromium_builder_perf") {
+@@ -1660,7 +1668,7 @@ group("chromium_builder_perf") {
        data_deps += [ "//chrome/test:performance_browser_tests" ]
      }
  
diff --git a/www/ungoogled-chromium/files/patch-ash_display_mirror__window__controller.cc b/www/ungoogled-chromium/files/patch-ash_display_mirror__window__controller.cc
index a59bc463b2a5..860e3163ba7d 100644
--- a/www/ungoogled-chromium/files/patch-ash_display_mirror__window__controller.cc
+++ b/www/ungoogled-chromium/files/patch-ash_display_mirror__window__controller.cc
@@ -1,8 +1,8 @@
---- ash/display/mirror_window_controller.cc.orig	2022-10-01 07:40:07 UTC
+--- ash/display/mirror_window_controller.cc.orig	2022-10-29 17:50:56 UTC
 +++ ash/display/mirror_window_controller.cc
-@@ -296,7 +296,11 @@ void MirrorWindowController::UpdateWindow(
-                          return info.id() == iter->first;
-                        }) == display_info_list.end()) {
+@@ -295,7 +295,11 @@ void MirrorWindowController::UpdateWindow(
+       if (!base::Contains(display_info_list, iter->first,
+                           &display::ManagedDisplayInfo::id)) {
          CloseAndDeleteHost(iter->second, true);
 +#if defined(__llvm__)
 +        mirroring_host_info_map_.erase(iter++);
diff --git a/www/ungoogled-chromium/files/patch-base_BUILD.gn b/www/ungoogled-chromium/files/patch-base_BUILD.gn
index 6744bd068762..c8aca0266eef 100644
--- a/www/ungoogled-chromium/files/patch-base_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-base_BUILD.gn
@@ -1,4 +1,4 @@
---- base/BUILD.gn.orig	2022-10-01 07:40:07 UTC
+--- base/BUILD.gn.orig	2022-10-29 17:50:56 UTC
 +++ base/BUILD.gn
 @@ -162,7 +162,7 @@ buildflag_header("ios_cronet_buildflags") {
    flags = [ "CRONET_BUILD=$is_cronet_build" ]
@@ -9,29 +9,31 @@
  buildflag_header("message_pump_buildflags") {
    header = "message_pump_buildflags.h"
    header_dir = "base/message_loop"
-@@ -1031,7 +1031,7 @@ mixed_component("base") {
+@@ -1035,7 +1035,7 @@ mixed_component("base") {
        "timer/hi_res_timer_manager_posix.cc",
      ]
  
 -    if (!is_nacl && !is_apple) {
 +    if (!is_nacl && !is_apple && !is_bsd) {
        sources += [
-         "profiler/stack_copier_signal.cc",
-         "profiler/stack_copier_signal.h",
-@@ -1040,6 +1040,12 @@ mixed_component("base") {
+         "profiler/stack_base_address_posix.cc",
+         "profiler/stack_base_address_posix.h",
+@@ -1046,6 +1046,14 @@ mixed_component("base") {
          "profiler/thread_delegate_posix.h",
        ]
      }
 +
 +    if (is_bsd) {
 +      sources += [
++        "profiler/stack_base_address_posix.cc",
++        "profiler/stack_base_address_posix.h",
 +        "profiler/stack_sampler_posix.cc",
 +      ]
 +    }
    }
  
    if (is_win) {
-@@ -1541,11 +1547,23 @@ mixed_component("base") {
+@@ -1557,11 +1565,23 @@ mixed_component("base") {
    # Needed for <atomic> if using newer C++ library than sysroot, except if
    # building inside the cros_sdk environment - use host_toolchain as a
    # more robust check for this.
@@ -55,17 +57,17 @@
 +
    if (use_allocator_shim) {
      sources += [
-       "allocator/allocator_shim.cc",
-@@ -1573,7 +1591,7 @@ mixed_component("base") {
+       "allocator/partition_allocator/shim/allocator_shim.cc",
+@@ -1589,7 +1609,7 @@ mixed_component("base") {
        ]
        configs += [ "//base/allocator:mac_no_default_new_delete_symbols" ]
      }
 -    if (is_chromeos || is_linux) {
 +    if (is_chromeos || (is_linux && !is_bsd)) {
        sources += [
-         "allocator/allocator_shim_override_cpp_symbols.h",
-         "allocator/allocator_shim_override_glibc_weak_symbols.h",
-@@ -1629,7 +1647,7 @@ mixed_component("base") {
+         "allocator/partition_allocator/shim/allocator_shim_override_cpp_symbols.h",
+         "allocator/partition_allocator/shim/allocator_shim_override_glibc_weak_symbols.h",
+@@ -1643,7 +1663,7 @@ mixed_component("base") {
  
    # Allow more direct string conversions on platforms with native utf8
    # strings
@@ -74,7 +76,7 @@
      defines += [ "SYSTEM_NATIVE_UTF8" ]
    }
  
-@@ -2211,6 +2229,42 @@ mixed_component("base") {
+@@ -2216,6 +2236,42 @@ mixed_component("base") {
      }
    }
  
@@ -117,7 +119,7 @@
    # iOS
    if (is_ios) {
      sources -= [
-@@ -2310,7 +2364,7 @@ mixed_component("base") {
+@@ -2313,7 +2369,7 @@ mixed_component("base") {
    }
  
    if (dep_libevent) {
@@ -126,7 +128,7 @@
    }
  
    if (use_libevent) {
-@@ -3545,7 +3599,7 @@ test("base_unittests") {
+@@ -3565,7 +3621,7 @@ test("base_unittests") {
      }
    }
  
@@ -135,16 +137,16 @@
      sources += [
        "debug/proc_maps_linux_unittest.cc",
        "files/scoped_file_linux_unittest.cc",
-@@ -3593,7 +3647,7 @@ test("base_unittests") {
+@@ -3613,7 +3669,7 @@ test("base_unittests") {
        "posix/file_descriptor_shuffle_unittest.cc",
        "posix/unix_domain_socket_unittest.cc",
      ]
 -    if (!is_nacl && !is_apple) {
 +    if (!is_nacl && !is_apple && !is_bsd) {
        sources += [
+         "profiler/stack_base_address_posix_unittest.cc",
          "profiler/stack_copier_signal_unittest.cc",
-         "profiler/thread_delegate_posix_unittest.cc",
-@@ -3603,7 +3657,7 @@ test("base_unittests") {
+@@ -3624,7 +3680,7 @@ test("base_unittests") {
  
    # Allow more direct string conversions on platforms with native utf8
    # strings
@@ -153,7 +155,7 @@
      defines += [ "SYSTEM_NATIVE_UTF8" ]
    }
  
-@@ -3791,7 +3845,7 @@ test("base_unittests") {
+@@ -3812,7 +3868,7 @@ test("base_unittests") {
      }
    }
  
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__address__space.cc b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__address__space.cc
index eb97978cde25..b415ff48e785 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__address__space.cc
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__address__space.cc
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/partition_address_space.cc.orig	2022-10-01 07:40:07 UTC
+--- base/allocator/partition_allocator/partition_address_space.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/allocator/partition_allocator/partition_address_space.cc
-@@ -238,7 +238,7 @@ void PartitionAddressSpace::UninitConfigurablePoolForT
+@@ -261,7 +261,7 @@ void PartitionAddressSpace::UninitConfigurablePoolForT
    setup_.configurable_pool_ = 0;
  }
  
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc
index 3d4b7cced3c8..e755ede14f65 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc
@@ -1,17 +1,16 @@
---- base/allocator/partition_allocator/partition_alloc.cc.orig	2022-10-01 07:40:07 UTC
+--- base/allocator/partition_allocator/partition_alloc.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/allocator/partition_allocator/partition_alloc.cc
-@@ -63,8 +63,14 @@ void PartitionAllocGlobalInit(OomFunction on_out_of_me
+@@ -67,8 +67,13 @@ void PartitionAllocGlobalInit(OomFunction on_out_of_me
        "maximum direct mapped allocation");
  
    // Check that some of our zanier calculations worked out as expected.
 +#if defined(__i386__) && defined(OS_FREEBSD)
-+  // alignof(std::max_align_t) is only 4 on FreeBSD/i386
 +  static_assert(internal::kSmallestBucket >= internal::kAlignment,
 +                "generic smallest bucket");
 +#else
    static_assert(internal::kSmallestBucket == internal::kAlignment,
                  "generic smallest bucket");
 +#endif
-   static_assert(internal::kMaxBucketed == 917504, "generic max bucketed");
+   static_assert(internal::kMaxBucketed == 983040, "generic max bucketed");
    STATIC_ASSERT_OR_PA_CHECK(
        internal::MaxSystemPagesPerRegularSlotSpan() <= 16,
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h
index bf7b17bdeace..bbec42e01755 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h
@@ -1,4 +1,4 @@
---- base/allocator/partition_allocator/partition_alloc_config.h.orig	2022-10-01 07:40:07 UTC
+--- base/allocator/partition_allocator/partition_alloc_config.h.orig	2022-10-29 17:50:56 UTC
 +++ base/allocator/partition_allocator/partition_alloc_config.h
 @@ -76,7 +76,7 @@ static_assert(sizeof(void*) != 8, "");
  
@@ -9,7 +9,7 @@
  #define PA_HAS_LINUX_KERNEL
  #endif
  
-@@ -195,7 +195,7 @@ constexpr bool kUseLazyCommit = false;
+@@ -197,7 +197,7 @@ constexpr bool kUseLazyCommit = false;
  
  // On these platforms, lock all the partitions before fork(), and unlock after.
  // This may be required on more platforms in the future.
@@ -18,7 +18,7 @@
  #define PA_HAS_ATFORK_HANDLER
  #endif
  
-@@ -235,7 +235,7 @@ constexpr bool kUseLazyCommit = false;
+@@ -238,7 +238,7 @@ constexpr bool kUseLazyCommit = false;
  //
  // Also enabled on ARM64 macOS, as the 16kiB pages on this platform lead to
  // larger slot spans.
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__constants.h b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__constants.h
index 0ba2a5b4a10a..60f99b3e1e75 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__constants.h
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc__constants.h
@@ -1,4 +1,4 @@
---- base/allocator/partition_allocator/partition_alloc_constants.h.orig	2022-10-01 07:40:07 UTC
+--- base/allocator/partition_allocator/partition_alloc_constants.h.orig	2022-10-29 17:50:56 UTC
 +++ base/allocator/partition_allocator/partition_alloc_constants.h
 @@ -91,7 +91,7 @@ PartitionPageShift() {
    return 18;  // 256 KiB
@@ -9,7 +9,7 @@
  PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR PA_ALWAYS_INLINE size_t
  PartitionPageShift() {
    return PageAllocationGranularityShift() + 2;
-@@ -270,7 +270,7 @@ constexpr size_t kNumPools = 3;
+@@ -272,7 +272,7 @@ constexpr size_t kNumPools = 3;
  // Special-case Android and iOS, which incur test failures with larger
  // GigaCage. Regardless, allocating >8GiB with malloc() on these platforms is
  // unrealistic as of 2022.
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__page.h b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__page.h
index b395f9ec7f7d..7a074e66b136 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__page.h
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__page.h
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/partition_page.h.orig	2022-10-01 07:40:07 UTC
+--- base/allocator/partition_allocator/partition_page.h.orig	2022-10-29 17:50:56 UTC
 +++ base/allocator/partition_allocator/partition_page.h
-@@ -131,13 +131,14 @@ struct SlotSpanMetadata {
+@@ -138,13 +138,14 @@ struct SlotSpanMetadata {
    PartitionBucket<thread_safe>* const bucket = nullptr;
  
    // CHECK()ed in AllocNewSlotSpan().
@@ -17,7 +17,7 @@
    // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is
    // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code,
    // so we use the 16 kiB maximum (64 kiB will crash).
-@@ -151,7 +152,9 @@ struct SlotSpanMetadata {
+@@ -158,7 +159,9 @@ struct SlotSpanMetadata {
  #endif  // defined(PA_HAS_64_BITS_POINTERS) && BUILDFLAG(IS_APPLE)
    // The maximum number of bits needed to cover all currently supported OSes.
    static constexpr size_t kMaxSlotsPerSlotSpanBits = 13;
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__root.cc b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__root.cc
index 9e911ca9bc1b..dbb18b016aee 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__root.cc
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__root.cc
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/partition_root.cc.orig	2022-10-01 07:40:07 UTC
+--- base/allocator/partition_allocator/partition_root.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/allocator/partition_allocator/partition_root.cc
-@@ -33,7 +33,7 @@
+@@ -41,7 +41,7 @@
  #include "wow64apiset.h"
  #endif
  
@@ -9,7 +9,7 @@
  #include <pthread.h>
  #endif
  
-@@ -230,7 +230,7 @@ void PartitionAllocMallocInitOnce() {
+@@ -238,7 +238,7 @@ void PartitionAllocMallocInitOnce() {
    if (!g_global_init_called.compare_exchange_strong(expected, true))
      return;
  
@@ -18,16 +18,16 @@
    // When fork() is called, only the current thread continues to execute in the
    // child process. If the lock is held, but *not* by this thread when fork() is
    // called, we have a deadlock.
-@@ -321,7 +321,7 @@ static size_t PartitionPurgeSlotSpan(
+@@ -331,7 +331,7 @@ static size_t PartitionPurgeSlotSpan(
    constexpr size_t kMaxSlotCount =
        (PartitionPageSize() * kMaxPartitionPagesPerRegularSlotSpan) /
-       MaxPurgeableSlotSize();
+       MinPurgeableSlotSize();
 -#elif BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64))
-+#elif BUILDFLAG(IS_APPLE) || ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) && defined(ARCH_CPU_ARM64))
++#elif BUILDFLAG(IS_APPLE) || ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64))
    // It's better for slot_usage to be stack-allocated and fixed-size, which
    // demands that its size be constexpr. On IS_APPLE and Linux on arm64,
    // PartitionPageSize() is always SystemPageSize() << 2, so regardless of
-@@ -709,7 +709,7 @@ void PartitionRoot<thread_safe>::Init(PartitionOptions
+@@ -734,7 +734,7 @@ void PartitionRoot<thread_safe>::Init(PartitionOptions
      // apple OSes.
      PA_CHECK((internal::SystemPageSize() == (size_t{1} << 12)) ||
               (internal::SystemPageSize() == (size_t{1} << 14)));
diff --git a/www/ungoogled-chromium/files/patch-base_debug_stack__trace__posix.cc b/www/ungoogled-chromium/files/patch-base_debug_stack__trace__posix.cc
index f828c074ab75..14f00b0d241f 100644
--- a/www/ungoogled-chromium/files/patch-base_debug_stack__trace__posix.cc
+++ b/www/ungoogled-chromium/files/patch-base_debug_stack__trace__posix.cc
@@ -1,4 +1,4 @@
---- base/debug/stack_trace_posix.cc.orig	2022-10-01 07:40:07 UTC
+--- base/debug/stack_trace_posix.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/debug/stack_trace_posix.cc
 @@ -39,7 +39,7 @@
  #include <AvailabilityMacros.h>
@@ -9,7 +9,7 @@
  #include "base/debug/proc_maps_linux.h"
  #endif
  
-@@ -698,6 +698,9 @@ class SandboxSymbolizeHelper {
+@@ -699,6 +699,9 @@ class SandboxSymbolizeHelper {
    // for the modules that are loaded in the current process.
    // Returns true on success.
    bool CacheMemoryRegions() {
@@ -19,7 +19,7 @@
      // Reads /proc/self/maps.
      std::string contents;
      if (!ReadProcMaps(&contents)) {
-@@ -715,6 +718,7 @@ class SandboxSymbolizeHelper {
+@@ -716,6 +719,7 @@ class SandboxSymbolizeHelper {
  
      is_initialized_ = true;
      return true;
@@ -27,7 +27,7 @@
    }
  
    // Opens all object files and caches their file descriptors.
-@@ -871,7 +875,7 @@ size_t CollectStackTrace(void** trace, size_t count) {
+@@ -872,7 +876,7 @@ size_t CollectStackTrace(void** trace, size_t count) {
    // If we do not have unwind tables, then try tracing using frame pointers.
    return base::debug::TraceStackFramePointers(const_cast<const void**>(trace),
                                                count, 0);
diff --git a/www/ungoogled-chromium/files/patch-base_files_file__path__watcher__bsd.cc b/www/ungoogled-chromium/files/patch-base_files_file__path__watcher__bsd.cc
index 5e17eef81845..5735e11fe484 100644
--- a/www/ungoogled-chromium/files/patch-base_files_file__path__watcher__bsd.cc
+++ b/www/ungoogled-chromium/files/patch-base_files_file__path__watcher__bsd.cc
@@ -1,4 +1,4 @@
---- base/files/file_path_watcher_bsd.cc.orig	2022-10-01 07:40:07 UTC
+--- base/files/file_path_watcher_bsd.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/files/file_path_watcher_bsd.cc
 @@ -0,0 +1,54 @@
 +// Copyright 2021 The Chromium Authors. All rights reserved.
@@ -50,7 +50,7 @@
 +}  // namespace
 +
 +FilePathWatcher::FilePathWatcher() {
-+  sequence_checker_.DetachFromSequence();
++  DETACH_FROM_SEQUENCE(sequence_checker_);
 +  impl_ = std::make_unique<FilePathWatcherImpl>();
 +}
 +
diff --git a/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc b/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc
index 619d941c725e..bd15a33991d6 100644
--- a/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc
@@ -1,6 +1,6 @@
---- base/files/file_util_unittest.cc.orig	2022-10-01 07:40:07 UTC
+--- base/files/file_util_unittest.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/files/file_util_unittest.cc
-@@ -3522,7 +3522,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) {
+@@ -3549,7 +3549,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) {
  }
  #endif  // BUILDFLAG(IS_WIN)
  
@@ -9,7 +9,7 @@
  TEST_F(FileUtilTest, ReadFileToStringWithProcFileSystem) {
    FilePath file_path("/proc/cpuinfo");
    std::string data = "temp";
-@@ -4245,7 +4245,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles
+@@ -4272,7 +4272,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles
                  NULL);
  #else
      size_t bytes_written =
diff --git a/www/ungoogled-chromium/files/patch-base_i18n_icu__util.cc b/www/ungoogled-chromium/files/patch-base_i18n_icu__util.cc
index fd39d74dbe60..c8566ea0cc20 100644
--- a/www/ungoogled-chromium/files/patch-base_i18n_icu__util.cc
+++ b/www/ungoogled-chromium/files/patch-base_i18n_icu__util.cc
@@ -1,4 +1,4 @@
---- base/i18n/icu_util.cc.orig	2022-10-01 07:40:07 UTC
+--- base/i18n/icu_util.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/i18n/icu_util.cc
 @@ -53,7 +53,7 @@
  #include "third_party/icu/source/common/unicode/unistr.h"
@@ -9,7 +9,7 @@
      BUILDFLAG(IS_CHROMEOS) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CASTOS))
  #include "third_party/icu/source/i18n/unicode/timezone.h"
  #endif
-@@ -325,7 +325,7 @@ void InitializeIcuTimeZone() {
+@@ -344,7 +344,7 @@ void InitializeIcuTimeZone() {
        FuchsiaIntlProfileWatcher::GetPrimaryTimeZoneIdForIcuInitialization();
    icu::TimeZone::adoptDefault(
        icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(zone_id)));
diff --git a/www/ungoogled-chromium/files/patch-base_native__library__unittest.cc b/www/ungoogled-chromium/files/patch-base_native__library__unittest.cc
index 332fe755fd4a..366ca9740016 100644
--- a/www/ungoogled-chromium/files/patch-base_native__library__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-base_native__library__unittest.cc
@@ -1,6 +1,6 @@
---- base/native_library_unittest.cc.orig	2022-10-01 07:40:07 UTC
+--- base/native_library_unittest.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/native_library_unittest.cc
-@@ -119,7 +119,7 @@ TEST(NativeLibraryTest, LoadLibrary) {
+@@ -134,7 +134,7 @@ TEST(NativeLibraryTest, LoadLibrary) {
  // versions with respect to symbol resolution scope.
  // TSan and MSan error out on RTLD_DEEPBIND, https://crbug.com/705255
  #if !BUILDFLAG(IS_ANDROID) && !defined(THREAD_SANITIZER) && \
diff --git a/www/ungoogled-chromium/files/patch-base_process_memory.cc b/www/ungoogled-chromium/files/patch-base_process_memory.cc
index 0428c9c57337..661140565bc4 100644
--- a/www/ungoogled-chromium/files/patch-base_process_memory.cc
+++ b/www/ungoogled-chromium/files/patch-base_process_memory.cc
@@ -1,6 +1,6 @@
---- base/process/memory.cc.orig	2022-10-01 07:40:07 UTC
+--- base/process/memory.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/process/memory.cc
-@@ -29,7 +29,7 @@ namespace base {
+@@ -28,7 +28,7 @@ namespace base {
  // Defined in memory_mac.mm for macOS + use_allocator="none".  In case of
  // USE_PARTITION_ALLOC_AS_MALLOC, no need to route the call to the system
  // default calloc of macOS.
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc b/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc
index a2dc3e96f5b6..f996d30cbc63 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc
+++ b/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc
@@ -1,4 +1,4 @@
---- base/process/process_metrics.cc.orig	2022-10-01 07:40:07 UTC
+--- base/process/process_metrics.cc.orig	2022-10-29 17:50:56 UTC
 +++ base/process/process_metrics.cc
 @@ -17,7 +17,7 @@ namespace base {
  namespace {
@@ -27,16 +27,23 @@
    Value meminfo = memory_info_.ToValue();
    Value vmstat = vmstat_info_.ToValue();
    meminfo.MergeDictionary(&vmstat);
-@@ -99,7 +99,7 @@ std::unique_ptr<ProcessMetrics> ProcessMetrics::Create
+@@ -99,7 +99,6 @@ std::unique_ptr<ProcessMetrics> ProcessMetrics::Create
  #endif  // !BUILDFLAG(IS_MAC)
  }
  
 -#if !BUILDFLAG(IS_FREEBSD) || !BUILDFLAG(IS_POSIX)
-+#if !BUILDFLAG(IS_FREEBSD)
- double ProcessMetrics::GetPlatformIndependentCPUUsage() {
-   TimeDelta cumulative_cpu = GetCumulativeCPUUsage();
+ double ProcessMetrics::GetPlatformIndependentCPUUsage(
+     TimeDelta cumulative_cpu) {
    TimeTicks time = TimeTicks::Now();
-@@ -150,7 +150,7 @@ double ProcessMetrics::GetPreciseCPUUsage() {
+@@ -126,7 +125,6 @@ double ProcessMetrics::GetPlatformIndependentCPUUsage(
+ double ProcessMetrics::GetPlatformIndependentCPUUsage() {
+   return GetPlatformIndependentCPUUsage(GetCumulativeCPUUsage());
+ }
+-#endif
+ 
+ #if BUILDFLAG(IS_WIN)
+ double ProcessMetrics::GetPreciseCPUUsage(TimeDelta cumulative_cpu) {
+@@ -157,7 +155,7 @@ double ProcessMetrics::GetPreciseCPUUsage() {
  #endif  // BUILDFLAG(IS_WIN)
  
  #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__metrics.h b/www/ungoogled-chromium/files/patch-base_process_process__metrics.h
index c37d15293fcf..11ce2d0f7551 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__metrics.h
+++ b/www/ungoogled-chromium/files/patch-base_process_process__metrics.h
@@ -1,4 +1,4 @@
---- base/process/process_metrics.h.orig	2022-10-01 07:40:07 UTC
+--- base/process/process_metrics.h.orig	2022-10-29 17:50:56 UTC
 +++ base/process/process_metrics.h
 @@ -36,7 +36,7 @@
  #endif
@@ -27,7 +27,7 @@
    // Resident Set Size is a Linux/Android specific memory concept. Do not
    // attempt to extend this to other platforms.
    BASE_EXPORT size_t GetResidentSetSize() const;
-@@ -155,7 +155,7 @@ class BASE_EXPORT ProcessMetrics {
+@@ -165,7 +165,7 @@ class BASE_EXPORT ProcessMetrics {
  #endif  // BUILDFLAG(IS_WIN)
  
  #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
@@ -36,7 +36,7 @@
    // Emits the cumulative CPU usage for all currently active threads since they
    // were started into the output parameter (replacing its current contents).
    // Threads that have already terminated will not be reported. Thus, the sum of
-@@ -238,7 +238,7 @@ class BASE_EXPORT ProcessMetrics {
+@@ -248,7 +248,7 @@ class BASE_EXPORT ProcessMetrics {
    int GetOpenFdSoftLimit() const;
  #endif  // BUILDFLAG(IS_POSIX)
  
@@ -45,7 +45,7 @@
    // Bytes of swap as reported by /proc/[pid]/status.
    uint64_t GetVmSwapBytes() const;
  
*** 9498 LINES SKIPPED ***