electron/patches/chromium
Athul Iddya 905e41bbdd
fix: use StartUpdating method for PipeWire capturer (#38833)
* fix: use StartUpdating method for PipeWire capturer

Fixed a crash related to PipeWire capturer by adapting to Chromium's
interface changes. Chromium expects a call to
`NativeDesktopMediaList::StartUpdating` with an implementation of
`DesktopMediaListObserver` for delegated capturers like PipeWire. This
interface allows listening to user permission events and listing
sources only after the user has made a choice on the permission dialog.

The interface has been implemented by an inner class to allow listening
to screen and window capture permissions concurrently using two
instances of the class. A patch that was resetting the capturer on the
first refresh has been changed to exclude PipeWire. PipeWire capturer
object will follow the lifecycle of `NativeDesktopMediaList`, as is the
case in Chromium.

Fixes #37463

* fix: wait for thumbnails from PipeWire when necessary

The PipeWire stream starts after the dialog is dismissed. If the sources
are listed immediately afterwards, the thumbnail may not have been
generated by that time. Explicitly wait for both thumbnail generation
and a selection on the source dialog before listing sources.
2023-07-11 10:21:11 +02:00
..
.patches fix: use Chromium's way to compute min/max sizes (#38974) 2023-07-05 11:02:05 -04:00
accelerator.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
add_contentgpuclient_precreatemessageloop_callback.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
add_didinstallconditionalfeatures.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
add_electron_deps_to_license_credits_file.patch chore: bump chromium to 116.0.5833.0 (main) (#38809) 2023-06-15 16:37:01 -04:00
add_gin_converter_support_for_arraybufferview.patch feat: add protocol.handle (#36674) 2023-03-27 10:00:55 -07:00
add_maximized_parameter_to_linuxui_getwindowframeprovider.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
add_ui_scopedcliboardwriter_writeunsaferawdata.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
add_webmessageportconverter_entangleandinjectmessageportchannel.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
allow_disabling_blink_scheduler_throttling_per_renderview.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
allow_in-process_windows_to_have_different_web_prefs.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
allow_new_privileges_in_unsandboxed_child_processes.patch chore: bump chromium to 113.0.5636.0 (main) (#37130) 2023-03-10 10:07:42 -06:00
allow_setting_secondary_label_via_simplemenumodel.patch chore: bump chromium to 116.0.5829.0 (main) (#38726) 2023-06-13 14:45:48 -04:00
blink_file_path.patch chore: bump chromium to 116.0.5791.0 (main) (#38448) 2023-05-25 16:10:08 +02:00
blink_local_frame.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
boringssl_build_gn.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
build_add_electron_tracing_category.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
build_allow_electron_to_use_exec_script.patch chore: bump chromium to 111.0.5518.0 (main) (#36575) 2023-01-05 21:35:34 -05:00
build_disable_partition_alloc_on_mac.patch chore: bump chromium to 114.0.5690.0 (main) (#37780) 2023-04-03 18:56:57 +02:00
build_disable_print_content_analysis.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
build_do_not_depend_on_packed_resource_integrity.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
build_gn.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
build_libc_as_static_library.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
build_make_libcxx_abi_unstable_false_for_electron.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
build_only_use_the_mas_build_config_in_the_required_components.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
can_create_window.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
chore_add_electron_deps_to_gitignores.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
chore_allow_chromium_to_handle_synthetic_mouse_events_for_touch.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
chore_defer_usb_service_getdevices_request_until_usb_service_is.patch fix: WebUSB on ARM64 macs (#37441) 2023-03-07 12:40:40 -05:00
chore_introduce_blocking_api_for_electron.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
chore_patch_out_partition_attribute_dcheck_for_webviews.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
chore_patch_out_profile_methods_in_chrome_browser_pdf.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
chore_patch_out_profile_methods_in_profile_selections_cc.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
chore_patch_out_profile_methods_in_titlebar_config.patch chore: bump chromium to 115.0.5790.0 (main) (#38418) 2023-05-25 09:54:26 +02:00
chore_provide_iswebcontentscreationoverridden_with_full_params.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
command-ismediakey.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
crash_allow_setting_more_options.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
crashpad_pid_check.patch chore: bump chromium to 108.0.5329.0 (main) (#35628) 2022-10-03 13:21:00 -07:00
create_browser_v8_snapshot_file_name_fuse.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
custom_protocols_plzserviceworker.patch chore: bump chromium to 116.0.5829.0 (main) (#38726) 2023-06-13 14:45:48 -04:00
dcheck.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
desktop_media_list.patch fix: use StartUpdating method for PipeWire capturer (#38833) 2023-07-11 10:21:11 +02:00
disable_color_correct_rendering.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
disable_compositor_recycling.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
disable_freezing_flags_after_init_in_node.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
disable_hidden.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
disable_unload_metrics.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
dom_storage_limits.patch chore: bump chromium to 108.0.5329.0 (main) (#35628) 2022-10-03 13:21:00 -07:00
dump_syms.patch chore: bump chromium to 108.0.5329.0 (main) (#35628) 2022-10-03 13:21:00 -07:00
enable_reset_aspect_ratio.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
export_gin_v8platform_pageallocator_for_usage_outside_of_the_gin.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
expose_setuseragent_on_networkcontext.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
expose_v8initializer_codegenerationcheckcallbackinmainthread.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
extend_apply_webpreferences.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
feat_add_data_parameter_to_processsingleton.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
feat_add_onclose_to_messageport.patch chore: bump chromium to 114.0.5708.0 (main) (#37834) 2023-04-12 07:37:48 -04:00
feat_add_set_theme_source_to_allow_apps_to.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
feat_add_streaming-protocol_registry_to_multibuffer_data_source.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
feat_add_support_for_overriding_the_base_spellchecker_download_url.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
feat_allow_embedders_to_add_observers_on_created_hunspell.patch chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
feat_configure_launch_options_for_service_process.patch chore: bump chromium to 116.0.5833.0 (main) (#38809) 2023-06-15 16:37:01 -04:00
feat_enable_offscreen_rendering_with_viz_compositor.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
feat_ensure_mas_builds_of_the_same_application_can_use_safestorage.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
feat_expose_raw_response_headers_from_urlloader.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
feat_filter_out_non-shareable_windows_in_the_current_application_in.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_adapt_exclusive_access_for_electron_needs.patch chore: bump chromium to 114.0.5715.0 (main) (#37976) 2023-04-17 14:40:26 -07:00
fix_add_check_for_sandbox_then_result.patch chore: bump chromium to 111.0.5518.0 (main) (#36575) 2023-01-05 21:35:34 -05:00
fix_allow_guest_webcontents_to_enter_fullscreen.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_aspect_ratio_with_max_size.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_crash_loading_non-standard_schemes_in_iframes.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_crash_on_nativetheme_change_during_context_menu_close.patch fix: menu border being created properly on Windows 11 (#38998) 2023-07-06 15:46:12 +02:00
fix_crash_when_saving_edited_pdf_files.patch chore: bump chromium to 113.0.5636.0 (main) (#37130) 2023-03-10 10:07:42 -06:00
fix_dont_delete_SerialPortManager_on_main_thread.patch chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
fix_export_zlib_symbols.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
fix_harden_blink_scriptstate_maybefrom.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_media_key_usage_with_globalshortcuts.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
fix_non-client_mouse_tracking_and_message_bubbling_on_windows.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
fix_on-screen-keyboard_hides_on_input_blur_in_webview.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_patch_out_profile_refs_in_accessibility_ui.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
fix_properly_honor_printing_page_ranges.patch chore: bump chromium to 116.0.5829.0 (main) (#38726) 2023-06-13 14:45:48 -04:00
fix_remove_caption-removing_style_call.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_remove_profiles_from_spellcheck_service.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
fix_return_v8_value_from_localframe_requestexecutescript.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
fix_select_the_first_menu_item_when_opened_via_keyboard.patch feat: add support for keyboard initialized menu popup (#38903) 2023-06-29 15:54:06 -07:00
fix_tray_icon_gone_on_lock_screen.patch chore: bump chromium to 116.0.5829.0 (main) (#38726) 2023-06-13 14:45:48 -04:00
frame_host_manager.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
gin_enable_disable_v8_platform.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
gpu_notify_when_dxdiag_request_fails.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
gritsettings_resource_ids.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
gtk_visibility.patch chore: bump chromium to 116.0.5833.0 (main) (#38809) 2023-06-15 16:37:01 -04:00
hack_plugin_response_interceptor_to_point_to_electron.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
hack_to_allow_gclient_sync_with_host_os_mac_on_linux_in_ci.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
ignore_rc_check.patch chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
introduce_ozoneplatform_electron_can_call_x11_property.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
isolate_holder.patch chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
load_v8_snapshot_in_browser_process.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
logging_win32_only_create_a_console_if_logging_to_stderr.patch chore: bump chromium to 113.0.5651.0 (main) (#37553) 2023-03-15 18:20:32 +09:00
make_gtk_getlibgtk_public.patch chore: bump chromium to 108.0.5329.0 (main) (#35628) 2022-10-03 13:21:00 -07:00
mas-cgdisplayusesforcetogray.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
mas_avoid_usage_of_private_macos_apis.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
mas_blink_no_private_api.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
mas_disable_custom_window_frame.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
mas_disable_remote_accessibility.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
mas_disable_remote_layer.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
mas_no_private_api.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
mas_use_public_apis_to_determine_if_a_font_is_a_system_font.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
network_service_allow_remote_certificate_verification_logic.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
notification_provenance.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
pepper_plugin_support.patch chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
picture-in-picture.patch chore: bump chromium to 115.0.5760.0 (main) (#38033) 2023-05-10 10:47:48 -04:00
port_autofill_colors_to_the_color_pipeline.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
preconnect_manager.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
printing.patch fix: printing optional access crash on Windows (#38976) 2023-07-10 09:26:29 -04:00
process_singleton.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
proxy_config_monitor.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
refactor_expose_cursor_changes_to_the_webcontentsobserver.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
refactor_restore_base_adaptcallbackforrepeating.patch chore: bump chromium to 114.0.5690.0 (main) (#37780) 2023-04-03 18:56:57 +02:00
remove_usage_of_incognito_apis_in_the_spellchecker.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
render_widget_host_view_base.patch chore: bump chromium to 116.0.5845.0 (main) (#38827) 2023-06-22 10:51:15 +02:00
render_widget_host_view_mac.patch chore: bump chromium to 116.0.5817.0 (main) (#38465) 2023-06-09 16:08:36 -07:00
resource_file_conflict.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
scroll_bounce_flag.patch chore: bump chromium to 116.0.5829.0 (main) (#38726) 2023-06-13 14:45:48 -04:00
short-circuit_permissions_checks_in_mediastreamdevicescontroller.patch chore: bump chromium to 113.0.5636.0 (main) (#37130) 2023-03-10 10:07:42 -06:00
skip_atk_toolchain_check.patch chore: bump chromium to 108.0.5329.0 (main) (#35628) 2022-10-03 13:21:00 -07:00
support_mixed_sandbox_with_zygote.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
sysroot.patch chore: bump chromium to 115.0.5786.0 (main) (#38301) 2023-05-23 21:58:58 +02:00
unsandboxed_ppapi_processes_skip_zygote.patch chore: bump chromium to 113.0.5670.0 (main) (#37675) 2023-03-23 17:15:56 -04:00
upload_list_add_loadsync_method.patch chore: bump chromium to 113.0.5636.0 (main) (#37130) 2023-03-10 10:07:42 -06:00
web_contents.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
webview_cross_drag.patch chore: bump chromium to 116.0.5833.0 (main) (#38809) 2023-06-15 16:37:01 -04:00
webview_fullscreen.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
worker_context_will_destroy.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00
worker_feat_add_hook_to_notify_script_ready.patch chore: bump chromium to 117.0.5852.0 (main) (#38891) 2023-07-01 16:22:55 -04:00