Page MenuHomePhabricator

bn.wikibooks loads fonts from third party sites
Closed, ResolvedPublic

Description

This stylesheet loads fonts from rawgit and google. This is enabled by default on every page (loaded from common.css). Like T303921, it's a violation of the privacy policy that should be fixed asap. I see a dozen CSP errors (report only) in the console, so there may be more stylesheets loading external resources.

Event Timeline

Daimona triaged this task as Unbreak Now! priority.Mar 17 2022, 6:44 PM
Mahir256 added subscribers: Aishik_Rehman, Mahir256.

The two references to fonts.googleapis.com use fonts which exist on wmflabs's FontCDN and can thus be substituted accordingly:

@import url(https://tools-static.wmflabs.org/fontcdn/css?family=Hind+Siliguri);
@import url(https://tools-static.wmflabs.org/fontcdn/css?family=Baloo+Da+2);

The other fonts can and should be removed absent indications that they are free/open-source and thus readily hostable on Wikimedia servers. Some references to these fonts in other stylesheets include, on a cursory search, https://bn.wikibooks.org/wiki/ব্যবহারকারী:Aishik_Rehman/common.css and https://bn.wikibooks.org/wiki/মিডিয়াউইকি:Perbook/Wikijunior:Countries_A-Z.css.

taavi added a subscriber: taavi.

Disabled these by default too: https://bn.wikibooks.org/w/index.php?title=%E0%A6%AE%E0%A6%BF%E0%A6%A1%E0%A6%BF%E0%A6%AF%E0%A6%BC%E0%A6%BE%E0%A6%89%E0%A6%87%E0%A6%95%E0%A6%BF:Common.css&diff=prev&oldid=43917 Leaving this task open for any possible follow-ups.

The two references to fonts.googleapis.com use fonts which exist on wmflabs's FontCDN and can thus be substituted accordingly:

Toolforge is not hosted on the production cluster which means that resources can't be loaded from there without user consent like any other third-party site.