Bug 264852

Summary: Make Clear-Site-Data HTTP header work as expected in ephemeral sessions
Product: WebKit Reporter: sideshowbarker <mike>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: achristensen, ap, cdumez, gsnedders, sihui_liu, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=271700
Bug Depends on:    
Bug Blocks: 203215    

sideshowbarker
Reported 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-11-21 17:44:20 PST
sideshowbarker
Comment 2 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' \ imported/w3c/web-platform-tests/clear-site-data/storage.https.html
Note You need to log in before you can comment on or make changes to this bug.