Skip to content

Commit 07ced65

Browse files
authored
Add chrome-pat and chrome-pat-ps commands to test Private Advertising (#706)
* Add Privacy Sandbox Ads API support in 3pcd launcher commands * Revert "Add Privacy Sandbox Ads API support in 3pcd launcher commands" This reverts commit 65e86d2. * Add `chrome-pat` and `chrome-pat-ps` launcher command with Private Advertising Testing enabled * Update install message to show `chrome-pat` and `chrome-pat-ps` commands
1 parent 9093d5a commit 07ced65

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

bin/chrome_launcher.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,23 @@ chrome-rws-ps() {
101101
--load-extension="$extension_dir/ps-analysis-tool-$ps_analysis_tool_version/extension" \
102102
--enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI,TpcdMetadataGrants,TpcdSupportSettings,TpcdHeuristicsGrants:TpcdReadHeuristicsGrants/true/TpcdWritePopupCurrentInteractionHeuristicsGrants/30d/TpcdBackfillPopupHeuristicsGrants/30d/TpcdPopupHeuristicEnableForIframeInitiator/all/TpcdWriteRedirectHeuristicGrants/15m/TpcdRedirectHeuristicRequireABAFlow/true/TpcdRedirectHeuristicRequireCurrentInteraction/true"
103103
}
104+
105+
# Launch Private Advertising Testing Chrome
106+
chrome-pat() {
107+
launch_chrome \
108+
--install-autogenerated-theme='0,53,102' \
109+
--test-third-party-cookie-phaseout \
110+
--enable-features="PrivacySandboxAdsAPIs,PrivacySandboxAdsAPIsOverride" \
111+
--enable-privacy-sandbox-ads-apis
112+
}
113+
114+
# Launch Private Advertising Testing Chrome with Privacy Sandbox extension
115+
chrome-pat-ps() {
116+
extension_setup
117+
launch_chrome \
118+
--install-autogenerated-theme='0,53,102' \
119+
--load-extension="$extension_dir/ps-analysis-tool-$ps_analysis_tool_version/extension" \
120+
--test-third-party-cookie-phaseout \
121+
--enable-features="PrivacySandboxAdsAPIs,PrivacySandboxAdsAPIsOverride" \
122+
--enable-privacy-sandbox-ads-apis
123+
}

bin/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ echo -e "\tchrome-default : Opens a Chrome instance with default settings."
3939
echo -e "\tchrome-3pcd : Opens a Chrome instance with Third-Party Cookie Deprecation (3PCD) enabled."
4040
echo -e "\tchrome-default-ps : Opens a Chrome instance with default settings and the Privacy Sandbox extension installed."
4141
echo -e "\tchrome-3pcd-ps : Opens a Chrome instance with 3PCD enabled and the Privacy Sandbox extension installed."
42+
echo -e "\tchrome-pat : Opens a Chrome instance with Private Advertising Testing enabled."
43+
echo -e "\tchrome-pat-ps : Opens a Chrome instance with Private Advertising Testing enabled and the Privacy Analysis Tool extension installed."
4244

4345
# Source into current terminal session as well
4446
source ~/bin/chrome_launcher.sh

0 commit comments

Comments
 (0)