Skip to content

Commit db4a5ab

Browse files
authored
Merge pull request #578 from GoogleChromeLabs/feature/rws-test-launcher
Add demo RWS for command line launcher
2 parents db1b5be + a4bc138 commit db4a5ab

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

bin/chrome_launcher.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,23 @@ chrome-chip() {
8181
launch_chrome \
8282
--partitioned-cookies=true
8383
}
84+
85+
# Launch Chrome with 3rd Party Cookie Phaseout with demo domains specified as related websites
86+
chrome-rws() {
87+
launch_chrome \
88+
--install-autogenerated-theme='150,220,150' \
89+
--test-third-party-cookie-phaseout \
90+
--use-related-website-set="{\"primary\": \"https://domain-aaa.com\", \"associatedSites\": [\"https://domain-bbb.com\", \"https://domain-ccc.com\"]}" \
91+
--enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI,TpcdMetadataGrants,TpcdSupportSettings,TpcdHeuristicsGrants:TpcdReadHeuristicsGrants/true/TpcdWritePopupCurrentInteractionHeuristicsGrants/30d/TpcdBackfillPopupHeuristicsGrants/30d/TpcdPopupHeuristicEnableForIframeInitiator/all/TpcdWriteRedirectHeuristicGrants/15m/TpcdRedirectHeuristicRequireABAFlow/true/TpcdRedirectHeuristicRequireCurrentInteraction/true"
92+
}
93+
94+
# Launch Chrome with 3rd Party Cookie Phaseout with demo domains specified as related websites with Privacy Sandbox extension
95+
chrome-rws-ps() {
96+
extension_setup
97+
launch_chrome \
98+
--install-autogenerated-theme='150,220,150' \
99+
--test-third-party-cookie-phaseout \
100+
--use-related-website-set="{\"primary\": \"https://domain-aaa.com\", \"associatedSites\": [\"https://domain-bbb.com\", \"https://domain-ccc.com\"]}" \
101+
--load-extension="$extension_dir/ps-analysis-tool-$ps_analysis_tool_version/extension" \
102+
--enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI,TpcdMetadataGrants,TpcdSupportSettings,TpcdHeuristicsGrants:TpcdReadHeuristicsGrants/true/TpcdWritePopupCurrentInteractionHeuristicsGrants/30d/TpcdBackfillPopupHeuristicsGrants/30d/TpcdPopupHeuristicEnableForIframeInitiator/all/TpcdWriteRedirectHeuristicGrants/15m/TpcdRedirectHeuristicRequireABAFlow/true/TpcdRedirectHeuristicRequireCurrentInteraction/true"
103+
}

0 commit comments

Comments
 (0)