electron/shell/browser/api
Samuel Maddock 4057e6b56e
fix: DesktopCapturer gc'd prior to capture completion (#28273)
desktopCapture.getSources() returns a promise which should resolve
when capturing finishes. Internally it creates an instance of
DesktopCapturer which is responsible for resolving or rejecting
the promise.

Between the time DesktopCapturer starts capturing frames and when
it finishes, it's possible for its handle to be GC'd leading to
it never resolving.

These changes pin the instance of DesktopCapturer until it either
finishes or errors.

fixes #25595
2021-03-18 13:43:35 -07:00
..
views chore: remove unused classes of views API (#22861) 2020-03-28 15:44:57 +09:00
electron_api_app.cc chore: remove TODO on SetHidden calls (#26746) 2020-12-01 21:36:23 -08:00
electron_api_app.h refactor: simplify child process tracking for app.getAppMetrics() (#26657) 2020-12-01 10:47:46 +09:00
electron_api_app_mac.mm feat: add app.runningUnderRosettaTranslation to detect running under rosetta (#26444) 2020-11-13 12:53:32 -08:00
electron_api_app_mas.mm fix: Resolve bookmarks without mounting network drives (#24708) 2020-08-20 15:01:08 -07:00
electron_api_auto_updater.cc refactor: ginify autoUpdater (#24678) 2020-07-28 11:04:34 -07:00
electron_api_auto_updater.h refactor: ginify autoUpdater (#24678) 2020-07-28 11:04:34 -07:00
electron_api_base_window.cc refactor: cleanup how WebContents is destroyed (#27920) 2021-03-07 21:14:12 +09:00
electron_api_base_window.h refactor: cleanup how WebContents is destroyed (#27920) 2021-03-07 21:14:12 +09:00
electron_api_browser_view.cc refactor: cleanup how WebContents is destroyed (#27920) 2021-03-07 21:14:12 +09:00
electron_api_browser_view.h fix: draggable regions exclusively on BrowserViews (#26145) 2020-10-27 14:28:43 -07:00
electron_api_browser_window.cc fix: change #if defined(OS_MACOSX) to #if defined(OS_MAC) (#28102) 2021-03-11 21:07:21 -08:00
electron_api_browser_window.h refactor: cleanup how WebContents is destroyed (#27920) 2021-03-07 21:14:12 +09:00
electron_api_browser_window_mac.mm fix: draggable regions calculation in BrowserWindow/BrowserView (#26690) 2020-11-30 21:02:04 -08:00
electron_api_browser_window_views.cc fix: draggable regions exclusively on BrowserViews (#26145) 2020-10-27 14:28:43 -07:00
electron_api_content_tracing.cc fix: reject contentTracing.stopRecording on failure (#26608) 2020-11-23 10:20:40 -08:00
electron_api_cookies.cc chore: bump chromium to adc5df74b86afdff676989ced8cd3 (master) (#26223) 2020-11-13 16:16:56 -08:00
electron_api_cookies.h chore: bump chromium to 096e5313aaf19dfa0c4710145c34d (master) (#26535) 2020-12-14 10:57:36 -08:00
electron_api_crash_reporter.cc chore: bump chromium to 90.0.4415.0 (master) (#27694) 2021-03-04 09:27:05 -08:00
electron_api_crash_reporter.h fix: send guid with linux crashes (#24881) 2020-08-07 15:30:49 -07:00
electron_api_data_pipe_holder.cc chore: bump chromium to 90.0.4415.0 (master) (#27694) 2021-03-04 09:27:05 -08:00
electron_api_data_pipe_holder.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_debugger.cc fix: actually clear pending requests in devtoolsagenthost (#27379) 2021-01-21 11:00:43 -08:00
electron_api_debugger.h refactor: EventEmitters without gin_helper (#22726) 2020-03-18 12:57:08 -07:00
electron_api_desktop_capturer.cc fix: DesktopCapturer gc'd prior to capture completion (#28273) 2021-03-18 13:43:35 -07:00
electron_api_desktop_capturer.h fix: DesktopCapturer gc'd prior to capture completion (#28273) 2021-03-18 13:43:35 -07:00
electron_api_dialog.cc chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -07:00
electron_api_download_item.cc chore: use auto to avoid repeating type (#26113) 2020-10-26 11:56:31 -07:00
electron_api_download_item.h refactor: ginify DownloadItem (#22924) 2020-04-02 17:22:46 -07:00
electron_api_event.cc chore: rename node bindings atom => electron (#22176) 2020-02-14 06:25:39 -05:00
electron_api_event_emitter.cc chore: stop leaking v8 environment (#22761) 2020-03-20 14:15:55 -07:00
electron_api_event_emitter.h refactor: EventEmitters without gin_helper (#22726) 2020-03-18 12:57:08 -07:00
electron_api_global_shortcut.cc chore: bump chromium to e836cbe709f3cd703f233de8eb6cc6ec99b72c9d (#27475) 2021-02-09 12:16:21 -08:00
electron_api_global_shortcut.h refactor: ginify globalShortcut (#22755) 2020-03-19 14:33:45 -07:00
electron_api_in_app_purchase.cc feat: expose currencyCode on Product struct in IAP module (#25058) 2020-08-21 10:41:40 -07:00
electron_api_in_app_purchase.h refactor: ginify InAppPurchase (#24674) 2020-07-23 14:55:41 -07:00
electron_api_menu.cc feat: add support for share menu on macOS (#25629) 2020-10-19 18:33:06 -07:00
electron_api_menu.h feat: add support for share menu on macOS (#25629) 2020-10-19 18:33:06 -07:00
electron_api_menu_mac.h refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
electron_api_menu_mac.mm fix: bad menu position when no positioning item specified (#28224) 2021-03-18 13:37:14 -07:00
electron_api_menu_views.cc refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
electron_api_menu_views.h refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
electron_api_native_theme.cc chore: bump chromium to a264339194bfa02f5ecb3b8cba449 (master) (#27111) 2021-01-12 15:31:23 -08:00
electron_api_native_theme.h chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -07:00
electron_api_native_theme_mac.mm chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_net.cc feat: add net.online / net.isOnline() (#21004) 2020-10-20 19:55:06 -07:00
electron_api_net_log.cc chore: bump chromium to e836cbe709f3cd703f233de8eb6cc6ec99b72c9d (#27475) 2021-02-09 12:16:21 -08:00
electron_api_net_log.h refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
electron_api_notification.cc feat: custom toast xml and failure reporting for notifications (#25401) 2020-09-29 12:20:10 -07:00
electron_api_notification.h chore: use consistent parameter names (#26162) 2020-10-27 10:18:36 -05:00
electron_api_power_monitor.cc feat: add powerMonitor.onBatteryPower (#26494) 2020-11-16 16:31:46 -08:00
electron_api_power_monitor.h fix: delay emitting powerMonitor events on windows (#25836) 2020-10-27 10:25:23 +09:00
electron_api_power_monitor_mac.mm feat: add macOS fast user switching evt (#25321) 2020-09-22 10:12:39 -07:00
electron_api_power_monitor_win.cc fix: delay emitting powerMonitor events on windows (#25836) 2020-10-27 10:25:23 +09:00
electron_api_power_save_blocker.cc refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
electron_api_power_save_blocker.h refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
electron_api_printing.cc build: fix build with enable_printing=false (#26597) 2020-11-19 10:05:49 -05:00
electron_api_protocol.cc refactor: Chromium code style for enum classes (#26165) 2020-10-27 10:51:45 -07:00
electron_api_protocol.h refactor: Chromium code style for enum classes (#26165) 2020-10-27 10:51:45 -07:00
electron_api_screen.cc refactor: replace base::Bind() with base::BindOnce() / base::BindRepeating() (#27447) 2021-01-25 10:27:40 +09:00
electron_api_screen.h refactor: ginify Screen (#24677) 2020-07-28 11:04:01 -07:00
electron_api_service_worker_context.cc feat: support registering MV3 extension service workers (#27562) 2021-02-11 10:58:03 -05:00
electron_api_service_worker_context.h feat: support registering MV3 extension service workers (#27562) 2021-02-11 10:58:03 -05:00
electron_api_session.cc feat: implement allowFileAccess loadExtension option (#25198) 2021-02-01 14:41:08 -08:00
electron_api_session.h feat: implement allowFileAccess loadExtension option (#25198) 2021-02-01 14:41:08 -08:00
electron_api_system_preferences.cc chore: bump chromium to a264339194bfa02f5ecb3b8cba449 (master) (#27111) 2021-01-12 15:31:23 -08:00
electron_api_system_preferences.h refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
electron_api_system_preferences_mac.mm fix: convert system colors to device color space in systemPreferences (#28121) 2021-03-12 23:31:08 -08:00
electron_api_system_preferences_win.cc chore: use auto to avoid repeating type (#26113) 2020-10-26 11:56:31 -07:00
electron_api_tray.cc refactor: remove path from nativeImage converter (#26546) 2021-01-04 12:58:31 -08:00
electron_api_tray.h refactor: remove path from nativeImage converter (#26546) 2021-01-04 12:58:31 -08:00
electron_api_url_loader.cc chore: bump chromium to bf3f97675b5d9eade34526ebf730c (master) (#27305) 2021-01-25 08:46:00 -08:00
electron_api_url_loader.h chore: use consistent parameter names (#26162) 2020-10-27 10:18:36 -05:00
electron_api_view.cc chore: remove unused classes of views API (#22861) 2020-03-28 15:44:57 +09:00
electron_api_view.h chore: use consistent parameter names (#26162) 2020-10-27 10:18:36 -05:00
electron_api_web_contents.cc fix: ensure child window transparency works (#28054) 2021-03-10 12:44:36 -08:00
electron_api_web_contents.h fix: ensure child window transparency works (#28054) 2021-03-10 12:44:36 -08:00
electron_api_web_contents_impl.cc chore: bump chromium to ec5bc1743792d64724693eb357083 (master) (#24984) 2020-09-21 01:00:36 -07:00
electron_api_web_contents_mac.mm fix: restore window event redispatching on mac (#27701) 2021-02-18 10:31:53 +09:00
electron_api_web_contents_view.cc refactor: cleanup how WebContents is destroyed (#27920) 2021-03-07 21:14:12 +09:00
electron_api_web_contents_view.h chore: make WebContentsView take webPreferences as parameter (#22997) 2020-04-09 16:01:16 +09:00
electron_api_web_frame_main.cc chore: revert webFrameMain.executeJavaScriptInIsolatedWorld method (#27926) 2021-03-01 10:07:25 -05:00
electron_api_web_frame_main.h chore: revert webFrameMain.executeJavaScriptInIsolatedWorld method (#27926) 2021-03-01 10:07:25 -05:00
electron_api_web_request.cc feat: add frame and webContents to webRequest details (#27078) 2021-01-11 12:20:43 +09:00
electron_api_web_request.h refactor: convert more C++ enums to C++11 enum classes (#26850) 2020-12-08 13:39:33 +09:00
electron_api_web_view_manager.cc chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -07:00
event.cc fix: crash on exit in Event destructor (#26537) 2020-11-24 15:41:06 +09:00
event.h chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
frame_subscriber.cc chore: bump chromium to 90.0.4415.0 (master) (#27694) 2021-03-04 09:27:05 -08:00
frame_subscriber.h chore: bump chromium to 90.0.4415.0 (master) (#27694) 2021-03-04 09:27:05 -08:00
gpu_info_enumerator.cc chore: bump chromium to 6d130075d378a64187360ba4e7820 (master) (#24256) 2020-07-13 21:13:34 -04:00
gpu_info_enumerator.h chore: bump chromium to 6d130075d378a64187360ba4e7820 (master) (#24256) 2020-07-13 21:13:34 -04:00
gpuinfo_manager.cc chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -07:00
gpuinfo_manager.h chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064) 2020-03-03 13:35:05 -08:00
message_port.cc refactor: replace base::Bind() with base::BindOnce() / base::BindRepeating() (#27447) 2021-01-25 10:27:40 +09:00
message_port.h chore: use consistent parameter names (#26162) 2020-10-27 10:18:36 -05:00
process_metric.cc refactor: Chromium code style for enum classes (#26165) 2020-10-27 10:51:45 -07:00
process_metric.h refactor: Chromium code style for enum classes (#26165) 2020-10-27 10:51:45 -07:00
save_page_handler.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
save_page_handler.h refactor: migrates util::Promise to gin (#20871) 2019-11-01 15:10:32 +09:00
ui_event.cc refactor: remove uses of v8::Isolate::GetCurrent (#24179) 2020-06-22 09:35:24 -07:00
ui_event.h refactor: ginify Tray (#22822) 2020-03-30 10:32:02 +09:00