Fix crash when setting an invalid cookie (fixes issue #2657)

This commit is contained in:
Andrei Kurushin
2019-05-08 18:12:21 +00:00
committed by Marshall Greenblatt
parent 473c29a70d
commit 03c1c21fd3
3 changed files with 50 additions and 8 deletions

View File

@@ -209,6 +209,11 @@ bool CefCookieManagerImpl::SetCookie(const CefString& url,
cookie.secure ? true : false, cookie.httponly ? true : false,
net::CookieSameSite::DEFAULT_MODE, net::COOKIE_PRIORITY_DEFAULT);
if (!canonical_cookie) {
SetCookieCallbackImpl(callback, false);
return true;
}
net::CookieOptions options;
if (cookie.httponly)
options.set_include_httponly();