Fix crash when closing an OSR browser (fixes issue #2919)

Release the Compositor before the WebContents is destroyed to match
the behavior in non-OSR code.
This commit is contained in:
Andrei Kurushin
2020-07-20 14:24:16 -04:00
committed by Marshall Greenblatt
parent b0a4097775
commit 4bd2755a6e
4 changed files with 66 additions and 26 deletions

View File

@@ -27,6 +27,7 @@ class CefBrowserPlatformDelegateOsr
void WebContentsCreated(content::WebContents* web_contents,
bool owned) override;
void BrowserCreated(CefBrowserHostImpl* browser) override;
void NotifyBrowserDestroyed() override;
void BrowserDestroyed(CefBrowserHostImpl* browser) override;
SkColor GetBackgroundColor() const override;
void WasResized() override;