Skip to content

Commit

Permalink
Merge pull request #578 from GoogleChromeLabs/feature/rws-test-launcher
Browse files Browse the repository at this point in the history
Add demo RWS for command line launcher
  • Loading branch information
mohdsayed committed Mar 27, 2024
2 parents db1b5be + a4bc138 commit db4a5ab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bin/chrome_launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,23 @@ chrome-chip() {
launch_chrome \
--partitioned-cookies=true
}

# Launch Chrome with 3rd Party Cookie Phaseout with demo domains specified as related websites
chrome-rws() {
launch_chrome \
--install-autogenerated-theme='150,220,150' \
--test-third-party-cookie-phaseout \
--use-related-website-set="{\"primary\": \"https://domain-aaa.com\", \"associatedSites\": [\"https://domain-bbb.com\", \"https://domain-ccc.com\"]}" \
--enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI,TpcdMetadataGrants,TpcdSupportSettings,TpcdHeuristicsGrants:TpcdReadHeuristicsGrants/true/TpcdWritePopupCurrentInteractionHeuristicsGrants/30d/TpcdBackfillPopupHeuristicsGrants/30d/TpcdPopupHeuristicEnableForIframeInitiator/all/TpcdWriteRedirectHeuristicGrants/15m/TpcdRedirectHeuristicRequireABAFlow/true/TpcdRedirectHeuristicRequireCurrentInteraction/true"
}

# Launch Chrome with 3rd Party Cookie Phaseout with demo domains specified as related websites with Privacy Sandbox extension
chrome-rws-ps() {
extension_setup
launch_chrome \
--install-autogenerated-theme='150,220,150' \
--test-third-party-cookie-phaseout \
--use-related-website-set="{\"primary\": \"https://domain-aaa.com\", \"associatedSites\": [\"https://domain-bbb.com\", \"https://domain-ccc.com\"]}" \
--load-extension="$extension_dir/ps-analysis-tool-$ps_analysis_tool_version/extension" \
--enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI,TpcdMetadataGrants,TpcdSupportSettings,TpcdHeuristicsGrants:TpcdReadHeuristicsGrants/true/TpcdWritePopupCurrentInteractionHeuristicsGrants/30d/TpcdBackfillPopupHeuristicsGrants/30d/TpcdPopupHeuristicEnableForIframeInitiator/all/TpcdWriteRedirectHeuristicGrants/15m/TpcdRedirectHeuristicRequireABAFlow/true/TpcdRedirectHeuristicRequireCurrentInteraction/true"
}

0 comments on commit db4a5ab

Please sign in to comment.