-
Notifications
You must be signed in to change notification settings - Fork 15
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
Loop protection in HTTPS upgrades #59
Conversation
8391f8a
to
bfaf018
Compare
@@ -174,7 +174,7 @@ function downloadTheResults () { | |||
const a = document.createElement('a'); | |||
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/json' })); | |||
a.href = url; | |||
a.download = 'fingerprinting-results.json'; | |||
a.download = 'https-upgrades-results.json'; |
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.
unrelated change - renaming downloaded file to match test name
</head> | ||
<body> | ||
<script> | ||
const MAX = 15; |
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.
if loop protection doesn't kick in after 15 attempts - give up
const tests = [ | ||
{ | ||
id: 'upgrade-navigation', | ||
run: () => { |
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.
most of this file, besides the contents of this test, is just a template. We should probably extract it to some reusable helpers instead of copying it over and over
290fd10
to
d6f6aab
Compare
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.
This is really great, thanks for changing the wording to make the test clearer :). Also thanks for the PR comments yourself, I think this helps often.
Domain is HTTPS upgradable but page will constantly try to downgrade to HTTP. Client should detect that and allow page to load. Unfortunately our extension seems to have a bug and doesn't do it.
https://app.asana.com/0/1186013049913869/1201057222436407/f