-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement test pages for platform-level privacy impacting APIs #74
Conversation
This is a very WIP commit. Needs a ton of refactoring, cleanup, and expansion.
This also stops sending back results via window.opener and instead sends them via localStorage. To achieve this, I propagate the results through all of the test pages via a query parameter. We will want to move this to server-side storage since the number of test results will grow quite long and lead to URLs in the 10s of thousands of characters.
There are still a few bugs to fix and some refactoring necessary.
HSTS requires HTTPS, so I've added support for that (including setup documentation).
sessionStorage still needs special handling...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done!I did a first quick read-through. I'll post more comments later today.
privacy-protections/storage-partitioning/helpers/idb-wrapper.js
Outdated
Show resolved
Hide resolved
privacy-protections/storage-partitioning/helpers/commonTests.js
Outdated
Show resolved
Hide resolved
privacy-protections/storage-partitioning/helpers/commonTests.js
Outdated
Show resolved
Hide resolved
privacy-protections/storage-partitioning/helpers/commonTests.js
Outdated
Show resolved
Hide resolved
privacy-protections/storage-partitioning/helpers/commonTests.js
Outdated
Show resolved
Hide resolved
privacy-protections/storage-partitioning/helpers/commonTests.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Konrad Dzwinel <konrad@duckduckgo.com>
…ivacy-test-pages into senglehardt/platform-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phew, this grew BIG!
I tested locally - no issues found, reviewed the code - found some nits and left couple questions. Other than that it looks good to go 🚀
See: https://app.asana.com/0/72649045549333/1201495751273690/f