electron/shell/browser/api
Shelley Vohr 7d04f729d8
fix: beforeunload and unload firing in BrowserViews (#28382)
* fix: beforeunload and unload firing in BrowserViews

* Ensure UserGesture is sent for BV webContents

* spec: add tests

* refactor: clean up logic

* spec: fixup specs

* docs: document event behavior for BrowserViews
2021-04-07 00:16:10 -07:00
..
views
content_tracing.idl Merge remote-tracking branch 'origin/master' into roller/chromium/master 2021-03-23 11:14:58 -07:00
electron_api_app.cc only bind setAppUserModelId on windows 2021-03-24 10:55:32 -07: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
electron_api_auto_updater.h
electron_api_base_window.cc chore: omit some unnecessary conversions 2021-03-30 17:08:13 -07:00
electron_api_base_window.h Merge branch 'master' into roller/chromium/master 2021-03-15 18:43:25 -04:00
electron_api_browser_view.cc Merge branch 'master' into roller/chromium/master 2021-03-15 18:43:25 -04: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: beforeunload and unload firing in BrowserViews (#28382) 2021-04-07 00:16:10 -07:00
electron_api_browser_window.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04: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 Merge branch 'master' into roller/chromium/master 2021-03-30 09:47:35 -07: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
electron_api_debugger.cc fix: actually clear pending requests in devtoolsagenthost (#27379) 2021-01-21 11:00:43 -08:00
electron_api_debugger.h
electron_api_desktop_capturer.cc Merge remote-tracking branch 'origin/master' into roller/chromium/master 2021-03-23 11:14:58 -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 refactor: remove more uses of v8::Isolate::GetCurrent() (#28369) 2021-03-29 03:45:08 -07:00
electron_api_download_item.h refactor: remove more uses of v8::Isolate::GetCurrent() (#28369) 2021-03-29 03:45:08 -07:00
electron_api_event.cc
electron_api_event_emitter.cc
electron_api_event_emitter.h
electron_api_global_shortcut.cc chore: bump chromium to e836cbe709f3cd703f233de8eb6cc6ec99b72c9d (#27475) 2021-02-09 12:16:21 -08:00
electron_api_global_shortcut.h
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
electron_api_menu.cc Merge branch 'master' into roller/chromium/master 2021-03-30 09:47:35 -07:00
electron_api_menu.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04: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
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 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
electron_api_notification.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04: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 fix: make sure service worker scheme is registered with allowServiceWorkers (#28326) 2021-03-23 11:16:53 -04: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
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 refactor: remove more uses of v8::Isolate::GetCurrent() (#28369) 2021-03-29 03:45:08 -07:00
electron_api_session.h refactor: remove more uses of v8::Isolate::GetCurrent() (#28369) 2021-03-29 03:45:08 -07: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 Merge branch 'master' into roller/chromium/master 2021-03-15 18:43:25 -04: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 Merge branch 'master' into roller/chromium/master 2021-03-30 09:47:35 -07:00
electron_api_url_loader.h chore: use consistent parameter names (#26162) 2020-10-27 10:18:36 -05:00
electron_api_view.cc
electron_api_view.h chore: use consistent parameter names (#26162) 2020-10-27 10:18:36 -05:00
electron_api_web_contents.cc fix: beforeunload and unload firing in BrowserViews (#28382) 2021-04-07 00:16:10 -07:00
electron_api_web_contents.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04: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 Merge branch 'master' into roller/chromium/master 2021-03-15 18:43:25 -04:00
electron_api_web_contents_view.h
electron_api_web_frame_main.cc 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
electron_api_web_frame_main.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04: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
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
gpu_info_enumerator.h
gpuinfo_manager.cc chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -07:00
gpuinfo_manager.h
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
save_page_handler.h
ui_event.cc
ui_event.h