mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-01 20:07:27 +01:00
alloy: Enable BackForwardCache support (see issue #2421)
BackForwardCache is currently being tested via field trials (see https://crbug.com/1171298) and can be explicitly disabled using the `--disable-back-forward-cache` or `--disable-features=BackForwardCache` command-line flags. The default behavior now matches the Chrome runtime.
This commit is contained in:
parent
4a44e16a09
commit
b3f5d7dd59
@ -1463,6 +1463,14 @@ void AlloyBrowserHostImpl::ExitPictureInPicture() {
|
||||
PictureInPictureWindowManager::GetInstance()->ExitPictureInPicture();
|
||||
}
|
||||
|
||||
bool AlloyBrowserHostImpl::IsBackForwardCacheSupported() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AlloyBrowserHostImpl::IsPrerender2Supported() {
|
||||
return true;
|
||||
}
|
||||
|
||||
// content::WebContentsObserver methods.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
@ -289,6 +289,8 @@ class AlloyBrowserHostImpl : public CefBrowserHostBase,
|
||||
const viz::SurfaceId& surface_id,
|
||||
const gfx::Size& natural_size) override;
|
||||
void ExitPictureInPicture() override;
|
||||
bool IsBackForwardCacheSupported() override;
|
||||
bool IsPrerender2Supported() override;
|
||||
|
||||
// content::WebContentsObserver methods.
|
||||
using content::WebContentsObserver::BeforeUnloadFired;
|
||||
|
Loading…
x
Reference in New Issue
Block a user