git: a18bcacae17b - 2022Q2 - www/chromium: update to 102.0.5005.61
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 May 2022 19:54:08 UTC
The branch 2022Q2 has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=a18bcacae17b7030e8bab23aa43d0429c7587bfc commit a18bcacae17b7030e8bab23aa43d0429c7587bfc Author: Robert Nagy <robert@openbsd.org> AuthorDate: 2022-05-19 14:34:10 +0000 Commit: Rene Ladan <rene@FreeBSD.org> CommitDate: 2022-05-24 19:53:59 +0000 www/chromium: update to 102.0.5005.61 Security: 40e2c35e-db99-11ec-b0cf-3065ec8fd3ec (cherry picked from commit 6dc209ad0a874c8fbc80859c217ecea69f6b0ade) --- www/chromium/Makefile | 7 +- www/chromium/distinfo | 10 +- www/chromium/files/patch-BUILD.gn | 22 +- www/chromium/files/patch-base_BUILD.gn | 24 +- ...tion__allocator_address__space__randomization.h | 11 +- ...rtition__allocator_page__allocator__constants.h | 29 + ...rtition__allocator_partition__address__space.cc | 11 + ...ocator_partition__allocator_partition__alloc.cc | 14 +- ...partition__allocator_partition__alloc__config.h | 12 +- ...tition__allocator_partition__alloc__constants.h | 11 + ...llocator_partition__allocator_partition__page.h | 13 +- ...locator_partition__allocator_partition__root.cc | 38 + ...or_partition__allocator_starscan_stack_stack.cc | 4 +- www/chromium/files/patch-base_atomicops.h | 4 +- ...tch-base_files_file__path__watcher__unittest.cc | 8 +- .../files/patch-base_files_file__util__posix.cc | 4 +- www/chromium/files/patch-base_i18n_icu__util.cc | 4 +- www/chromium/files/patch-base_linux__util.cc | 8 +- .../files/patch-base_memory_discardable__memory.cc | 10 +- ...emory_madv__free__discardable__memory__posix.cc | 6 +- ...-base_memory_platform__shared__memory__region.h | 12 +- ...mory_platform__shared__memory__region__posix.cc | 12 +- .../files/patch-base_native__library__posix.cc | 4 +- www/chromium/files/patch-base_process_kill.h | 4 +- .../files/patch-base_process_kill__posix.cc | 4 +- www/chromium/files/patch-base_process_launch.h | 4 +- .../files/patch-base_process_process__metrics.cc | 6 +- .../files/patch-base_process_process__metrics.h | 26 +- .../files/patch-base_process_process__posix.cc | 10 +- ...ofiler_stack__sampling__profiler__test__util.cc | 4 +- .../files/patch-base_synchronization_lock__impl.h | 14 +- www/chromium/files/patch-base_system_sys__info.cc | 4 +- .../patch-base_third__party_libevent_BUILD.gn | 101 +- .../files/patch-base_threading_platform__thread.h | 4 +- ...patch-base_threading_platform__thread__linux.cc | 18 +- ...patch-base_threading_platform__thread__posix.cc | 6 +- ...tch-base_trace__event_malloc__dump__provider.cc | 18 +- .../files/patch-build_config_compiler_BUILD.gn | 39 +- .../files/patch-build_config_linux_BUILD.gn | 8 +- .../files/patch-build_toolchain_gcc__toolchain.gni | 4 +- .../patch-chrome_app_app__management__strings.grdp | 11 + .../patch-chrome_app_chrome__main__delegate.cc | 24 +- .../files/patch-chrome_app_chromium__strings.grd | 15 +- .../patch-chrome_app_generated__resources.grd | 34 +- .../patch-chrome_app_google__chrome__strings.grd | 15 +- .../files/patch-chrome_app_settings__strings.grdp | 6 +- .../patch-chrome_app_theme_theme__resources.grd | 41 +- .../files/patch-chrome_browser_about__flags.cc | 37 +- ...ete_chrome__autocomplete__scheme__classifier.cc | 4 +- .../patch-chrome_browser_browser__process__impl.cc | 8 +- .../patch-chrome_browser_browser__resources.grd | 11 + ..._browser_chrome__browser__interface__binders.cc | 41 +- .../patch-chrome_browser_chrome__browser__main.cc | 10 +- ...ome_browser_chrome__content__browser__client.cc | 30 +- ...rome_browser_chrome__content__browser__client.h | 4 +- ...rome_browser_component__updater_registration.cc | 20 + ...-chrome_browser_dev__ui__browser__resources.grd | 6 +- ...download_chrome__download__manager__delegate.cc | 12 +- ...h-chrome_browser_download_download__commands.cc | 6 +- ...rome_browser_download_download__file__picker.cc | 6 +- ...hrome_browser_download_download__item__model.cc | 6 +- ...atch-chrome_browser_download_download__prefs.cc | 14 +- ...patch-chrome_browser_download_download__prefs.h | 4 +- .../files/patch-chrome_browser_extensions_BUILD.gn | 4 +- ...writer__private_removable__storage__provider.cc | 6 +- ...gging__private_webrtc__logging__private__api.cc | 8 +- ..._browser__context__keyed__service__factories.cc | 6 +- .../patch-chrome_browser_flag__descriptions.cc | 14 +- .../patch-chrome_browser_flag__descriptions.h | 12 +- ...ch-chrome_browser_media_audio__service__util.cc | 4 +- ...-chrome_browser_media_router_discovery_BUILD.gn | 4 +- ...e_browser_media_webrtc_webrtc__log__uploader.cc | 4 +- ...ser_media_webrtc_webrtc__logging__controller.cc | 8 +- ...ser_metrics_chrome__metrics__service__client.cc | 10 +- ...rowser_net_system__network__context__manager.cc | 10 +- ...cations_notification__display__service__impl.cc | 8 +- ..._manager_policies_high__pmf__discard__policy.cc | 6 +- ...ce__monitor_process__metrics__recorder__util.cc | 10 +- ...rowser_performance__monitor_process__monitor.cc | 15 +- ...browser_performance__monitor_process__monitor.h | 6 +- ...wser__cloud__management__controller__desktop.cc | 10 +- ...onfiguration__policy__handler__list__factory.cc | 43 +- .../patch-chrome_browser_prefs_browser__prefs.cc | 17 +- ...er_printing_print__backend__service__manager.cc | 12 +- ...h-chrome_browser_printing_print__job__worker.cc | 4 +- ...hrome__browser__main__extra__parts__profiles.cc | 4 +- .../patch-chrome_browser_profiles_profile__impl.cc | 6 +- ..._appearance__page_appearance__browser__proxy.ts | 10 +- ...settings_appearance__page_appearance__page.html | 10 +- ...s_settings_appearance__page_appearance__page.ts | 22 +- ...atch-chrome_browser_resources_settings_route.ts | 4 +- ...browsing_download__protection_file__analyzer.cc | 16 +- ..._browsing_download__protection_file__analyzer.h | 8 +- ...dent__reporting_incident__reporting__service.cc | 4 +- ...ser_signin_primary__account__policy__manager.cc | 38 + ...wser_signin_primary__account__policy__manager.h | 20 + .../patch-chrome_browser_signin_signin__util.cc | 11 - ...tch-chrome_browser_sync_chrome__sync__client.cc | 4 +- ...r_task__manager_sampling_task__manager__impl.cc | 4 +- .../patch-chrome_browser_themes_theme__service.cc | 10 +- ...rome_browser_ui_browser__command__controller.cc | 16 +- .../patch-chrome_browser_ui_browser__commands.cc | 6 +- .../patch-chrome_browser_ui_browser__commands.h | 8 +- .../files/patch-chrome_browser_ui_chrome__pages.cc | 4 +- ...h-chrome_browser_ui_signin__view__controller.cc | 6 +- ...browser_ui_signin__view__controller__delegate.h | 4 +- ...browser_ui_startup_startup__browser__creator.cc | 10 +- .../files/patch-chrome_browser_ui_tab__helpers.cc | 14 +- ...ui_task__manager_task__manager__table__model.cc | 8 +- ...h-chrome_browser_ui_views_accelerator__table.cc | 17 +- ..._views_eye__dropper_eye__dropper__view__aura.cc | 4 +- ...-chrome_browser_ui_views_frame_browser__view.cc | 4 +- ..._ui_views_frame_opaque__browser__frame__view.cc | 6 +- ..._ui_views_profiles_profile__menu__view__base.cc | 4 +- ...es_signin__view__controller__delegate__views.cc | 6 +- ...les_signin__view__controller__delegate__views.h | 4 +- ...-chrome_browser_ui_views_tab__dialogs__views.cc | 20 - .../patch-chrome_browser_ui_views_tabs_tab.cc | 4 +- ..._browser_ui_views_tabs_tab__drag__controller.cc | 4 +- ...r_ui_views_tabs_tab__hover__card__controller.cc | 4 +- ...i_web__applications_app__browser__controller.cc | 6 +- .../patch-chrome_browser_ui_webui_about__ui.cc | 6 +- ...i_webui_chrome__web__ui__controller__factory.cc | 14 +- ..._browser_ui_webui_ntp_app__launcher__handler.cc | 12 +- ...tings_settings__localized__strings__provider.cc | 12 +- ...ications_extensions_extension__status__utils.cc | 13 +- ...plications_os__integration_web__app__shortcut.h | 8 +- ..._os__integration_web__app__shortcut__manager.cc | 15 +- ...browser_web__applications_web__app__provider.cc | 4 +- ...thn_chrome__authenticator__request__delegate.cc | 14 +- .../files/patch-chrome_common_chrome__features.cc | 18 +- .../files/patch-chrome_common_chrome__features.h | 12 +- .../files/patch-chrome_common_chrome__switches.cc | 4 +- .../files/patch-chrome_common_chrome__switches.h | 4 +- .../patch-chrome_common_extensions_command.cc | 6 +- .../files/patch-chrome_common_pref__names.cc | 20 +- .../files/patch-chrome_common_pref__names.h | 16 +- .../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 | 8 +- www/chromium/files/patch-chrome_test_BUILD.gn | 4 +- .../files/patch-chrome_updater_installer.cc | 10 +- .../files/patch-chrome_updater_lib__util.cc | 11 - www/chromium/files/patch-chrome_updater_util.cc | 4 +- .../files/patch-chrome_utility_services.cc | 10 +- ...hromecast_browser_cast__browser__main__parts.cc | 8 +- ...ecast_browser_cast__content__browser__client.cc | 8 +- ...tch-components_autofill__payments__strings.grdp | 6 +- ...utofill_core_browser_personal__data__manager.cc | 4 +- ...ill_core_common_autofill__payments__features.cc | 4 +- ...ch-components_components__chromium__strings.grd | 11 + ...ponents_components__google__chrome__strings.grd | 11 + ...e__engagement_public_feature__configurations.cc | 4 +- ...eature__engagement_public_feature__constants.cc | 6 +- ...feature__engagement_public_feature__constants.h | 6 +- ...nts_feature__engagement_public_feature__list.cc | 6 +- ...ents_feature__engagement_public_feature__list.h | 12 +- ...-components_feed_core_v2_test_proto__printer.cc | 4 +- .../patch-components_flags__ui_flags__state.cc | 4 +- ...patch-components_live__caption_caption__util.cc | 11 + ...rator_browser_network__session__configurator.cc | 4 +- ...ser_network__session__configurator__unittest.cc | 4 +- ...atch-components_new__or__sad__tab__strings.grdp | 37 +- ...aint__preview_browser_paint__preview__client.cc | 4 +- ..._preview_player_player__compositor__delegate.cc | 4 +- ...ger_core_browser_sync_password__sync__bridge.cc | 6 +- ...ager_core_common_password__manager__features.cc | 8 +- ...nager_core_common_password__manager__features.h | 10 +- ...licy_core_common_cloud_cloud__policy__client.cc | 4 +- ...policy_core_common_cloud_cloud__policy__util.cc | 12 +- ...ponents_policy_resources_policy__templates.json | 44 +- ..._core_browser_db_v4__protocol__manager__util.cc | 4 +- ..._ai_sandbox_screen__ai__sandbox__hook__linux.cc | 10 +- ...metric__utils_browser_startup__metric__utils.cc | 6 +- ...sync__device__info_local__device__info__util.cc | 4 +- ...isplay__embedder_skia__output__surface__impl.cc | 4 +- ...e_display__embedder_software__output__surface.h | 6 +- ...e__sinks_root__compositor__frame__sink__impl.cc | 4 +- ...me__sinks_root__compositor__frame__sink__impl.h | 4 +- ...atch-content_app_content__main__runner__impl.cc | 24 +- www/chromium/files/patch-content_browser_BUILD.gn | 4 +- .../patch-content_browser_browser__main__loop.cc | 10 +- ...font__access_font__enumeration__data__source.cc | 4 +- .../patch-content_browser_gpu_compositor__util.cc | 6 +- ...ser_media_frameless__media__interface__proxy.cc | 20 + ...ontent_browser_media_media__interface__proxy.cc | 20 + ...renderer__host_pepper_pepper__file__io__host.cc | 6 +- ...ser_renderer__host_render__frame__host__impl.cc | 8 +- ...wser_renderer__host_render__frame__host__impl.h | 10 +- ...owser_renderer__host_render__message__filter.cc | 8 +- ...r_renderer__host_render__process__host__impl.cc | 10 +- ...er_renderer__host_render__process__host__impl.h | 4 +- ...derer__host_render__widget__host__view__aura.cc | 12 +- ...nderer__host_render__widget__host__view__aura.h | 4 +- ...h-content_browser_utility__sandbox__delegate.cc | 21 +- ...wser_web__contents_web__contents__view__aura.cc | 4 +- ...browser_webui_web__ui__main__frame__observer.cc | 6 +- .../files/patch-content_child_child__process.cc | 4 +- www/chromium/files/patch-content_common_BUILD.gn | 4 +- .../patch-content_common_font__list__unittest.cc | 4 +- .../files/patch-content_common_user__agent.cc | 6 +- www/chromium/files/patch-content_gpu_gpu__main.cc | 14 +- .../patch-content_gpu_gpu__sandbox__hook__linux.cc | 8 +- ...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 +- ...nt_public_common_use__zoom__for__dsf__policy.cc | 11 - ...patch-content_renderer_render__process__impl.cc | 12 +- .../patch-content_renderer_render__thread__impl.cc | 12 +- ...ent_renderer_renderer__blink__platform__impl.cc | 12 +- www/chromium/files/patch-content_shell_BUILD.gn | 4 +- ...nt_shell_browser_shell__browser__main__parts.cc | 6 +- www/chromium/files/patch-content_test_BUILD.gn | 6 +- .../files/patch-content_utility_utility__main.cc | 37 +- .../files/patch-content_zygote_zygote__linux.cc | 4 +- .../patch-extensions_browser_extension__prefs.cc | 4 +- ...tensions_common_api___permission__features.json | 8 +- ..._buffer_service_external__vk__image__backing.cc | 4 +- ...ared__image__backing__factory__angle__vulkan.cc | 4 +- ...shared__image__backing__factory__gl__texture.cc | 11 + ..._service_shared__image__backing__gl__texture.cc | 11 + ...mmand__buffer_service_shared__image__factory.cc | 15 +- ...ommand__buffer_service_webgpu__decoder__impl.cc | 8 +- .../files/patch-gpu_config_gpu__control__list.cc | 6 +- .../files/patch-gpu_ipc_service_gpu__init.cc | 4 +- ..._browser_headless__request__context__manager.cc | 4 +- ...ss_lib_browser_headless__web__contents__impl.cc | 4 +- .../patch-headless_public_headless__browser.cc | 11 - .../files/patch-ipc_ipc__channel__common.cc | 4 +- .../files/patch-ipc_ipc__message__utils.cc | 4 +- www/chromium/files/patch-ipc_ipc__message__utils.h | 4 +- www/chromium/files/patch-media_BUILD.gn | 4 +- .../patch-media_audio_audio__input__device.cc | 4 +- .../files/patch-media_base_media__switches.cc | 24 +- .../files/patch-media_base_media__switches.h | 13 +- .../files/patch-media_base_supported__types.cc | 11 + .../files/patch-media_base_video__frame.cc | 14 +- www/chromium/files/patch-media_base_video__frame.h | 12 +- ...h-media_capture_video_linux_fake__v4l2__impl.cc | 4 +- ...a_capture_video_linux_v4l2__capture__delegate.h | 4 +- .../files/patch-media_gpu_buffer__validation.cc | 6 +- ...-media_gpu_chromeos_video__decoder__pipeline.cc | 6 +- ...dware__video__decoding__sandbox__hook__linux.cc | 26 + ...rdware__video__decoding__sandbox__hook__linux.h | 16 + ...stable__video__decoder__types__mojom__traits.cc | 29 + ..._stable__video__decoder__types__mojom__traits.h | 11 + ...media_mojo_mojom_video__frame__mojom__traits.cc | 4 +- ...ideo_gpu__memory__buffer__video__frame__pool.cc | 4 +- ...ia_video_video__encode__accelerator__adapter.cc | 6 +- ...eo_video__encode__accelerator__adapter__test.cc | 4 +- .../files/patch-media_webrtc_audio__processor.cc | 4 +- .../files/patch-media_webrtc_helpers__unittests.cc | 4 +- ...ch-mojo_public_js_mojo__bindings__resources.grd | 11 - .../patch-mojo_public_tools_bindings_mojom.gni | 4 +- www/chromium/files/patch-net_BUILD.gn | 29 +- .../patch-net_base_network__change__notifier.cc | 6 +- ...ch-net_base_network__change__notifier__posix.cc | 4 +- .../patch-net_cert_cert__verify__proc__unittest.cc | 4 +- www/chromium/files/patch-net_dns_BUILD.gn | 8 +- .../files/patch-net_dns_host__resolver__manager.cc | 6 +- ...ution_configured__proxy__resolution__service.cc | 8 +- ...xy__resolution_proxy__config__service__linux.cc | 4 +- .../files/patch-net_socket_udp__socket__posix.cc | 15 +- .../patch-net_socket_udp__socket__unittest.cc | 12 +- .../files/patch-net_third__party_quiche_BUILD.gn | 22 +- ...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-printing_print__settings.cc | 15 +- .../patch-printing_print__settings__conversion.cc | 10 +- ...ch-remoting_host_me2me__desktop__environment.cc | 4 +- ..._remote__open__url_remote__open__url__client.cc | 6 +- ...bauthn_remote__webauthn__extension__notifier.cc | 19 + .../patch-remoting_resources_remoting__strings.grd | 6 +- .../files/patch-sandbox_policy_sandbox__type.cc | 46 +- .../files/patch-sandbox_policy_switches.cc | 13 +- www/chromium/files/patch-sandbox_policy_switches.h | 13 +- .../patch-services_device_hid_hid__service.cc | 6 +- ...ces_device_serial_serial__device__enumerator.cc | 6 +- www/chromium/files/patch-services_network_BUILD.gn | 4 +- ...atch-third__party_abseil-cpp_absl_base_config.h | 6 +- ...d__party_abseil-cpp_absl_base_internal_endian.h | 11 - ...l-cpp_absl_debugging_internal_elf__mem__image.h | 13 +- .../files/patch-third__party_angle_BUILD.gn | 8 +- ...party_angle_src_common_system__utils__posix.cpp | 4 +- ...tch-third__party_angle_src_libANGLE_Display.cpp | 4 +- ...third__party_angle_src_libANGLE_formatutils.cpp | 4 +- .../files/patch-third__party_angle_util_BUILD.gn | 4 +- ...blink_renderer_core_exported_web__view__impl.cc | 6 +- ...y_blink_renderer_core_frame_web__frame__test.cc | 6 +- ...ore_html_canvas_canvas__async__blob__creator.cc | 4 +- ...nderer_core_html_forms_internal__popup__menu.cc | 11 - ...arty_blink_renderer_core_layout_layout__view.cc | 6 +- ...peerconnection_webrtc__audio__renderer__test.cc | 4 +- ...odules_webgl_webgl__rendering__context__base.cc | 4 +- ...h-third__party_blink_renderer_platform_BUILD.gn | 4 +- ...ty_blink_renderer_platform_fonts_font__cache.cc | 6 +- ...rty_blink_renderer_platform_fonts_font__cache.h | 8 +- ...rer_platform_graphics_begin__frame__provider.cc | 4 +- ...er_platform_graphics_video__frame__submitter.cc | 4 +- ...derer_platform_runtime__enabled__features.json5 | 62 + ...atch-third__party_boringssl_BUILD.generated.gni | 4 +- ...d__party_boringssl_src_include_openssl_thread.h | 10 + ...arty_dawn_generator_dawn__version__generator.py | 22 + ...g_chromium_config_Chrome_openbsd_arm64_config.h | 2072 +------------------- ...onfig_Chrome_openbsd_arm64_config__components.h | 2066 +++++++++++++++++++ ..._chromium_config_Chrome_openbsd_ia32_config.asm | 2070 +------------------ ...eg_chromium_config_Chrome_openbsd_ia32_config.h | 2072 +------------------- ...config_Chrome_openbsd_ia32_config__components.h | 2066 +++++++++++++++++++ ...g_chromium_config_Chrome_openbsd_x64_config.asm | 2070 +------------------ ...peg_chromium_config_Chrome_openbsd_x64_config.h | 2070 +------------------ ..._config_Chrome_openbsd_x64_config__components.h | 2066 +++++++++++++++++++ .../patch-third__party_ffmpeg_libavutil_mem.c | 6 +- ...hird__party_ipcz_src_standalone_base_logging.cc | 12 + ...tch-third__party_leveldatabase_env__chromium.cc | 4 +- .../files/patch-third__party_libXNVCtrl_NVCtrl.c | 25 - .../files/patch-third__party_libxml_src_dict.c | 14 +- ...etto_src_tracing_core_tracing__service__impl.cc | 4 +- ...ty_protobuf_src_google_protobuf_stubs_strutil.h | 18 - ...-third__party_skia_src_gpu_GrAutoLocaleSetter.h | 11 - ...-third__party_sqlite_src_amalgamation_sqlite3.c | 6 +- ..._party_swiftshader_src_OpenGL_libEGL_libEGL.cpp | 4 +- ...tch-third__party_swiftshader_src_WSI_libXCB.cpp | 13 +- ...10.0_configs_linux_include_llvm_Config_config.h | 83 +- .../files/patch-third__party_usrsctp_BUILD.gn | 11 - ...d__party_vulkan-deps_vulkan-loader_src_BUILD.gn | 4 +- ...eps_vulkan-loader_src_loader_get__environment.c | 10 +- ...vulkan-loader_src_loader_vk__loader__platform.h | 12 +- ...rd__party_webrtc_modules_audio__device_BUILD.gn | 4 +- .../patch-third__party_webrtc_rtc__base_BUILD.gn | 4 +- ...ch-third__party_webrtc_rtc__base_ip__address.cc | 8 +- .../patch-third__party_webrtc_rtc__base_network.cc | 4 +- ...h-third__party_webrtc_system__wrappers_BUILD.gn | 4 +- ...son__schema__compiler_cpp__bundle__generator.py | 4 +- www/chromium/files/patch-ui_aura_screen__ozone.cc | 11 + www/chromium/files/patch-ui_aura_screen__ozone.h | 11 + .../files/patch-ui_base_cursor_cursor__factory.cc | 4 +- .../files/patch-ui_base_ime_text__input__client.h | 4 +- .../files/patch-ui_base_webui_web__ui__util.cc | 4 +- .../files/patch-ui_base_x_x11__cursor__loader.cc | 4 +- www/chromium/files/patch-ui_color_color__id.h | 4 +- .../files/patch-ui_compositor_compositor.cc | 4 +- .../files/patch-ui_compositor_compositor.h | 4 +- www/chromium/files/patch-ui_display_screen.cc | 11 + www/chromium/files/patch-ui_display_screen.h | 29 + www/chromium/files/patch-ui_gfx_BUILD.gn | 4 +- .../files/patch-ui_gfx_native__pixmap__handle.cc | 12 +- www/chromium/files/patch-ui_gfx_x_window__cache.cc | 18 + www/chromium/files/patch-ui_gl_BUILD.gn | 12 +- .../files/patch-ui_gl_generate__bindings.py | 4 +- www/chromium/files/patch-ui_gl_gl__context.cc | 4 +- www/chromium/files/patch-ui_gl_gl__features.cc | 4 +- .../files/patch-ui_gl_gl__implementation.cc | 11 - .../patch-ui_gl_sync__control__vsync__provider.h | 6 +- .../patch-ui_gtk_printing_print__dialog__gtk.cc | 4 +- ...platform_headless_headless__surface__factory.cc | 6 +- .../patch-ui_strings_app__locale__settings.grd | 4 +- ...ings_translations_app__locale__settings__bn.xtb | 11 + ...ings_translations_app__locale__settings__ja.xtb | 11 + ...ings_translations_app__locale__settings__ko.xtb | 11 + ...ings_translations_app__locale__settings__ml.xtb | 11 + ...ings_translations_app__locale__settings__th.xtb | 11 + ...s_translations_app__locale__settings__zh-CN.xtb | 11 + ...s_translations_app__locale__settings__zh-TW.xtb | 11 + .../patch-ui_views_controls_textfield_textfield.cc | 10 +- .../files/patch-ui_views_focus_focus__manager.cc | 6 +- ..._ui__controls__factory__desktop__aura__ozone.cc | 20 + ...__aura_desktop__window__tree__host__platform.cc | 4 +- www/chromium/files/patch-ui_views_widget_widget.cc | 4 +- .../patch-ui_views_window_dialog__delegate.cc | 4 +- .../files/patch-ui_webui_resources_js_cr.js | 4 +- www/chromium/files/patch-v8_BUILD.gn | 8 +- www/chromium/files/patch-v8_src_api_api.cc | 6 +- www/chromium/files/patch-v8_src_base_atomicops.h | 6 +- ...piler_backend_ia32_instruction-selector-ia32.cc | 6 +- ...src_wasm_baseline_ia32_liftoff-assembler-ia32.h | 16 +- www/chromium/files/patch-v8_tools_run.py | 4 +- www/chromium/pkg-plist | 6 +- 382 files changed, 8459 insertions(+), 11904 deletions(-) diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 3d4429ee6d80..0f1af3a86296 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -1,7 +1,7 @@ # Created by: Florent Thoumie <flz@FreeBSD.org> PORTNAME= chromium -PORTVERSION= 101.0.4951.67 +PORTVERSION= 102.0.5005.61 CATEGORIES= www MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ https://nerd.hu/distfiles/:fonts @@ -321,12 +321,7 @@ do-install: # SwiftShader .if ${ARCH} != aarch64 - @${MKDIR} ${STAGEDIR}${DATADIR}/swiftshader ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libvk_swiftshader.so ${STAGEDIR}${DATADIR} -.for g in libEGL.so libGLESv2.so - ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/swiftshader/${g} \ - ${STAGEDIR}${DATADIR}/swiftshader -.endfor .endif post-install-DEBUG-on: diff --git a/www/chromium/distinfo b/www/chromium/distinfo index 0e418263b579..9056d6f260f6 100644 --- a/www/chromium/distinfo +++ b/www/chromium/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1652513853 -SHA256 (chromium-101.0.4951.67.tar.xz) = d419af6fd170d02008b7f78086af11d8e0980618584dc6267ac20e97a4e6e361 -SIZE (chromium-101.0.4951.67.tar.xz) = 1414904488 -SHA256 (chromium-101.0.4951.67-testdata.tar.xz) = 271f168770dc1a09f8aac194abdf8c53b8fffe3ca7cb03472a04b37146aad462 -SIZE (chromium-101.0.4951.67-testdata.tar.xz) = 260656956 +TIMESTAMP = 1652962621 +SHA256 (chromium-102.0.5005.61.tar.xz) = 1a3797d36901fa3ba63744b9a870b65a8890c9a850442c160196bc64df886b1f +SIZE (chromium-102.0.5005.61.tar.xz) = 1433350708 +SHA256 (chromium-102.0.5005.61-testdata.tar.xz) = 463cd2d0fb101d16bd931814037625d092a65ed4a3b99249d2948201b2fe5805 +SIZE (chromium-102.0.5005.61-testdata.tar.xz) = 260757092 SHA256 (test_fonts-cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb.tar.gz) = ec973eccd669d417fbf2d0a4dac730744a3174268ff062db5451b55c82bc3492 SIZE (test_fonts-cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb.tar.gz) = 26759650 diff --git a/www/chromium/files/patch-BUILD.gn b/www/chromium/files/patch-BUILD.gn index 67d26dc553f0..98eca15f4c7c 100644 --- a/www/chromium/files/patch-BUILD.gn +++ b/www/chromium/files/patch-BUILD.gn @@ -1,4 +1,4 @@ ---- BUILD.gn.orig 2022-04-21 18:48:31 UTC +--- BUILD.gn.orig 2022-05-19 14:06:27 UTC +++ BUILD.gn @@ -54,7 +54,7 @@ declare_args() { root_extra_deps = [] @@ -9,7 +9,15 @@ # An official (maximally optimized!) component (optimized for build times) # build doesn't make sense and usually doesn't work. assert(!is_component_build) -@@ -436,7 +436,7 @@ group("gn_all") { +@@ -86,7 +86,6 @@ group("gn_all") { + "//codelabs", + "//components:components_unittests", + "//components/gwp_asan:gwp_asan_unittests", +- "//infra/orchestrator:orchestrator_all", + "//net:net_unittests", + "//services:services_unittests", + "//services/service_manager/public/cpp", +@@ -450,7 +449,7 @@ group("gn_all") { ] } @@ -18,7 +26,7 @@ deps += [ "//third_party/breakpad:breakpad_unittests", "//third_party/breakpad:core-2-minidump", -@@ -625,6 +625,15 @@ group("gn_all") { +@@ -635,6 +634,15 @@ group("gn_all") { } } @@ -34,7 +42,7 @@ if (is_mac) { deps += [ "//third_party/breakpad:crash_inspector", -@@ -674,7 +683,7 @@ group("gn_all") { +@@ -683,7 +691,7 @@ group("gn_all") { host_os == "win") { deps += [ "//chrome/test/mini_installer:mini_installer_tests" ] } @@ -43,7 +51,7 @@ deps += [ "//third_party/breakpad:symupload($host_toolchain)" ] } -@@ -1141,7 +1150,7 @@ if (!is_ios) { +@@ -1159,7 +1167,7 @@ if (!is_ios) { data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ] } @@ -52,7 +60,7 @@ data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] } -@@ -1150,7 +1159,7 @@ if (!is_ios) { +@@ -1168,7 +1176,7 @@ if (!is_ios) { data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } @@ -61,7 +69,7 @@ data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } -@@ -1540,7 +1549,7 @@ group("chromium_builder_perf") { +@@ -1565,7 +1573,7 @@ group("chromium_builder_perf") { if (is_win) { data_deps += [ "//chrome/installer/mini_installer:mini_installer" ] diff --git a/www/chromium/files/patch-base_BUILD.gn b/www/chromium/files/patch-base_BUILD.gn index 28df7dbb13f1..7f88a789793f 100644 --- a/www/chromium/files/patch-base_BUILD.gn +++ b/www/chromium/files/patch-base_BUILD.gn @@ -1,6 +1,6 @@ ---- base/BUILD.gn.orig 2022-04-21 18:48:31 UTC +--- base/BUILD.gn.orig 2022-05-19 14:06:27 UTC +++ base/BUILD.gn -@@ -1010,7 +1010,7 @@ mixed_component("base") { +@@ -998,7 +998,7 @@ mixed_component("base") { "timer/hi_res_timer_manager_posix.cc", ] @@ -9,7 +9,7 @@ sources += [ "cpu_affinity_posix.cc", "cpu_affinity_posix.h", -@@ -1021,6 +1021,12 @@ mixed_component("base") { +@@ -1009,6 +1009,12 @@ mixed_component("base") { "profiler/thread_delegate_posix.h", ] } @@ -22,7 +22,7 @@ } if (is_win) { -@@ -1492,11 +1498,23 @@ mixed_component("base") { +@@ -1486,11 +1492,23 @@ mixed_component("base") { # building inside the cros_sdk environment - use host_toolchain as a # more robust check for this. if (!use_sysroot && @@ -47,7 +47,7 @@ if (use_allocator_shim) { sources += [ "allocator/allocator_shim.cc", -@@ -1520,7 +1538,7 @@ mixed_component("base") { +@@ -1518,7 +1536,7 @@ mixed_component("base") { ] configs += [ "//base/allocator:mac_no_default_new_delete_symbols" ] } @@ -56,7 +56,7 @@ sources += [ "allocator/allocator_shim_override_cpp_symbols.h", "allocator/allocator_shim_override_glibc_weak_symbols.h", -@@ -1576,7 +1594,7 @@ mixed_component("base") { +@@ -1574,7 +1592,7 @@ mixed_component("base") { # Allow more direct string conversions on platforms with native utf8 # strings @@ -65,13 +65,13 @@ defines += [ "SYSTEM_NATIVE_UTF8" ] } -@@ -2255,6 +2273,42 @@ mixed_component("base") { +@@ -2147,6 +2165,42 @@ mixed_component("base") { } } + if (is_bsd) { + sources -= [ -+ "files/file_path_watcher_linux.cc", ++ "files/file_path_watcher_inotify.cc", + "files/file_util_linux.cc", + "files/scoped_file_linux.cc", + "process/memory_linux.cc", @@ -108,7 +108,7 @@ # iOS if (is_ios) { sources -= [ -@@ -3537,7 +3591,7 @@ test("base_unittests") { +@@ -3436,7 +3490,7 @@ test("base_unittests") { } } @@ -117,7 +117,7 @@ sources += [ "debug/proc_maps_linux_unittest.cc", "files/scoped_file_linux_unittest.cc", -@@ -3585,7 +3639,7 @@ test("base_unittests") { +@@ -3484,7 +3538,7 @@ test("base_unittests") { "posix/unix_domain_socket_unittest.cc", "task/thread_pool/task_tracker_posix_unittest.cc", ] @@ -126,7 +126,7 @@ sources += [ "cpu_affinity_posix_unittest.cc", "profiler/stack_copier_signal_unittest.cc", -@@ -3596,7 +3650,7 @@ test("base_unittests") { +@@ -3495,7 +3549,7 @@ test("base_unittests") { # Allow more direct string conversions on platforms with native utf8 # strings @@ -135,7 +135,7 @@ defines += [ "SYSTEM_NATIVE_UTF8" ] } -@@ -3765,7 +3819,7 @@ test("base_unittests") { +@@ -3657,7 +3711,7 @@ test("base_unittests") { } } diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_address__space__randomization.h b/www/chromium/files/patch-base_allocator_partition__allocator_address__space__randomization.h index 3f03f54ad491..b92553d33536 100644 --- a/www/chromium/files/patch-base_allocator_partition__allocator_address__space__randomization.h +++ b/www/chromium/files/patch-base_allocator_partition__allocator_address__space__randomization.h @@ -1,4 +1,4 @@ ---- base/allocator/partition_allocator/address_space_randomization.h.orig 2022-02-28 16:54:41 UTC +--- base/allocator/partition_allocator/address_space_randomization.h.orig 2022-05-19 14:06:27 UTC +++ base/allocator/partition_allocator/address_space_randomization.h @@ -38,7 +38,7 @@ AslrMask(uintptr_t bits) { @@ -9,3 +9,12 @@ // We shouldn't allocate system pages at all for sanitizer builds. However, // we do, and if random hint addresses interfere with address ranges +@@ -121,7 +121,7 @@ AslrMask(uintptr_t bits) { + return AslrAddress(0x20000000ULL); + } + +- #elif BUILDFLAG(IS_LINUX) ++ #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + + // Linux on arm64 can use 39, 42, 48, or 52-bit user space, depending on + // page size and number of levels of translation pages used. We use diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__constants.h b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__constants.h new file mode 100644 index 000000000000..bd41b2b9b998 --- /dev/null +++ b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__constants.h @@ -0,0 +1,29 @@ +--- base/allocator/partition_allocator/page_allocator_constants.h.orig 2022-05-19 14:06:27 UTC ++++ base/allocator/partition_allocator/page_allocator_constants.h +@@ -24,7 +24,7 @@ + // elimination. + #define PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR __attribute__((const)) + +-#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) ++#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) + // This should work for all POSIX (if needed), but currently all other + // supported OS/architecture combinations use either hard-coded values + // (such as x86) or have means to determine these values without needing +@@ -79,7 +79,7 @@ PageAllocationGranularityShift() { + return 14; // 16kB + #elif BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS) + return vm_page_shift; +-#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) ++#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) + // arm64 supports 4kb (shift = 12), 16kb (shift = 14), and 64kb (shift = 16) + // page sizes. Retrieve from or initialize cache. + int shift = page_characteristics.shift.load(std::memory_order_relaxed); +@@ -99,7 +99,7 @@ PageAllocationGranularity() { + // This is literally equivalent to |1 << PageAllocationGranularityShift()| + // below, but was separated out for IS_APPLE to avoid << on a non-constexpr. + return vm_page_size; +-#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) ++#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) + // arm64 supports 4kb, 16kb, and 64kb page sizes. Retrieve from or + // initialize cache. + int size = page_characteristics.size.load(std::memory_order_relaxed); diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__address__space.cc b/www/chromium/files/patch-base_allocator_partition__allocator_partition__address__space.cc new file mode 100644 index 000000000000..6b2c32c5ae86 --- /dev/null +++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__address__space.cc @@ -0,0 +1,11 @@ +--- base/allocator/partition_allocator/partition_address_space.cc.orig 2022-05-19 14:06:27 UTC ++++ base/allocator/partition_allocator/partition_address_space.cc +@@ -184,7 +184,7 @@ void PartitionAddressSpace::UninitConfigurablePoolForT + setup_.configurable_pool_ = 0; + } + +-#if BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) ++#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) + + PageCharacteristics page_characteristics; + diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc index eea69f0eebf4..6da50c163beb 100644 --- a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc +++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc.cc @@ -1,15 +1,17 @@ ---- base/allocator/partition_allocator/partition_alloc.cc.orig 2021-12-31 00:57:18 UTC +--- base/allocator/partition_allocator/partition_alloc.cc.orig 2022-05-19 14:06:27 UTC +++ base/allocator/partition_allocator/partition_alloc.cc -@@ -56,7 +56,12 @@ void PartitionAllocGlobalInit(OomFunction on_out_of_me +@@ -63,8 +63,14 @@ 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(kSmallestBucket >= kAlignment, "generic smallest bucket"); ++ static_assert(internal::kSmallestBucket >= internal::kAlignment, ++ "generic smallest bucket"); +#else - static_assert(kSmallestBucket == kAlignment, "generic smallest bucket"); + static_assert(internal::kSmallestBucket == internal::kAlignment, + "generic smallest bucket"); +#endif - static_assert(kMaxBucketed == 917504, "generic max bucketed"); + static_assert(internal::kMaxBucketed == 917504, "generic max bucketed"); STATIC_ASSERT_OR_PA_CHECK( - MaxSystemPagesPerRegularSlotSpan() <= 16, + internal::MaxSystemPagesPerRegularSlotSpan() <= 16, diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h index 6adb646639f4..ae70ea5b47aa 100644 --- a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h +++ b/www/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-04-21 18:48:31 UTC +--- base/allocator/partition_allocator/partition_alloc_config.h.orig 2022-05-19 14:06:27 UTC +++ base/allocator/partition_allocator/partition_alloc_config.h @@ -66,7 +66,7 @@ static_assert(sizeof(void*) != 8, ""); @@ -18,12 +18,12 @@ #define PA_HAS_ATFORK_HANDLER #endif -@@ -212,7 +212,7 @@ constexpr bool kUseLazyCommit = false; +@@ -225,7 +225,7 @@ constexpr bool kUseLazyCommit = false; // - // This is intended to roll out more broadly, but only enabled on Linux for now - // to get performance bot and real-world data pre-A/B experiment. --#if BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // Also enabled on ARM64 macOS, as the 16kiB pages on this platform lead to + // larger slot spans. +-#if BUILDFLAG(IS_LINUX) || (BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64)) ++#if BUILDFLAG(IS_LINUX) || (BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64)) || BUILDFLAG(IS_BSD) #define PA_PREFER_SMALLER_SLOT_SPANS #endif // BUILDFLAG(IS_LINUX) diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__constants.h b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__constants.h new file mode 100644 index 000000000000..380fe64d6f07 --- /dev/null +++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__constants.h @@ -0,0 +1,11 @@ +--- base/allocator/partition_allocator/partition_alloc_constants.h.orig 2022-05-19 14:06:27 UTC ++++ base/allocator/partition_allocator/partition_alloc_constants.h +@@ -80,7 +80,7 @@ PartitionPageShift() { + return 18; // 256 KiB + } + #elif (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS)) || \ +- (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) ++ ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64)) + PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR ALWAYS_INLINE size_t + PartitionPageShift() { + return PageAllocationGranularityShift() + 2; diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__page.h b/www/chromium/files/patch-base_allocator_partition__allocator_partition__page.h index c7c476112b95..294bfc737221 100644 --- a/www/chromium/files/patch-base_allocator_partition__allocator_partition__page.h +++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__page.h @@ -1,6 +1,6 @@ ---- base/allocator/partition_allocator/partition_page.h.orig 2022-03-25 21:59:56 UTC +--- base/allocator/partition_allocator/partition_page.h.orig 2022-05-19 14:06:27 UTC +++ base/allocator/partition_allocator/partition_page.h -@@ -128,7 +128,8 @@ struct __attribute__((packed)) SlotSpanMetadata { +@@ -129,13 +129,14 @@ struct __attribute__((packed)) SlotSpanMetadata { PartitionBucket<thread_safe>* const bucket = nullptr; // CHECK()ed in AllocNewSlotSpan(). @@ -10,7 +10,14 @@ // System page size is not a constant on Apple OSes, but is either 4 or 16kiB // (1 << 12 or 1 << 14), as checked in PartitionRoot::Init(). And // PartitionPageSize() is 4 times the OS page size. -@@ -142,7 +143,9 @@ struct __attribute__((packed)) SlotSpanMetadata { + static constexpr size_t kMaxSlotsPerSlotSpan = + 4 * (1 << 14) / kSmallestBucket; +-#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) ++#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) + // 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). +@@ -149,7 +150,9 @@ struct __attribute__((packed)) 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/chromium/files/patch-base_allocator_partition__allocator_partition__root.cc b/www/chromium/files/patch-base_allocator_partition__allocator_partition__root.cc new file mode 100644 index 000000000000..6461c1678b28 --- /dev/null +++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__root.cc @@ -0,0 +1,38 @@ +--- base/allocator/partition_allocator/partition_root.cc.orig 2022-05-19 14:06:27 UTC ++++ base/allocator/partition_allocator/partition_root.cc +@@ -29,7 +29,7 @@ + #include "wow64apiset.h" + #endif + +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + #include <pthread.h> + #endif + +@@ -226,7 +226,7 @@ void PartitionAllocMallocInitOnce() { + if (!g_global_init_called.compare_exchange_strong(expected, true)) + return; + +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + // 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. +@@ -305,7 +305,7 @@ static size_t PartitionPurgeSlotSpan( + constexpr size_t kMaxSlotCount = + (PartitionPageSize() * kMaxPartitionPagesPerRegularSlotSpan) / + SystemPageSize(); +-#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)) + // 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 +@@ -648,7 +648,7 @@ void PartitionRoot<thread_safe>::Init(PartitionOptions + // apple OSes. + PA_CHECK((internal::SystemPageSize() == (size_t{1} << 12)) || + (internal::SystemPageSize() == (size_t{1} << 14))); +-#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) ++#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) + // Check runtime pagesize. Though the code is currently the same, it is + // not merged with the IS_APPLE case above as a 1 << 16 case needs to be + // added here in the future, to allow 64 kiB pagesize. That is only diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_starscan_stack_stack.cc b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_stack_stack.cc index 54cc31592590..33a9abe63075 100644 --- a/www/chromium/files/patch-base_allocator_partition__allocator_starscan_stack_stack.cc +++ b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_stack_stack.cc @@ -1,4 +1,4 @@ ---- base/allocator/partition_allocator/starscan/stack/stack.cc.orig 2022-02-28 16:54:41 UTC +--- base/allocator/partition_allocator/starscan/stack/stack.cc.orig 2022-05-19 14:06:27 UTC +++ base/allocator/partition_allocator/starscan/stack/stack.cc @@ -17,6 +17,10 @@ #include <pthread.h> @@ -11,7 +11,7 @@ #if defined(LIBC_GLIBC) extern "C" void* __libc_stack_end; #endif -@@ -48,6 +52,36 @@ void* GetStackTop() { +@@ -47,6 +51,36 @@ void* GetStackTop() { void* GetStackTop() { return pthread_get_stackaddr_np(pthread_self()); diff --git a/www/chromium/files/patch-base_atomicops.h b/www/chromium/files/patch-base_atomicops.h index 2001ce228478..2f8478b40e8d 100644 --- a/www/chromium/files/patch-base_atomicops.h +++ b/www/chromium/files/patch-base_atomicops.h @@ -1,6 +1,6 @@ ---- base/atomicops.h.orig 2022-02-07 13:39:41 UTC +--- base/atomicops.h.orig 2022-05-19 14:06:27 UTC +++ base/atomicops.h -@@ -57,7 +57,11 @@ typedef intptr_t Atomic64; +@@ -56,7 +56,11 @@ typedef intptr_t Atomic64; // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or // Atomic64 routines below, depending on your architecture. diff --git a/www/chromium/files/patch-base_files_file__path__watcher__unittest.cc b/www/chromium/files/patch-base_files_file__path__watcher__unittest.cc index e0978f8b9384..3bd1d03cc820 100644 --- a/www/chromium/files/patch-base_files_file__path__watcher__unittest.cc +++ b/www/chromium/files/patch-base_files_file__path__watcher__unittest.cc @@ -1,6 +1,6 @@ ---- base/files/file_path_watcher_unittest.cc.orig 2022-02-28 16:54:41 UTC +--- base/files/file_path_watcher_unittest.cc.orig 2022-05-19 14:06:27 UTC +++ base/files/file_path_watcher_unittest.cc -@@ -450,7 +450,7 @@ TEST_F(FilePathWatcherTest, WatchDirectory) { +@@ -498,7 +498,7 @@ TEST_F(FilePathWatcherTest, MAYBE_WatchDirectory) { VLOG(1) << "Waiting for file1 creation"; ASSERT_TRUE(WaitForEvents()); @@ -9,7 +9,7 @@ // Mac implementation does not detect files modified in a directory. ASSERT_TRUE(WriteFile(file1, "content v2")); VLOG(1) << "Waiting for file1 modification"; -@@ -1038,7 +1038,7 @@ enum Permission { +@@ -1108,7 +1108,7 @@ enum Permission { Execute }; @@ -18,7 +18,7 @@ bool ChangeFilePermissions(const FilePath& path, Permission perm, bool allow) { struct stat stat_buf; -@@ -1069,7 +1069,7 @@ bool ChangeFilePermissions(const FilePath& path, Permi +@@ -1139,7 +1139,7 @@ bool ChangeFilePermissions(const FilePath& path, Permi } #endif // BUILDFLAG(IS_APPLE) diff --git a/www/chromium/files/patch-base_files_file__util__posix.cc b/www/chromium/files/patch-base_files_file__util__posix.cc index acafe295b237..058f7033f6a9 100644 --- a/www/chromium/files/patch-base_files_file__util__posix.cc +++ b/www/chromium/files/patch-base_files_file__util__posix.cc @@ -1,6 +1,6 @@ ---- base/files/file_util_posix.cc.orig 2022-04-21 18:48:31 UTC +--- base/files/file_util_posix.cc.orig 2022-05-19 14:06:27 UTC +++ base/files/file_util_posix.cc -@@ -695,32 +695,34 @@ bool CreateDirectoryAndGetError(const FilePath& full_p +@@ -697,32 +697,34 @@ bool CreateDirectoryAndGetError(const FilePath& full_p File::Error* error) { ScopedBlockingCall scoped_blocking_call( FROM_HERE, BlockingType::MAY_BLOCK); // For call to mkdir(). diff --git a/www/chromium/files/patch-base_i18n_icu__util.cc b/www/chromium/files/patch-base_i18n_icu__util.cc index efee9094958e..9f649aad1cf1 100644 --- a/www/chromium/files/patch-base_i18n_icu__util.cc +++ b/www/chromium/files/patch-base_i18n_icu__util.cc @@ -1,4 +1,4 @@ ---- base/i18n/icu_util.cc.orig 2022-04-21 18:48:31 UTC +--- base/i18n/icu_util.cc.orig 2022-05-19 14:06:27 UTC +++ base/i18n/icu_util.cc @@ -52,7 +52,7 @@ #endif @@ -9,7 +9,7 @@ !BUILDFLAG(IS_CHROMECAST)) #include "third_party/icu/source/i18n/unicode/timezone.h" #endif -@@ -345,7 +345,7 @@ void InitializeIcuTimeZone() { +@@ -324,7 +324,7 @@ void InitializeIcuTimeZone() { FuchsiaIntlProfileWatcher::GetPrimaryTimeZoneIdForIcuInitialization(); icu::TimeZone::adoptDefault( icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(zone_id))); diff --git a/www/chromium/files/patch-base_linux__util.cc b/www/chromium/files/patch-base_linux__util.cc index 853eb881f872..1f949df12ab0 100644 --- a/www/chromium/files/patch-base_linux__util.cc +++ b/www/chromium/files/patch-base_linux__util.cc @@ -1,4 +1,4 @@ ---- base/linux_util.cc.orig 2022-02-07 13:39:41 UTC +--- base/linux_util.cc.orig 2022-05-19 14:06:27 UTC +++ base/linux_util.cc @@ -15,6 +15,7 @@ @@ -6,9 +6,9 @@ #include <memory> +#include <sstream> + #include "base/base_export.h" #include "base/files/dir_reader_posix.h" - #include "base/files/file_util.h" -@@ -134,6 +135,9 @@ void SetLinuxDistro(const std::string& distro) { +@@ -135,6 +136,9 @@ void SetLinuxDistro(const std::string& distro) { } bool GetThreadsForProcess(pid_t pid, std::vector<pid_t>* tids) { @@ -18,7 +18,7 @@ // 25 > strlen("/proc//task") + strlen(std::to_string(INT_MAX)) + 1 = 22 char buf[25]; strings::SafeSPrintf(buf, "/proc/%d/task", pid); -@@ -153,6 +157,7 @@ bool GetThreadsForProcess(pid_t pid, std::vector<pid_t +@@ -154,6 +158,7 @@ bool GetThreadsForProcess(pid_t pid, std::vector<pid_t } return true; diff --git a/www/chromium/files/patch-base_memory_discardable__memory.cc b/www/chromium/files/patch-base_memory_discardable__memory.cc index 350a28608203..b75ef293703c 100644 --- a/www/chromium/files/patch-base_memory_discardable__memory.cc +++ b/www/chromium/files/patch-base_memory_discardable__memory.cc @@ -1,6 +1,6 @@ ---- base/memory/discardable_memory.cc.orig 2022-02-28 16:54:41 UTC +--- base/memory/discardable_memory.cc.orig 2022-05-19 14:06:27 UTC +++ base/memory/discardable_memory.cc -@@ -24,7 +24,7 @@ const base::Feature kMadvFreeDiscardableMemory{ +@@ -25,7 +25,7 @@ const base::Feature kMadvFreeDiscardableMemory{ "MadvFreeDiscardableMemory", base::FEATURE_DISABLED_BY_DEFAULT}; #endif // BUILDFLAG(IS_POSIX) @@ -9,7 +9,7 @@ const base::Feature kDiscardableMemoryBackingTrial{ "DiscardableMemoryBackingTrial", base::FEATURE_DISABLED_BY_DEFAULT}; -@@ -49,7 +49,7 @@ const base::FeatureParam<DiscardableMemoryTrialGroup> +@@ -50,7 +50,7 @@ const base::FeatureParam<DiscardableMemoryTrialGroup> namespace { @@ -18,7 +18,7 @@ DiscardableMemoryBacking GetBackingForFieldTrial() { *** 26710 LINES SKIPPED ***