electron/atom/browser/api
Pedro Pontes d5d1fa8290 fix: use appropriate site instance for cross-site nav's (#15821)
* fix: use Chromium's determined new site instance as candidate when navigating.

When navigating to a new address, consider using Chromium's determined site instance
for the new page as it should belong to an existing browsing instance when the
navigation was triggered by window.open().

fixes 8100.

* Revert "fix: use Chromium's determined new site instance as candidate when navigating."

This reverts commit eb95f935654a2c4d4457821297670836c10fdfd5.

* fix: delegate site instance creation back to content when sandboxed.

* fix: ensure site isolation is on

* test: adapt ut for cross-site navigation

* fix: register pending processes during a navigation.

* refactor: dont call loadURL for a window constructed from an existing webContents.

* test: add sandboxed affinity UT's.

* fix: check affinity before deciding if to force a new site instance.

* chore: adapt subsequent patch.

* refactor: constify logically const methods.

* fix: do not reuse site instances when navigation redirects cross-site.

* test: ensure localStorage accessible after x-site redirect.

* test: adapt localStorage acess denied UT for site isolation.

* fix: do not send render-view-deleted for speculative frames.

* chore: amend tests after rebase.

* test: add ut for webContents' render-view-deleted emission

* fix: introduce current-render-view-deleted for current RVH's deletions.

Revert render-view-deleted to being emitted with any RVH's deletion.
current-render-view-deleted is emitted only when the RVH being deleted
is the current one.

* refactor: style and comments fixed.
2018-12-05 17:03:39 +09:00
..
views view: add ResizeArea class (#15752) 2018-11-21 22:39:59 +09:00
atom_api_app.cc Fix invalid handle errors found with App Verifier 2018-12-03 20:07:39 +05:30
atom_api_app.h feat: Add app.getLocaleCountryCode() method for region detection (#15035) 2018-11-20 15:33:23 -05:00
atom_api_app_mas.mm
atom_api_auto_updater.cc
atom_api_auto_updater.h
atom_api_browser_view.cc fix: destroy WebContents synchronously on shutdown (#15541) 2018-11-08 07:57:28 -08:00
atom_api_browser_view.h fix: destroy WebContents synchronously on shutdown (#15541) 2018-11-08 07:57:28 -08:00
atom_api_browser_window.cc chore: fix v8 deprecation warnings 2018-12-03 20:07:43 +05:30
atom_api_browser_window.h refactor: move devtools from brightray to atom (#15234) 2018-10-19 15:50:30 +02:00
atom_api_browser_window_mac.mm refactor: move devtools from brightray to atom (#15234) 2018-10-19 15:50:30 +02:00
atom_api_browser_window_views.cc
atom_api_content_tracing.cc
atom_api_cookies.cc refactor: create request context from network context (#14656) 2018-10-04 13:08:56 -05:00
atom_api_cookies.h refactor: create request context from network context (#14656) 2018-10-04 13:08:56 -05:00
atom_api_debugger.cc fix: send null in debugger callback when no error (#14814) 2018-09-27 17:43:45 +10:00
atom_api_debugger.h chore: enable debugger api specs (#14475) 2018-09-07 00:44:22 +10:00
atom_api_desktop_capturer.cc feat: add support for DesktopCapturerSource.appIcon 2018-12-04 15:42:49 +09:00
atom_api_desktop_capturer.h feat: add support for DesktopCapturerSource.appIcon 2018-12-04 15:42:49 +09:00
atom_api_dialog.cc feat: add methods to allow customization of save dialog during will-download event (#15497) 2018-11-08 10:51:06 -04:00
atom_api_download_item.cc feat: add methods to allow customization of save dialog during will-download event (#15497) 2018-11-08 10:51:06 -04:00
atom_api_download_item.h feat: add methods to allow customization of save dialog during will-download event (#15497) 2018-11-08 10:51:06 -04:00
atom_api_event.cc feat: add remote.require() / remote.getGlobal() filtering (#15014) 2018-10-18 14:36:45 +11:00
atom_api_global_shortcut.cc feat: allow registering multiple shortcuts (#15542) 2018-11-07 09:40:38 -08:00
atom_api_global_shortcut.h feat: allow registering multiple shortcuts (#15542) 2018-11-07 09:40:38 -08:00
atom_api_in_app_purchase.cc
atom_api_in_app_purchase.h
atom_api_menu.cc fix: [UI] Resolve method conflict between MenuModel, SimpleMenuModel::Delegate 2018-12-03 20:07:39 +05:30
atom_api_menu.h fix: [UI] Resolve method conflict between MenuModel, SimpleMenuModel::Delegate 2018-12-03 20:07:39 +05:30
atom_api_menu_mac.h
atom_api_menu_mac.mm ScopedNestableTaskAllower doesn't take an argument 2018-10-04 00:12:54 +02:00
atom_api_menu_views.cc fix: fix gn cpplint warnings (#14583) 2018-09-12 19:25:56 -05:00
atom_api_menu_views.h fix: fix gn cpplint warnings (#14583) 2018-09-12 19:25:56 -05:00
atom_api_net.cc
atom_api_net.h
atom_api_net_log.cc refactor: move IOThread and NetLog ownership to g_browser_process 2018-11-14 12:42:24 +05:30
atom_api_net_log.h refactor: create request context from network context (#14656) 2018-10-04 13:08:56 -05:00
atom_api_notification.cc refactor: move notifications from brightray to atom (#15209) 2018-10-17 20:01:11 +02:00
atom_api_notification.h refactor: move notifications from brightray to atom (#15209) 2018-10-17 20:01:11 +02:00
atom_api_power_monitor.cc
atom_api_power_monitor.h
atom_api_power_monitor_mac.mm chore: run clang-format 2018-09-19 17:18:10 +02:00
atom_api_power_monitor_win.cc chore: run clang-format 2018-09-19 17:18:10 +02:00
atom_api_power_save_blocker.cc chore: post_task and friends now live under base/task 2018-12-03 20:07:38 +05:30
atom_api_power_save_blocker.h refactor: use public WakeLock interface (#15351) 2018-10-23 22:12:58 -07:00
atom_api_protocol.cc refactor: create request context from network context (#14656) 2018-10-04 13:08:56 -05:00
atom_api_protocol.h refactor: create request context from network context (#14656) 2018-10-04 13:08:56 -05:00
atom_api_render_process_preferences.cc refactor: remove WebContents::CreateFrom (#15241) 2018-10-19 17:52:07 +09:00
atom_api_render_process_preferences.h
atom_api_screen.cc
atom_api_screen.h
atom_api_session.cc chore: fix v8 deprecation warnings 2018-12-03 20:07:43 +05:30
atom_api_session.h stop using x-devtools-emulate-network-conditions-client-id header 2018-10-09 14:38:00 -07:00
atom_api_system_preferences.cc feat: add media access APIs for macOS Mojave (#15624) 2018-12-04 07:54:13 -08:00
atom_api_system_preferences.h feat: add media access APIs for macOS Mojave (#15624) 2018-12-04 07:54:13 -08:00
atom_api_system_preferences_mac.mm feat: add media access APIs for macOS Mojave (#15624) 2018-12-04 07:54:13 -08:00
atom_api_system_preferences_win.cc feat: detect high contrast color mode (#15493) 2018-10-31 10:22:18 -04:00
atom_api_top_level_window.cc chore: fix v8 deprecation warnings 2018-12-03 20:07:43 +05:30
atom_api_top_level_window.h feat: add evt listeners for SetAlwaysOnTop (#14951) 2018-10-04 13:02:16 -05:00
atom_api_tray.cc fix: don't crash on tray.setContextMenu(null) (#14322) 2018-08-27 11:58:47 -05:00
atom_api_tray.h
atom_api_url_request.cc
atom_api_url_request.h
atom_api_view.cc build: define compile time features with buildflag header (#14840) 2018-10-01 16:00:53 -04:00
atom_api_view.h build: define compile time features with buildflag header (#14840) 2018-10-01 16:00:53 -04:00
atom_api_web_contents.cc fix: use appropriate site instance for cross-site nav's (#15821) 2018-12-05 17:03:39 +09:00
atom_api_web_contents.h fix: use appropriate site instance for cross-site nav's (#15821) 2018-12-05 17:03:39 +09:00
atom_api_web_contents_mac.mm
atom_api_web_contents_osr.cc fix: update and enable osr (#15046) 2018-10-11 09:14:01 -04:00
atom_api_web_contents_view.cc fix: Remove DEFINE_WEB_CONTENTS_USER_DATA_KEY in //electron. 2018-12-03 20:07:39 +05:30
atom_api_web_contents_view.h refactor: move devtools from brightray to atom (#15234) 2018-10-19 15:50:30 +02:00
atom_api_web_request.cc fix: crash in webRequest due to unsafe static_cast 2018-10-09 14:38:00 -07:00
atom_api_web_request.h
atom_api_web_view_manager.cc fix: use OOPIF for webview tag (#13869) 2018-08-16 15:57:40 -07:00
event.cc
event.h
event_emitter.cc
event_emitter.h chore: fix v8 deprecation warnings 2018-12-03 20:07:43 +05:30
frame_subscriber.cc fix: reimplement FrameSubscriber with mojo, re-enable tests 2018-12-03 20:07:43 +05:30
frame_subscriber.h fix: reimplement FrameSubscriber with mojo, re-enable tests 2018-12-03 20:07:43 +05:30
gpu_info_enumerator.cc Collect NV12, YUY2, and BGRA overlay support information in GPUInfo 2018-10-09 14:38:00 -07:00
gpu_info_enumerator.h Collect NV12, YUY2, and BGRA overlay support information in GPUInfo 2018-10-09 14:38:00 -07:00
gpuinfo_manager.cc fix: add microtask runner and fix promise test (#15071) 2018-10-16 02:26:47 +11:00
gpuinfo_manager.h fix: add microtask runner and fix promise test (#15071) 2018-10-16 02:26:47 +11:00
save_page_handler.cc
save_page_handler.h
stream_subscriber.cc refactor: enable weak ptr unwrap sequence dcheck (#14816) 2018-10-05 15:29:57 -05:00
stream_subscriber.h chore: run clang-format to clear linter for #14977 (#14990) 2018-10-05 10:38:27 -05:00
trackable_object.cc fix: fix gn cpplint warnings (#14583) 2018-09-12 19:25:56 -05:00
trackable_object.h