Fix crash when loading a file URL if using CefCookieAccessFilter (fixes issue #2818)
This commit is contained in:
parent
440dbfb6df
commit
0d4879763a
|
@ -174,6 +174,7 @@ void SaveCookies(content::BrowserContext* browser_context,
|
||||||
CEF_REQUIRE_IOT();
|
CEF_REQUIRE_IOT();
|
||||||
|
|
||||||
if (request.credentials_mode == network::mojom::CredentialsMode::kOmit ||
|
if (request.credentials_mode == network::mojom::CredentialsMode::kOmit ||
|
||||||
|
!head.headers ||
|
||||||
!head.headers->HasHeader(net_service::kHTTPSetCookieHeaderName)) {
|
!head.headers->HasHeader(net_service::kHTTPSetCookieHeaderName)) {
|
||||||
// Continue immediately without saving cookies.
|
// Continue immediately without saving cookies.
|
||||||
std::move(done_callback).Run(0, {});
|
std::move(done_callback).Run(0, {});
|
||||||
|
|
Loading…
Reference in New Issue