Skip to content

Commit 8f73330

Browse files
committed
Bug 1744611 - Clear-Site-Data: "cache": Also clear CSS and Image cache r=emilio,anti-tracking-reviewers,timhuang
This changes principal in CSS-/Image-cache to use partitionedPrincipal to match the caller side from `Clear-Site-Data: "cache"`. Differential Revision: https://phabricator.services.mozilla.com/D254379
1 parent 37eab96 commit 8f73330

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

layout/style/SharedSubResourceCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool ShouldClearEntry(nsIURI* aEntryURI, nsIPrincipal* aEntryLoaderPrincipal,
106106
return spec == *aURL;
107107
}
108108

109-
if (aPrincipal && aEntryLoaderPrincipal->Equals(aPrincipal.ref())) {
109+
if (aPrincipal && aEntryPartitionPrincipal->Equals(aPrincipal.ref())) {
110110
return true;
111111
}
112112
if (!aSchemelessSite) {

testing/web-platform/meta/clear-site-data/clear-cache.https.html.ini

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)