CefSharp
CefSharp copied to clipboard
Same-site BFCache
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
First need to confirm that Same-Site BFCache
is enabled for the Alloy Runtime
(I think it's still disabled by default)
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.