Skip to content
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

Add URL canonicalization tests. #208

Merged
merged 2 commits into from
May 17, 2024
Merged

Conversation

not-a-rootkit
Copy link
Collaborator

Asana Task: https://app.asana.com/0/0/1207138193507367/f

Our browsers are soon to be implementing URL canonicalization and we need a series of tests to ensure this is working as expected. Here we introduce several test cases based on the algorithm defined in the above Asana tasks. The aim is that each of these should be clicked, and the page should never load. If it loads, it indicates that our URL canonicalization is broken.

Note: this cannot be tested yet, soon a macOS PR will test against this.

* Malicious URL detection relies on URL canonicalization to prevent bypasses - this implements test cases to ensure our canonicalization works, when combined with our in-browser URL parsing.
@not-a-rootkit not-a-rootkit merged commit 84a24d0 into main May 17, 2024
1 check passed
@not-a-rootkit not-a-rootkit deleted the tespach/url-canonicalization branch May 17, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant