Bug 264852 - Make Clear-Site-Data HTTP header work as expected in ephemeral sessions
Summary: Make Clear-Site-Data HTTP header work as expected in ephemeral sessions
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Blocks: 203215
  Show dependency treegraph
Reported: 2023-11-14 17:44 PST by sideshowbarker
Modified: 2024-05-22 20:14 PDT (History)
6 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description sideshowbarker 2023-11-14 17:44:00 PST
In an ephemeral session, the current implementation doesn’t handle the Clear-Site-Data HTTP header fully as expected — as evidenced by the WebKit test results at https://wpt.fyi/results/clear-site-data/storage.https.html, which show two failures and a timeout.

Browsing in Safari to https://wpt.live/clear-site-data/storage.https.html in a normal (non-private) window shows that all those tests are actually fully passing/green.

But browsing to that same URL in a private window shows the same test failures as what https://wpt.fyi/results/clear-site-data/storage.https.htm shows.

The wpt.fyi infrastructure runs SafariDriver, which creates ephemeral sessions for test runs. So the results overall (from wpt.fyi and from manually opening the wpt.live test page in private window) seem to indicate that the implementation for handling the Clear-Site-Data HTTP header doesn’t work full as expected in ephemeral sessions.
Comment 1 Radar WebKit Bug Importer 2023-11-21 17:44:20 PST
Comment 2 sideshowbarker 2024-01-30 22:48:18 PST
With https://commits.webkit.org/273763@main now landed, the relevant test-case failure can be reproduced on a local trunk build by calling “run-webkit-test” like this:

run-webkit-tests --additional-header='useEphemeralSession=true' \