cef/libcef/renderer
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 Update to Chromium version 94.0.4606.0 (#911515) 2021-08-24 17:43:02 -04:00
chrome Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
extensions Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
blink_glue.cc Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
blink_glue.h Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
browser_impl.cc Add CefFrameHandler callbacks for tracking CefFrame lifespan (see issue #2421) 2021-05-31 18:58:27 -04:00
browser_impl.h Add CefFrameHandler callbacks for tracking CefFrame lifespan (see issue #2421) 2021-05-31 18:58:27 -04:00
dom_document_impl.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
dom_document_impl.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
dom_node_impl.cc Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
dom_node_impl.h Update to Chromium revision 9ef2aa86 (#550428) 2018-05-04 10:50:26 +02:00
frame_impl.cc Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
frame_impl.h Add CefFrameHandler callbacks for tracking CefFrame lifespan (see issue #2421) 2021-05-31 18:58:27 -04:00
render_frame_observer.cc Fix ExecuteJavaScript failure with null CefRenderProcessHandler (see issue #2421) 2021-08-18 18:08:00 -04:00
render_frame_observer.h Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
render_frame_util.cc Fix CefFrame::GetIdentifier value in the render process (fixes issue #2687, see issue #2498) 2019-06-19 16:55:31 +02:00
render_frame_util.h Change CefFrame::GetName() to return assigned name if it is non-empty before returning unique name (issue #2403) 2018-03-28 17:30:15 +00:00
render_manager.cc Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
render_manager.h Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
render_urlrequest_impl.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
render_urlrequest_impl.h Add NetworkService support for CefURLRequest (see issue #2622). 2019-05-17 21:42:25 +03:00
thread_util.h Rename the current CEF runtime to Alloy (see issue #2969) 2020-06-29 16:17:41 -04:00
v8_impl.cc Update to Chromium version 92.0.4515.0 (#885287) 2021-06-10 16:42:44 -04:00
v8_impl.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00