Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 46bff2323ca558f51618620bb6d2cb0a317fd8bb
      
https://github.com/WebKit/WebKit/commit/46bff2323ca558f51618620bb6d2cb0a317fd8bb
  Author: Yury Semikhatsky <[email protected]>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M LayoutTests/platform/wpe/TestExpectations
    M Source/WebCore/dom/Document.h
    M Source/WebKit/WebProcess/WebPage/WebCookieJar.cpp

  Log Message:
  -----------
  [WPE] document.cookie can return stale values after the web process cookie 
cache is cleared
https://bugs.webkit.org/show_bug.cgi?id=324464

Reviewed by Devin Rousso.

Invalidate the Document cookie caches in WebCookieJar::clearCache(), which runs 
when the web
process is told that cookies changed (WebProcess::DeleteAllCookies, cookie 
accept policy
changes). Until now it only dropped WebCookieCache, and on WPE a task triggered 
by an IPC
message could still read a Document's cached document.cookie before its 
zero-delay expiry
timer had fired, because that timer has a lower GLib priority than IPC dispatch.

This fixes the flakiness of 
imported/w3c/web-platform-tests/cookies/path/default.html on WPE
(bug 307989): on a WPE release build it failed 17 of 100 separate 
run-webkit-tests invocations
without this change and none of 100 with it.

* LayoutTests/platform/wpe/TestExpectations:
* Source/WebCore/dom/Document.h:
* Source/WebKit/WebProcess/WebPage/WebCookieJar.cpp:
(WebKit::WebCookieJar::clearCache):

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



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

Reply via email to