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
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
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
cef_base.h Update include/base headers for C++11/14 (see issue #3140) 2021-06-17 20:47:12 -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_browser.h Fix CefBrowser::GetMainFrame assumptions in the renderer process (see issue #2421) 2021-06-10 16:42:45 -04:00
cef_callback.h
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
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
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
cef_display_handler.h Move OnCursorChange from CefRenderHandler to CefDisplayHandler 2020-10-28 12:56:27 -04:00
cef_dom.h
cef_download_handler.h
cef_download_item.h
cef_drag_data.h
cef_drag_handler.h Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
cef_extension_handler.h libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
cef_extension.h
cef_file_util.h
cef_find_handler.h
cef_focus_handler.h
cef_frame_handler.h Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
cef_frame.h Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04: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
cef_keyboard_handler.h
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
cef_media_router.h Wait for CefBrowserContext initialization (see issue #2969) 2021-04-14 21:03:44 -04:00
cef_menu_model_delegate.h
cef_menu_model.h
cef_navigation_entry.h
cef_origin_whitelist.h
cef_parser.h Update to Chromium version 87.0.4280.0 (#812852) 2020-10-15 14:21:06 -04:00
cef_path_util.h
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
cef_process_util.h
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_callback.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -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_context.h Wait for CefBrowserContext initialization (see issue #2969) 2021-04-14 21:03:44 -04:00
cef_request_handler.h Add support for direct DevTools protocol messaging (fixes issue #2961). 2020-06-19 22:15:22 -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_resource_bundle_handler.h
cef_resource_bundle.h Return decompressed values from CefResourceBundle (fixes issue #2976) 2020-07-21 15:55:54 +00: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_filter.h
cef_response.h Modify CefResponse header methods to match CefRequest API (fixes issue #2770) 2019-10-14 13:49: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
cef_scheme.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
cef_server.h
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
cef_stream.h
cef_string_visitor.h
cef_task.h
cef_thread.h Fix documentation typo 2020-09-08 12:18:35 -04:00
cef_trace.h
cef_urlrequest.h Update to Chromium version 86.0.4240.0 (#800218) 2020-09-03 17:44:25 -04:00
cef_v8.h
cef_values.h
cef_waitable_event.h
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
cef_xml_reader.h
cef_zip_reader.h