electron/shell/browser
Birunthan Mohanathas 5223d1d774 fix: Fix compositor recycling when creating new BrowserView (#21372)
In #20829, we fixed compositor recycling when switching between
BrowserViews, but it turns out that there is one additional case that we
need to handle. When we create a completely new BrowserView instance, it
starts of as visible (even when it hasn't been added to the window),
which means that it will need its own compositor instead of using the
recycled compositor.

To fix this, lets make BrowserViews hidden by default until they're
added to the window. See also #19988. This is a potentially breaking
change given that the initial value of `document.visibilityState` will
now be `hidden`, but given the experimental status of BrowserViews, I
think this is a fine change to make. The old behavior can be restored
with `webPreferences: { show: true }`.

Notes: Fix compositor recycling when creating new BrowserView
2019-12-05 09:37:42 -08:00
..
api fix: Fix compositor recycling when creating new BrowserView (#21372) 2019-12-05 09:37:42 -08:00
extensions chore: fix build with enable_electron_extensions (#20959) 2019-11-04 15:59:31 -08:00
lib chore: remove native_mate (Part 11) (#20719) 2019-10-25 22:03:28 +09:00
linux chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
mac chore: remove no longer needed macOS SDK forward declarations (#19918) 2019-11-03 21:46:12 +03:00
media refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
net fix: restore --ignore-connections-limit functionality (#21286) 2019-11-26 13:27:33 -08:00
notifications chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
osr chore: bump chromium to 63be48daea281d4f8c834c2e707a7 (master) (#19923) 2019-09-18 15:58:00 -04:00
printing refactor: migrates util::Promise to gin (#20871) 2019-11-01 15:10:32 +09:00
resources Bump v9.0.0-nightly.20191205 2019-12-05 07:33:07 -08:00
ui fix: correctly plumb checkboxChecked on win (#21248) 2019-11-27 16:39:07 +09:00
win refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_autofill_driver.cc fix: use coordinate offsets in ShowAutofillPopup (#20232) 2019-09-19 08:05:57 -07:00
atom_autofill_driver.h refactor: mojofy autofill renderer->browser (#18760) 2019-08-19 13:13:24 -07:00
atom_autofill_driver_factory.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
atom_autofill_driver_factory.h refactor: mojofy autofill renderer->browser (#18760) 2019-08-19 13:13:24 -07:00
atom_browser_client.cc fix: implement 'login' event for WebContents (#20954) 2019-11-11 09:47:01 -08:00
atom_browser_client.h fix: implement 'login' event for WebContents (#20954) 2019-11-11 09:47:01 -08:00
atom_browser_context.cc refactor: rewrite the net module to simplify state tracking (#21244) 2019-11-26 17:01:13 -08:00
atom_browser_context.h fix: implement 'login' event for net.ClientRequest (#21096) 2019-11-14 10:01:18 -08:00
atom_browser_main_parts.cc fix: record cpu_profiler data for main process (#21187) 2019-11-21 18:05:41 -08:00
atom_browser_main_parts.h fix: record cpu_profiler data for main process (#21187) 2019-11-21 18:05:41 -08:00
atom_browser_main_parts_mac.mm fix: use xib file to construct macOS Menu (#20615) 2019-10-21 14:11:09 -07:00
atom_browser_main_parts_posix.cc chore: bump chromium to 63be48daea281d4f8c834c2e707a7 (master) (#19923) 2019-09-18 15:58:00 -04:00
atom_download_manager_delegate.cc refactor: migrates util::Promise to gin (#20871) 2019-11-01 15:10:32 +09:00
atom_download_manager_delegate.h chore: remove native_mate (Part 4) (#20146) 2019-09-09 00:10:18 +09:00
atom_gpu_client.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_gpu_client.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_javascript_dialog_manager.cc refactor: apply some 'clang-tidy -fix' changes (#20172) 2019-09-13 10:26:59 -04:00
atom_javascript_dialog_manager.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_navigation_throttle.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
atom_navigation_throttle.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_paths.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_permission_manager.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
atom_permission_manager.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_quota_permission_context.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
atom_quota_permission_context.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_speech_recognition_manager_delegate.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
atom_speech_recognition_manager_delegate.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
atom_web_ui_controller_factory.cc refactor: remove references to non-existent webui (#20867) 2019-11-04 09:50:31 -08:00
atom_web_ui_controller_factory.h chore: bump chromium to f1d9522c04ca8fa0a906f88ababe9 (master) (#18648) 2019-07-02 18:22:09 -07:00
auto_updater.cc chore: remove native_mate (Part 8) (#20598) 2019-10-18 09:31:29 +09:00
auto_updater.h chore: remove native_mate (Part 8) (#20598) 2019-10-18 09:31:29 +09:00
auto_updater_mac.mm chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
browser.cc fix: implement 'login' event for WebContents (#20954) 2019-11-11 09:47:01 -08:00
browser.h fix: implement 'login' event for WebContents (#20954) 2019-11-11 09:47:01 -08:00
browser_linux.cc feat: add app.getApplicationNameForProtocol API (#20399) 2019-11-06 17:50:33 -08:00
browser_mac.mm feat: add app.getApplicationNameForProtocol API (#20399) 2019-11-06 17:50:33 -08:00
browser_observer.h fix: implement 'login' event for WebContents (#20954) 2019-11-11 09:47:01 -08:00
browser_process_impl.cc chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
browser_process_impl.h chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
browser_win.cc feat: add app.getApplicationNameForProtocol API (#20399) 2019-11-06 17:50:33 -08:00
child_web_contents_tracker.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
child_web_contents_tracker.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
common_web_contents_delegate.cc fix: allow iframe-initiated HTML fullscreen to exit while in macOS fullscreen (#20962) 2019-11-05 13:34:45 -08:00
common_web_contents_delegate.h chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
common_web_contents_delegate_mac.mm refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
common_web_contents_delegate_views.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
cookie_change_notifier.cc chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
cookie_change_notifier.h chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
electron_pdf_web_contents_helper_client.cc refactor: remove references to non-existent webui (#20867) 2019-11-04 09:50:31 -08:00
electron_pdf_web_contents_helper_client.h refactor: remove references to non-existent webui (#20867) 2019-11-04 09:50:31 -08:00
fake_location_provider.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
fake_location_provider.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
feature_list.cc feat: enable picture-in-picture mode for video tags (#17686) 2019-08-22 19:17:50 +09:00
feature_list.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
font_defaults.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
font_defaults.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
javascript_environment.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
javascript_environment.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
login_handler.cc fix: implement 'login' event for net.ClientRequest (#21096) 2019-11-14 10:01:18 -08:00
login_handler.h fix: implement 'login' event for net.ClientRequest (#21096) 2019-11-14 10:01:18 -08:00
microtasks_runner.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
microtasks_runner.h chore: bump chromium to 62327c655093c821aa0fcfc6db53f5fd943e08c7 (master) (#19792) 2019-08-23 18:14:23 -07:00
native_browser_view.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
native_browser_view.h feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_browser_view_mac.h feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_browser_view_mac.mm feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_browser_view_views.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
native_browser_view_views.h feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_window.cc chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
native_window.h chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
native_window_mac.h chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
native_window_mac.mm chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
native_window_observer.h feat: add rotate gesture for macOS (#19294) 2019-07-23 14:42:26 -05:00
native_window_views.cc feat: implement win.setAspectRatio() on Linux (#19516) 2019-11-01 09:22:07 -07:00
native_window_views.h feat: implement win.setAspectRatio() on Linux (#19516) 2019-11-01 09:22:07 -07:00
native_window_views_win.cc fix: allow chromium to handle WM_NCCALCSIZE for frameless windows (#21164) 2019-11-19 06:07:10 -08:00
network_hints_handler_impl.cc chore: bump chromium to f30828899e4cd7161f6dc6507023f (master) (#20824) 2019-11-05 18:41:20 -05:00
network_hints_handler_impl.h chore: bump chromium to f30828899e4cd7161f6dc6507023f (master) (#20824) 2019-11-05 18:41:20 -05:00
node_debugger.cc chore: remove native_mate (Part 14) (#21365) 2019-12-05 18:46:34 +09:00
node_debugger.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
pref_store_delegate.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
pref_store_delegate.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
relauncher.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
relauncher.h chore: fix linting after shell rename 2019-06-19 17:33:28 -07:00
relauncher_linux.cc refactor: apply some 'clang-tidy -fix' changes (#20172) 2019-09-13 10:26:59 -04:00
relauncher_mac.cc refactor: replace includes for atom with shell 2019-06-19 17:33:28 -07:00
relauncher_win.cc refactor: replace includes for atom with shell 2019-06-19 17:33:28 -07:00
session_preferences.cc chore: bump chromium to 63be48daea281d4f8c834c2e707a7 (master) (#19923) 2019-09-18 15:58:00 -04:00
session_preferences.h fix: ignore non-absolute session preload script paths when sandboxed (#19066) 2019-07-03 08:05:45 -07:00
special_storage_policy.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
special_storage_policy.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
unresponsive_suppressor.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
unresponsive_suppressor.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
web_contents_permission_helper.cc chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
web_contents_permission_helper.h chore: bump chromium to f1d9522c04ca8fa0a906f88ababe9 (master) (#18648) 2019-07-02 18:22:09 -07:00
web_contents_preferences.cc feat: enable builtin spellchecker (#20692) 2019-10-31 13:11:51 -07:00
web_contents_preferences.h chore: remove native_mate (Part 11) (#20719) 2019-10-25 22:03:28 +09:00
web_contents_zoom_controller.cc chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
web_contents_zoom_controller.h chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
web_dialog_helper.cc refactor: migrates util::Promise to gin (#20871) 2019-11-01 15:10:32 +09:00
web_dialog_helper.h chore: DirectoryLister memory management improvement (#18634) 2019-07-01 07:58:06 -07:00
web_view_guest_delegate.cc chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
web_view_guest_delegate.h chore: bump chromium to f1d9522c04ca8fa0a906f88ababe9 (master) (#18648) 2019-07-02 18:22:09 -07:00
web_view_manager.cc fix: check for validity of guest webcontents (#21019) 2019-11-07 07:39:48 -08:00
web_view_manager.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
window_list.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
window_list.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
window_list_observer.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
zoom_level_delegate.cc chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
zoom_level_delegate.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00