cef/include/capi
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
..
test Update copyright year on generated files 2021-01-27 13:36:54 -05:00
views views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
cef_accessibility_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_app_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_audio_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_auth_callback_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_base_capi.h Update to Chromium version 70.0.3516.0 (#581409) 2018-08-10 11:31:08 -04:00
cef_browser_capi.h Fix CefBrowser::GetMainFrame assumptions in the renderer process (see issue #2421) 2021-06-10 16:42:45 -04:00
cef_browser_process_handler_capi.h Move cookieable scheme configuration to settings (see issue #2969) 2021-04-09 15:04:24 -04:00
cef_callback_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_client_capi.h Add CefFrameHandler callbacks for tracking CefFrame lifespan (see issue #2421) 2021-05-31 18:58:27 -04:00
cef_command_line_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_context_menu_handler_capi.h Update to Chromium version 90.0.4430.0 (#857950) 2021-03-18 11:23:00 -04:00
cef_cookie_capi.h Move cookieable scheme configuration to settings (see issue #2969) 2021-04-09 15:04:24 -04:00
cef_crash_util_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_devtools_message_observer_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_dialog_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_display_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_dom_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_download_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_download_item_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_drag_data_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_drag_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_extension_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_extension_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_file_util_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_find_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_focus_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_frame_capi.h Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
cef_frame_handler_capi.h Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
cef_i18n_util_capi.h views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
cef_image_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_jsdialog_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_keyboard_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_life_span_handler_capi.h Add CefFrameHandler callbacks for tracking CefFrame lifespan (see issue #2421) 2021-05-31 18:58:27 -04:00
cef_load_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_media_router_capi.h Wait for CefBrowserContext initialization (see issue #2969) 2021-04-14 21:03:44 -04:00
cef_menu_model_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_menu_model_delegate_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_navigation_entry_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_origin_whitelist_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_parser_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_path_util_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_print_handler_capi.h Move GetPrintHandler to CefClient (see issue #2196) 2021-03-30 12:26:57 -04:00
cef_print_settings_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_process_message_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_process_util_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_registration_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_render_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_render_process_handler_capi.h Allow a CefProcessMessage to remain valid after receipt (see issue #3126) 2021-05-20 14:46:19 -04:00
cef_request_callback_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_request_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_request_context_capi.h Wait for CefBrowserContext initialization (see issue #2969) 2021-04-14 21:03:44 -04:00
cef_request_context_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_request_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_resource_bundle_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_resource_bundle_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_resource_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_resource_request_handler_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_response_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_response_filter_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_scheme_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_server_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_ssl_info_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_ssl_status_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_stream_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_string_visitor_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_task_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_thread_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_trace_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_urlrequest_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_v8_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_values_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_waitable_event_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_web_plugin_capi.h widevine: Use component updater with the Alloy runtime (fixes issue #3149) 2021-08-09 21:10:45 -04:00
cef_x509_certificate_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_xml_reader_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00
cef_zip_reader_capi.h Update copyright year on generated files 2021-01-27 13:36:54 -05:00