Summary: | REGRESSION(r221226): [SOUP] libsoup-CRITICAL **: soup_cookies_to_cookie_header: assertion 'cookies != NULL' failed | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> | ||||
Component: | WebKitGTK | Assignee: | Michael Catanzaro <mcatanzaro> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | berto, bugs-noreply, buildbot, cgarcia, cturner, danw, gustavo, mcatanzaro | ||||
Priority: | P2 | ||||||
Version: | Other | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Attachments: |
|
Description
Michael Catanzaro
2017-08-30 18:10:05 PDT
Created attachment 319429 [details]
Patch
This is a speculative fix, but I'm fairly confident.... Comment on attachment 319429 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=319429&action=review > Source/WebCore/platform/network/soup/CookieJarSoup.cpp:92 > - bool didAccessSecureCookies = false; > + if (!cookies) > + return { { }, false }; > > + bool didAccessSecureCookies = false; I think it would be better to do this check after the loop. If all cookies are secure and includeSecureCookies == IncludeSecureCookies::No, the list can be empty (nullptr) after the loop. Michael, your speculative fix has worked for me, thanks! (In reply to Carlos Garcia Campos from comment #3) > I think it would be better to do this check after the loop. If all cookies > are secure and includeSecureCookies == IncludeSecureCookies::No, the list > can be empty (nullptr) after the loop. Good catch. Committed r221438: <http://trac.webkit.org/changeset/221438> |