Fix crash when loading a file URL if using CefCookieAccessFilter (fixes issue #2818)

This commit is contained in:
Marshall Greenblatt 2020-01-06 14:47:18 +02:00
parent 440dbfb6df
commit 0d4879763a
1 changed files with 1 additions and 0 deletions

View File

@ -174,6 +174,7 @@ void SaveCookies(content::BrowserContext* browser_context,
CEF_REQUIRE_IOT();
if (request.credentials_mode == network::mojom::CredentialsMode::kOmit ||
!head.headers ||
!head.headers->HasHeader(net_service::kHTTPSetCookieHeaderName)) {
// Continue immediately without saving cookies.
std::move(done_callback).Run(0, {});