not all http:// links can be https:// #3657
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #3654
This is a great page to test it on:
http://localhost:3000/en-US/docs/Web/API/Touch_events/Using_Touch_Events#examples_and_demos
In the source it has this:
And the output, becomes:
That's because it knows with certainty that
www.codicode.com
is a domain where you can safely just replacehttp://
forhttps://
.For the
http://www.javascriptkit.com/javatutors/touchevents.shtml
link it's basically a "hopeless case". It's too expensive and fragile to try to do a network lookup on this at build-time in the flaw system. In fact, when I generated thesafe-to-https-domains.json
file [with my hacky Python script])(https://gist.github.com/peterbe/8fabfcdb46bdf6b9211af636fd8cd178) I found it was causingSSLError
problems.I still like that
http://
links stick out a in the PR Review Companion but it's not a flaw anymore.