cef/include
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
..
base Remove unicode character from cef_bind_internal.h 2021-08-16 13:22:39 -04:00
capi Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
internal views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
test Update to Chromium revision d483fb77 (#474934) 2017-06-02 05:55:23 -07:00
views views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
wrapper wrapper: Convert usage of base::Bind to Once or Repeating (see issue #3140) 2021-06-19 15:35:12 -04:00
cef_accessibility_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_api_hash.h Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
cef_app.h libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
cef_application_mac.h Update to Chromium version 86.0.4240.0 (#800218) 2020-09-03 17:44:25 -04:00
cef_audio_handler.h Re-implement audio capturing based on the AudioService API (fixes issue #2755) 2020-05-01 18:18:18 +00:00
cef_auth_callback.h Allow empty username parameter to CefAuthCallback::Continue (issue #2275) 2018-03-28 19:29:28 -04:00
cef_base.h Update include/base headers for C++11/14 (see issue #3140) 2021-06-17 20:47:12 -04:00
cef_browser.h Fix CefBrowser::GetMainFrame assumptions in the renderer process (see issue #2421) 2021-06-10 16:42:45 -04:00
cef_browser_process_handler.h Move cookieable scheme configuration to settings (see issue #2969) 2021-04-09 15:04:24 -04:00
cef_callback.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_client.h Add CefFrameHandler callbacks for tracking CefFrame lifespan (see issue #2421) 2021-05-31 18:58:27 -04:00
cef_command_line.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_context_menu_handler.h Update to Chromium version 90.0.4430.0 (#857950) 2021-03-18 11:23:00 -04:00
cef_cookie.h Move cookieable scheme configuration to settings (see issue #2969) 2021-04-09 15:04:24 -04:00
cef_crash_util.h Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
cef_devtools_message_observer.h Add support for direct DevTools protocol messaging (fixes issue #2961). 2020-06-19 22:15:22 -04:00
cef_dialog_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_display_handler.h Move OnCursorChange from CefRenderHandler to CefDisplayHandler 2020-10-28 12:56:27 -04:00
cef_dom.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_download_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_download_item.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_drag_data.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_drag_handler.h Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
cef_extension.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
cef_extension_handler.h libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
cef_file_util.h Add support for loading certificate revocation lists (issue #2213) 2017-07-11 15:44:35 -04:00
cef_find_handler.h Rename CefBase to CefBaseRefCounted (issue #2090) 2017-02-09 17:50:59 -05:00
cef_focus_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_frame.h Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
cef_frame_handler.h Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
cef_i18n_util.h views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
cef_image.h Allow CefImage usage from any thread 2019-11-19 13:29:33 -05:00
cef_jsdialog_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_keyboard_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_life_span_handler.h Add CefFrameHandler callbacks for tracking CefFrame lifespan (see issue #2421) 2021-05-31 18:58:27 -04:00
cef_load_handler.h Update to Chromium revision 939b32ee (#454471) 2017-03-08 13:33:05 -08:00
cef_media_router.h Wait for CefBrowserContext initialization (see issue #2969) 2021-04-14 21:03:44 -04:00
cef_menu_model.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_menu_model_delegate.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_navigation_entry.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_origin_whitelist.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_parser.h Update to Chromium version 87.0.4280.0 (#812852) 2020-10-15 14:21:06 -04:00
cef_path_util.h - Add example to cefclient of launching DevTools in an external browser window and process using new CefGetPath and CefLaunchProcess functions (issue #639). 2012-06-26 16:47:05 +00:00
cef_print_handler.h Move GetPrintHandler to CefClient (see issue #2196) 2021-03-30 12:26:57 -04:00
cef_print_settings.h Update to Chromium version 78.0.3904.0 (#693954) 2019-10-01 13:55:16 +00:00
cef_process_message.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_process_util.h - Add example to cefclient of launching DevTools in an external browser window and process using new CefGetPath and CefLaunchProcess functions (issue #639). 2012-06-26 16:47:05 +00:00
cef_registration.h Add support for media device discovery and messaging (fixes issue #2900) 2020-03-27 15:54:39 -04:00
cef_render_handler.h Move OnCursorChange from CefRenderHandler to CefDisplayHandler 2020-10-28 12:56:27 -04:00
cef_render_process_handler.h Allow a CefProcessMessage to remain valid after receipt (see issue #3126) 2021-05-20 14:46:19 -04:00
cef_request.h Fix issues with request callbacks during browser shutdown (see issue #2622). 2019-06-01 15:51:33 +03:00
cef_request_callback.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_request_context.h Wait for CefBrowserContext initialization (see issue #2969) 2021-04-14 21:03:44 -04:00
cef_request_context_handler.h libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
cef_request_handler.h Add support for direct DevTools protocol messaging (fixes issue #2961). 2020-06-19 22:15:22 -04:00
cef_resource_bundle.h Return decompressed values from CefResourceBundle (fixes issue #2976) 2020-07-21 15:55:54 +00:00
cef_resource_bundle_handler.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_resource_handler.h Fix typo in documentation for CefResourceHandler::Skip 2019-07-25 15:44:23 +00:00
cef_resource_request_handler.h libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
cef_response.h Modify CefResponse header methods to match CefRequest API (fixes issue #2770) 2019-10-14 13:49:05 +02:00
cef_response_filter.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_sandbox_mac.h Update to Chromium version 86.0.4240.0 (#800218) 2020-09-03 17:44:25 -04:00
cef_sandbox_win.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_scheme.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_server.h Add CefServer API for handling HTTP/WebSocket requests (issue #2278) 2017-11-15 12:00:36 -05:00
cef_ssl_info.h Update to Chromium version 78.0.3904.0 (#693954) 2019-10-01 13:55:16 +00:00
cef_ssl_status.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_stream.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_string_visitor.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_task.h Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
cef_thread.h Fix documentation typo 2020-09-08 12:18:35 -04:00
cef_trace.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_urlrequest.h Update to Chromium version 86.0.4240.0 (#800218) 2020-09-03 17:44:25 -04:00
cef_v8.h Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
cef_values.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_waitable_event.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_web_plugin.h widevine: Use component updater with the Alloy runtime (fixes issue #3149) 2021-08-09 21:10:45 -04:00
cef_x509_certificate.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_xml_reader.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_zip_reader.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00