Page MenuHomePhabricator

MediaWiki JS documentation tries to load fonts from Google (but fails due to CSP)
Open, Needs TriagePublic

Description

At the bottom of the HTML for https://doc.wikimedia.org/mediawiki-core/master/js/ there is:

<script type="text/javascript">
(function(){
  var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
  document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
})();
</script>

This is correctly blocked by the CSP, but should still be removed.

Event Timeline

T213282: JSDuck at doc.wikimedia.org loads fonts from google says the CSP is a good-enough fix for this while until migrate to a better documentation generator?