Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5e99c8f621c3966f7de0b5d4c407c26d458bbed1
      
https://github.com/WebKit/WebKit/commit/5e99c8f621c3966f7de0b5d4c407c26d458bbed1
  Author: Chris Dumez <[email protected]>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    A LayoutTests/http/tests/clear-site-data/bfcache-expected.txt
    A LayoutTests/http/tests/clear-site-data/bfcache.html
    A 
LayoutTests/http/tests/clear-site-data/resources/clear-site-data-and-navigate-back.html
    A LayoutTests/http/tests/clear-site-data/resources/clear-site-data-cache.py
    M LayoutTests/platform/mac-wk1/TestExpectations
    M LayoutTests/platform/win/TestExpectations
    M Source/WebCore/history/BackForwardCache.cpp
    M Source/WebCore/history/BackForwardCache.h
    M Source/WebKit/WebProcess/WebProcess.cpp

  Log Message:
  -----------
  `Clear-Site-Data: "cache"` HTTP header should clear the back/forward cache
https://bugs.webkit.org/show_bug.cgi?id=245553

Reviewed by Brent Fulgham.

`Clear-Site-Data: "cache"` was clearing the HTTP disk cache and the memory cache
entries for the HTTP response origin. In addition to this, it now clear the
back/forward cache entries for this origin too.

* LayoutTests/http/tests/clear-site-data/bfcache-expected.txt: Added.
* LayoutTests/http/tests/clear-site-data/bfcache.html: Added.
* 
LayoutTests/http/tests/clear-site-data/resources/clear-site-data-and-navigate-back.html:
 Added.
* LayoutTests/http/tests/clear-site-data/resources/clear-site-data-cache.py: 
Added.
Add test coverage.

* Source/WebCore/history/BackForwardCache.cpp:
(WebCore::BackForwardCache::clearEntriesForOrigins):
* Source/WebCore/history/BackForwardCache.h:

* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::deleteWebsiteDataForOrigins):
Clear the back/forward cache too when we're asked to clear the memory cache. 
This matches the
behavior of WebProcess::deleteWebsiteData() where clearing the memory cache 
implies clearing
the back/forward cache too.

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to