-
Here's how it currently works in YariAny and every external URL is always forcibly converted to <a href="http://hg.mozilla.org/comm-central/">comm-central</a>
<a href="http://visualiser.fr/babylon/crowd">crowd</a> becomes: <a class="external" rel="noopener" href="https://hg.mozilla.org/comm-central/">comm-central</a>
<a class="external" rel="noopener" href="https://visualiser.fr/babylon/crowd">crowd</a> (note the extra The problemWhat happens is that, for example, http://visualiser.fr/babylon/crowd was working but https://visualiser.fr/babylon/crowd isn't. Our security worries have probably gone too far! And (together with my Yari PR reviewers) I apologize for that for it was my design. Sorry. Yes, we are Mozilla and we really want a secure web, but I think this went a bit too far. The other problem is that it's hard to know if a URL is going to work if you force it to HTTPS. It's a timely and fragile calculation that we can't conceivably do every single time for every single link in tens of thousands of documents. Proposed solutionLet's not automatically force all external http:// URLs to https:// anymore. Let's do something a bit smarter. Last week, I ran a complete build to get a complete list of every possible My suggestion is to check in the |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Perhaps you could ask @EFForg folks how they came up with a strategy for https://github.com/EFForg/https-everywhere ? |
Beta Was this translation helpful? Give feedback.
-
Am I getting this correctly? A flaw is reported in the cases that can't be fixed by the user? I would have thought that the flaw would appear if the domain can be forced but the link is using http. Obviously we'll miss any case we haven't got in our list of "can be forced" domains.
Note that this would be the rendered URL but I would expect the in-source URL to be In any case, the idea behind your suggestion seems solid to me. PS Back on deck tomorrow and will look at any unapproved PRs for me then. |
Beta Was this translation helpful? Give feedback.
-
Let's be more clear. It's only going to be a flaw if the |
Beta Was this translation helpful? Give feedback.
-
Hey, now there's a pull request to resolve this: mdn/yari#3657 |
Beta Was this translation helpful? Give feedback.
-
I don't see a way to "close" a discussion but as of mdn/yari#3657 we have a solution. If anything, the next action is to keep hunting for |
Beta Was this translation helpful? Give feedback.
I don't see a way to "close" a discussion but as of mdn/yari#3657 we have a solution.
Now, only
http://
links that are known to be safe to force tohttps://
are forced. All otherhttp://
links are left as-is. They're not even logged as flaws. But they do stand out a bit on the PR Review Companion.If anything, the next action is to keep hunting for
http://
and trying to "improve them".