CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

Same-site BFCache

Open amaitland opened this issue 2 years ago • 2 comments

Creating this issue to investigate changes introduced by https://bitbucket.org/chromiumembedded/cef/commits/54dd34e19b56a2b7f0d6cb8d473ce36288dcf8e2

BFCache navigations do not trigger the same Chromium notifications as a normal load. To avoid breaking CEF API usage expectations we now synthetically generate the load-related callbacks that would otherwise be missing (OnLoadingStateChange with isLoading=true, OnLoadStart, OnLoadEnd). The |httpStatusCode| argument to OnLoadEnd will be 0 in this case.

LoadUrlAsync needs to be reviewed in light of these changes.

https://github.com/cefsharp/CefSharp/blob/8927a335036125002065ae0f171e7386bf34b45f/CefSharp/WebBrowserExtensions.cs#L443

amaitland avatar Apr 06 '22 00:04 amaitland

First need to confirm that Same-Site BFCache is enabled for the Alloy Runtime (I think it's still disabled by default)

amaitland avatar Apr 06 '22 01:04 amaitland

For the Alloy runtime BFCache is permanently disabled https://github.com/chromiumembedded/cef/blob/4951/libcef/browser/alloy/alloy_browser_host_impl.cc#L1480

As the Chrome runtime will support hosting via a native window handle starting in M102 there's the potential this will still need checking.

Leaving open, removing milestone.

amaitland avatar Apr 20 '22 23:04 amaitland