-
Notifications
You must be signed in to change notification settings - Fork 24
Evaluation Environment
An evaluation environment is a controlled testing space designed to isolate the PSAT extension and its interaction with third-party cookies. This environment provides a clean slate, simulating a browser with no prior history or existing cookies.
Isolation: This environment is completely isolated from your browsing data, like browsing history and cookies. It's like having a newly installed browser without any past activity, ensuring the integrity of the testing process.
Accuracy: By removing external factors like browsing history and cookies, the evaluation environment allows PSAT to focus solely on how third-party cookies function. This reduces the chances of misleading results caused by unrelated browsing activity.
Precision: The controlled environment minimizes distractions and extraneous data, allowing for more precise identification of any issues related to third-party cookies.
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 3P 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 ensure the Chrome Launcher script remains up to date with the latest PSAT extension, follow these steps for updating the script:
- 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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjc4MDIsIm5iZiI6MTczOTA2NzUwMiwicGF0aCI6Ii81MDYwODkvMjg4ODUzNTAyLWI2NjRjNWVkLWE4NTgtNDQ3Yy05NDgxLWVmODE2ZDA1YjM1My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjE4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZGEyZDBhYTBmNmNhYTg0NDcwNTIwODQwMjdiYjk2OTBhYzMxMDFkZGJlNGFkNTk4YmZiNWRmMTU0NzJmN2QyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.CqWQizIpkDEc3qsl8iL-RhNnkFN6Yh-KPJuN4GT5vvY)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjc4MDIsIm5iZiI6MTczOTA2NzUwMiwicGF0aCI6Ii81MDYwODkvMjg4OTI5NzMzLTIzNTBmYzIyLWM2MGUtNDllMi05ZTNiLTE0OWNiNzhlYmMzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjE4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNmI5ZjYzZjQxNzRmYWRhYjYzMGQzMzY4OGRkMTJkNTZhODZhOWU1Y2RiYmM1MTNjZDg3YWIzMzUzMDJjNGNlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Z0PUZjJQqlrMGBXoOB2_06R0nBuhk6TR4VThyJyRVN0)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjc4MDIsIm5iZiI6MTczOTA2NzUwMiwicGF0aCI6Ii81MDYwODkvMjg4OTI5NzI3LTRkZDU2ZDk5LTQ2ZWItNGNhZC04ZjRkLTI4ZDY3MjA2MjQzNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjE4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MzVmZDg4YzZlMWViMDY0NzczNzY0MjljZjc1ODc5NDMwZmVmN2QyZTVmYzgzNTY0ZmEyMzQ0MDU1NDgxNDVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Vv6JVgfcpR8urPb_orewaDz6UcORTJpJNVumthHR9mU)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjc4MDIsIm5iZiI6MTczOTA2NzUwMiwicGF0aCI6Ii81MDYwODkvMjg4OTI5NzE5LWMxMTg0Yjk1LWJjOTItNGFjMy04ZWExLTg4MmU4ZTQ0ODVlNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjE4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZTIwMGNkOWUxYmRmYjhhYWQ5MjAzMWU2NDIwMDM2YjI0ODgwZTI4YTdhODI3ZDRiNjI1NTQ4YWNiMDNmMzRkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.S339-BJ_9yx1TayOz5N058M-q7-Vwe1HO9ZuZonL4m0)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjc4MDIsIm5iZiI6MTczOTA2NzUwMiwicGF0aCI6Ii81MDYwODkvMjg4ODYwMjIwLTBiMGMyYTk5LTgxZWUtNDQzMy1hOTNlLTk4Y2ZiZDAyYTNlYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjE4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MmYxZTkyNmY2NjQ2YWFhMGUxOWEyODg4YTZkOGY5ZTJhYzk1MTEzNTIzZGQzNjM5ZjRlZmNiMWY1Mjc4MDIxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bjWIT1CG-gz-pYNKyXEvafOoZ7eQfh1xDDxcXpW6wv8)
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