Add flag to control whether access to storage is granted by SAA grants.
This flag allows an embedder to choose whether a Storage Access API
permission grant allows access to site storage, or just to the site's
unpartitioned cookies. Safari and Firefox have aligned on just
granting access to cookies; Edge's implementation grants access to
cookies and storage.
The default value of the setting is to grant access only to cookies.
Bug: 1349115
Change-Id: If42ad2ef36d0cab8ecd5230873d903a965019fc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3796559
Reviewed-by: David Benjamin <[email protected]>
Reviewed-by: Mike West <[email protected]>
Reviewed-by: Brandon Maslen <[email protected]>
Reviewed-by: Christian Dullweber <[email protected]>
Auto-Submit: Chris Fredrickson <[email protected]>
Commit-Queue: David Benjamin <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1034097}
diff --git a/chrome/browser/net/storage_test_utils.h b/chrome/browser/net/storage_test_utils.h
index 274f663..bfabd381 100644
--- a/chrome/browser/net/storage_test_utils.h
+++ b/chrome/browser/net/storage_test_utils.h
@@ -19,9 +19,11 @@
// Helpers to set and check various types of storage on a given frame. Typically
// used on page like //chrome/test/data/browsing_data/site_data.html
-void SetStorageForFrame(content::RenderFrameHost* frame);
+void SetStorageForFrame(content::RenderFrameHost* frame, bool include_cookies);
void SetStorageForWorker(content::RenderFrameHost* frame);
-void ExpectStorageForFrame(content::RenderFrameHost* frame, bool expected);
+void ExpectStorageForFrame(content::RenderFrameHost* frame,
+ bool include_cookies,
+ bool expected);
void ExpectStorageForWorker(content::RenderFrameHost* frame, bool expected);
// Helpers to set and check various types of cross tab info for a given frame.