Branch: refs/heads/webkitglib/2.50
  Home:   https://github.com/WebKit/WebKit
  Commit: 59b7fdf570550fd3cb61875cd8ff0a584352a4ea
      
https://github.com/WebKit/WebKit/commit/59b7fdf570550fd3cb61875cd8ff0a584352a4ea
  Author: Fujii Hironori <[email protected]>
  Date:   2026-02-23 (Mon, 23 Feb 2026)

  Changed paths:
    A LayoutTests/http/tests/cookies/set-http-only-cookie-expected.txt
    A LayoutTests/http/tests/cookies/set-http-only-cookie.html
    A 
LayoutTests/platform/glib/http/tests/cookies/js-get-and-set-http-only-cookie-expected.txt
    M Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp

  Log Message:
  -----------
  Cherry-pick 307889@main (8cb5592cf41f). 
https://bugs.webkit.org/show_bug.cgi?id=308204

    [Soup] NetworkStorageSession::domCookiesForHost shoudn't return httpOnly 
cookies
    https://bugs.webkit.org/show_bug.cgi?id=308204

    Reviewed by Carlos Garcia Campos.

    GTK and WPE ports were observing an assertion failure in WebCookieCache.cpp
    while browsing some web sites.

    > ASSERTION FAILED: !cookie.httpOnly
    > ../../../Source/WebKit/WebProcess/WebPage/WebCookieCache.cpp(57) : String 
WebKit::cookiesToString(const Vector<WebCore::Cookie> &)

    httpOnly cookies shouldn't be included in DOM cookies. Changed
    NetworkStorageSession::domCookiesForHost not to include httpOnly cookies.

    After this change, http/tests/cookies/js-get-and-set-http-only-cookie.html
    started to fail. However, it's the same result as Mac port. Copied
    
platform/mac/http/tests/cookies/js-get-and-set-http-only-cookie-expected.txt to
    glib.

    Test: http/tests/cookies/set-http-only-cookie.html

    * LayoutTests/http/tests/cookies/set-http-only-cookie-expected.txt: Added.
    * LayoutTests/http/tests/cookies/set-http-only-cookie.html: Added.
    * 
LayoutTests/platform/glib/http/tests/cookies/js-get-and-set-http-only-cookie-expected.txt:
 Added.
    * Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp:
    (WebCore::NetworkStorageSession::domCookiesForHost):

    Canonical link: https://commits.webkit.org/307889@main

Canonical link: https://commits.webkit.org/298234.432@webkitglib/2.50



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to