-
Notifications
You must be signed in to change notification settings - Fork 24
Evaluation Environment
Preparing the environment for analyzing and debugging the behavior of cookies and storage APIs during browsing sessions encompasses two aspects: (1) access to Chrome instances with and without Privacy Sandbox APIs enabled and restricted use of third-party cookies; and (2) install PSAT.
PSAT's repository includes a set of custom commands streamlining the setup process, by creating ephemeral instances of Chrome with specific configurations. To install these commands, run the following in your terminal:
curl -sL https://rt.cx/psat | bash
The commands you can use are:
-
chrome-default
: Opens a Chrome instance with default settings. -
chrome-3pcd
: Opens a Chrome instance with Third-Party Cookie Deprecation (3PCD) enabled. -
chrome-default-ps
: Opens a Chrome instance with default settings and the Privacy Sandbox extension installed. -
chrome-3pcd-ps
: Opens a Chrome instance with 3PCD enabled and the Privacy Sandbox extension installed.
To keep the Chrome Launcher script current with the latest PSAT Extension, simply rerun the installation command:
- Open your terminal.
- Run the following command:
curl -sL https://rt.cx/psat | bash
- To finalize the update, close and reopen your terminal.
PSAT offers three straightforward installation methods:
PSAT is available in the Chrome Web Store. To install, simply go to the linked store listing and click on Add to Chrome
.
![PSAT on Chrome Web Store](https://private-user-images.githubusercontent.com/506089/288853502-b664c5ed-a858-447c-9481-ef816d05b353.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjU1MjksIm5iZiI6MTczOTA2NTIyOSwicGF0aCI6Ii81MDYwODkvMjg4ODUzNTAyLWI2NjRjNWVkLWE4NTgtNDQ3Yy05NDgxLWVmODE2ZDA1YjM1My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMTQwMjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZTMyMzU3MmU3YWEyYTE1MTFmZTE2MDJiZGM3ZTNiNDlmYjAzY2E1ZDI2ZWZlNjA2NjM0YWNiZWJjY2U2MTExJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.suL7Vnt0o-ym_WlBm_BAX_GdVlx592qUI4NL8_MqyLc)
Go to the Releases
Section in the PSAT GitHub repo: bit.ly/psat-repo
![Install from zip file, step one](https://private-user-images.githubusercontent.com/506089/288929733-2350fc22-c60e-49e2-9e3b-149cb78ebc30.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjU1MjksIm5iZiI6MTczOTA2NTIyOSwicGF0aCI6Ii81MDYwODkvMjg4OTI5NzMzLTIzNTBmYzIyLWM2MGUtNDllMi05ZTNiLTE0OWNiNzhlYmMzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMTQwMjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYmE5MDkxMjAzMDIxZDFmZjQ4ZDg2NWNhMGVkZTNiZTBjNzE0OWYzYmE4ODM4ZWYwN2QyMDNlNmVlMDc4ZjRiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.7XylGqjZRfqQ2JHHAi3Y4wWC6EJ5z2hVyfIyM0eO6Ns)
Select the latest version from the available tags:
![Install from zip file, step two](https://private-user-images.githubusercontent.com/506089/288929727-4dd56d99-46eb-4cad-8f4d-28d672062436.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjU1MjksIm5iZiI6MTczOTA2NTIyOSwicGF0aCI6Ii81MDYwODkvMjg4OTI5NzI3LTRkZDU2ZDk5LTQ2ZWItNGNhZC04ZjRkLTI4ZDY3MjA2MjQzNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMTQwMjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYjI0ZTk5YTY5NzdhZGU0ZDExYmJmOGQ0MzA5YmFhMDcxNjFhMTRiMTY1MWEwYjM3ZTYzNDIxM2E0ZmRjZTdhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.0lkj2O-4dK3Zg-1GM1x5TVlPvvelDQD0XH1j2Cr6J20)
Expand the “Assets” dropdown, and click on the file named “extension-v*.*.zip” to download the extension.
![Install from zip file, step three](https://private-user-images.githubusercontent.com/506089/288929719-c1184b95-bc92-4ac3-8ea1-882e8e4485e7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjU1MjksIm5iZiI6MTczOTA2NTIyOSwicGF0aCI6Ii81MDYwODkvMjg4OTI5NzE5LWMxMTg0Yjk1LWJjOTItNGFjMy04ZWExLTg4MmU4ZTQ0ODVlNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMTQwMjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZjM1ZjM1OTc4ZDI0MmM0N2NhZjE3MjBhNWQ5YjM1MWQ4M2VjMTQwMjBlZmE4ZGZhZjM2MTdiYWE0ZDEwNGViJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zp2CaEefg60VMHGh_UjEPulV0DKIEc1i6G17mDYavjA)
Go to chrome://extensions
in the browser you want PSAT to be installed on, turn on Developer mode
to load the unpacked extension, click the "Load unpacked" button, and select the unzipped extension folder.
![Screenshot 2023-12-07 at 10 45 00 AM](https://private-user-images.githubusercontent.com/506089/288860220-0b0c2a99-81ee-4433-a93e-98cfbd02a3ea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjU1MjksIm5iZiI6MTczOTA2NTIyOSwicGF0aCI6Ii81MDYwODkvMjg4ODYwMjIwLTBiMGMyYTk5LTgxZWUtNDQzMy1hOTNlLTk4Y2ZiZDAyYTNlYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMTQwMjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMGY0YWI0YTYzOWIxZGI0NmViOTEzYmFkOGRhMDQwODA0ODcxNWFhM2M0NjAxNzllNmI0Y2Y4MGNkMGU1ZjE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.pkXUS2jPimWBCXvzajnzkTiiB0M5GuaIYM2mZJG3GDc)
If you need to debug the extension or submit improvements, you can download the source code and run it locally.
- Clone this Privacy Sandbox Analysis Tool Repository
- Run
npm install
to install all dependencies -
npm run dev
ornpm run build
to generate a build in/dist/extension
- Turn on "Developer mode" in
chrome://extensions
to load the unpacked extension - Click on the "Load Unpacked" button and upload the
dist/extension
folder