cef/libcef/browser
Marshall Greenblatt 7a56371b84 Fix draggable region update with BackForwardCache enabled (see issue #2421)
When BackForwardCache is enabled and the user navigates the main frame
back/forward a new RFH may be created for an existing main frame GlobalId value
and CefFrameHostImpl (e.g. an object that was previously Detach()ed after main
frame navigation called SetMainFrame, but for which RenderFrameDeleted was not
subsequently called due to insertion in the BackForwardCache). In this case we
can re-attach the new RFH to the existing main frame CefFrameHostImpl in
RenderFrameHostStateChanged and resume processing of messages.

Swapping back/forward to an existing (already loaded) renderer does not trigger
new notifications for draggable regions (e.g. RenderFrameObserver::
DraggableRegionsChanged is not called by default). We therefore explicitly
request an update of draggable regions by sending the DidStopLoading message to
the renderer.

A new |reattached| parameter is added to CefFrameHandler::OnFrameAttached to
support identification of BackForwardCache usage by the client.

To test with unit tests:
Run `ceftests --gtest_filter=DraggableRegionsTest.DraggableRegionsCrossOrigin
              --enable-features=BackForwardCache`

To test manually:
1. Run `cefclient --enable-features=BackForwardCache --use-views
   --url=http://tests/draggable`, note that draggable regions work.
2. Load https://www.google.com via the address bar, note that draggable regions
   are removed.
3. Go back to http://tests/draggable, note that draggable regions work.
4. Go forward to https://www.google.com, note that draggable regions are
   removed.
2021-09-16 18:25:43 +03:00
..
alloy alloy: Enable BackForwardCache support (see issue #2421) 2021-09-16 18:25:43 +03:00
chrome views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
devtools Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
extensions Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
gpu Update to Chromium version 73.0.3665.0 (#620590) 2019-01-18 11:25:51 +01:00
media_router Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
native Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
net Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
net_service Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
osr Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
plugins Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
prefs Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
printing Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
views views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
audio_capturer.cc Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
audio_capturer.h Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
audio_loopback_stream_creator.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
audio_loopback_stream_creator.h Update to Chromium version 88.0.4324.0 (#827102) 2020-12-04 15:43:33 -05:00
browser_contents_delegate.cc Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
browser_contents_delegate.h Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
browser_context.cc Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
browser_context.h Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
browser_context_keyed_service_factories.cc Update to Chromium version 87.0.4280.0 (#812852) 2020-10-15 14:21:06 -04:00
browser_context_keyed_service_factories.h Initialize required KeyedServiceFactories when extensions are disabled (issue #2359) 2018-02-02 17:44:08 -05:00
browser_frame.cc Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
browser_frame.h Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
browser_host_base.cc Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
browser_host_base.h Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
browser_host_create.cc Restore support for CreateBrowserSync with NULL |request_context| (see issue #2969) 2021-05-20 15:11:39 -04:00
browser_info.cc Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
browser_info.h Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
browser_info_manager.cc Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
browser_info_manager.h Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
browser_manager.cc Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
browser_manager.h Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
browser_message_loop.cc Update to Chromium version 86.0.4240.0 (#800218) 2020-09-03 17:44:25 -04:00
browser_message_loop.h Refactor process execution logic (see issue #2969) 2020-06-29 16:17:13 -04:00
browser_platform_delegate.cc Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
browser_platform_delegate.h Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
browser_platform_delegate_create.cc Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
browser_util.cc Translate additional CEF modifiers to EF_* flags (see issue #2597) 2021-07-19 15:52:36 +00:00
browser_util.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
chrome_crash_reporter_client_stub.cc Update to Chromium version 86.0.4240.0 (#800218) 2020-09-03 17:44:25 -04:00
context.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
context.h Rename CefBrowserHostImpl to AlloyBrowserHostImpl (see issue #2969) 2020-09-22 17:36:06 -04:00
context_menu_params_impl.cc Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
context_menu_params_impl.h Update to Chromium version 90.0.4430.0 (#857950) 2021-03-18 11:23:00 -04:00
download_item_impl.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
download_item_impl.h Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
download_manager_delegate.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
download_manager_delegate.h Rename CefBrowserHostImpl to AlloyBrowserHostImpl (see issue #2969) 2020-09-22 17:36:06 -04:00
extension_impl.cc Make CefBrowserContext an abstract base class (see issue #2969) 2020-07-01 15:35:07 -04:00
extension_impl.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
file_dialog_manager.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
file_dialog_manager.h Rename CefBrowserHostImpl to AlloyBrowserHostImpl (see issue #2969) 2020-09-22 17:36:06 -04:00
file_dialog_runner.h Various fixes related to the C++11/14 update (see issue #3140) 2021-06-18 13:42:31 -04:00
frame_host_impl.cc Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
frame_host_impl.h Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
image_impl.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
image_impl.h Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
iothread_state.cc Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
iothread_state.h Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
javascript_dialog_manager.cc Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
javascript_dialog_manager.h Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
javascript_dialog_runner.h Various fixes related to the C++11/14 update (see issue #3140) 2021-06-18 13:42:31 -04:00
main_runner.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
main_runner.h Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
media_capture_devices_dispatcher.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
media_capture_devices_dispatcher.h Update to Chromium version 77.0.3865.0 (#681094) 2019-09-04 15:13:32 +00:00
menu_manager.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
menu_manager.h Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
menu_model_impl.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
menu_model_impl.h Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
menu_runner.h Various fixes related to the C++11/14 update (see issue #3140) 2021-06-18 13:42:31 -04:00
navigation_entry_impl.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
navigation_entry_impl.h Add API for SSL status and certificate retrieval (issue #1924) 2016-09-02 13:01:33 +03:00
origin_whitelist_impl.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
origin_whitelist_impl.h Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
path_util_impl.cc Update to Chromium version 85.0.4183.0 (#782793) 2020-07-16 19:11:12 -04:00
print_settings_impl.cc Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
print_settings_impl.h Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
process_util_impl.cc Update to Chromium version 85.0.4183.0 (#782793) 2020-07-16 19:11:12 -04:00
request_context_handler_map.cc Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
request_context_handler_map.h Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
request_context_impl.cc Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
request_context_impl.h Remove usage of FrameTreeNode IDs (see issue #2421) 2021-08-19 19:41:44 -04:00
scheme_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
server_impl.cc Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
server_impl.h Update to Chromium version 75.0.3749.0 (#645082) 2019-04-16 14:38:48 +00:00
simple_menu_model_impl.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
simple_menu_model_impl.h Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
speech_recognition_manager_delegate.cc Update to Chromium version 78.0.3904.0 (#693954) 2019-10-01 13:55:16 +00:00
speech_recognition_manager_delegate.h Update to Chromium version 69.0.3464.0 (#567918) 2018-06-19 15:49:32 -04:00
ssl_host_state_delegate.cc Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
ssl_host_state_delegate.h Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
ssl_info_impl.cc Update to Chromium version 78.0.3904.0 (#693954) 2019-10-01 13:55:16 +00:00
ssl_info_impl.h Add API for SSL status and certificate retrieval (issue #1924) 2016-09-02 13:01:33 +03:00
ssl_status_impl.cc Add callback for custom certificate selection (issue #1824) 2016-10-27 14:04:48 -04:00
ssl_status_impl.h Update to Chromium revision 9cedf753 (#418732) 2016-10-20 16:54:25 -04:00
stream_impl.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
stream_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
thread_util.h Replace OVERRIDE with override (see issue #3140) 2021-06-17 16:16:53 -04:00
trace_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
trace_subscriber.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
trace_subscriber.h Update to Chromium revision 2b3ae3b8 (#394939) 2016-05-25 08:10:01 -07:00
web_contents_dialog_helper.cc Mac: Add Views API support (see issue #1749) 2021-02-27 12:31:45 -05:00
web_contents_dialog_helper.h Add print preview support (see issue #123) 2019-07-19 21:55:30 -04:00
web_plugin_impl.cc widevine: Use component updater with the Alloy runtime (fixes issue #3149) 2021-08-09 21:10:45 -04:00
web_plugin_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
x509_cert_principal_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
x509_cert_principal_impl.h Add API for SSL status and certificate retrieval (issue #1924) 2016-09-02 13:01:33 +03:00
x509_certificate_impl.cc Update to Chromium version 81.0.4044.0 (#737173) 2020-03-04 19:31:54 -05:00
x509_certificate_impl.h Rename the current CEF runtime to Alloy (see issue #2969) 2020-06-29 16:17:41 -04:00
xml_reader_impl.cc Update to Chromium version 89.0.4389.0 (#843830) 2021-02-08 14:15:38 -05:00
xml_reader_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
zip_reader_impl.cc Update to Chromium version 85.0.4183.0 (#782793) 2020-07-16 19:11:12 -04:00
zip_reader_impl.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00