cef/libcef_dll
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 Fix compile errors with VS2019 v16.9.3 and GCC v7.5.0 (see issue #3140) 2021-06-23 13:00:34 -04:00
cpptoc Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
ctocpp Fix draggable region update with BackForwardCache enabled (see issue #2421) 2021-09-16 18:25:43 +03:00
sandbox Fix compile errors with VS2019 v16.9.3 and GCC v7.5.0 (see issue #3140) 2021-06-23 13:00:34 -04:00
wrapper views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
CMakeLists.txt.in Update to Chromium version 86.0.4240.0 (#800218) 2020-09-03 17:44:25 -04:00
libcef.dll.manifest Update to Chromium revision 217791. 2013-08-15 19:38:55 +00:00
libcef.lst Linux: Add version script to restrict exported symbols (issue #1765) 2016-06-06 12:31:24 -04:00
libcef_dll.cc views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
libcef_dll.rc Compute all version numbers using cef_version.py (see issue #2596) 2019-03-15 13:16:43 -04:00
libcef_dll2.cc Compute all version numbers using cef_version.py (see issue #2596) 2019-03-15 13:16:43 -04:00
resource.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
shutdown_checker.cc Various fixes related to the C++11/14 update (see issue #3140) 2021-06-18 13:42:31 -04:00
shutdown_checker.h Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
transfer_util.cc Implement new approach for debugging leaked wrapper object references (issue #2593) 2019-02-14 17:08:43 -05:00
transfer_util.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
views_stub.cc Update copyright year on generated files 2021-01-27 13:36:54 -05:00
wrapper_types.h views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00