mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix crash when loading a file URL if using CefCookieAccessFilter (fixes issue #2818)
This commit is contained in:
@@ -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, {});
|
||||||
|
Reference in New Issue
Block a user