Open
Bug 2088925
Opened 25 days ago
Updated 25 days ago
Continue CSS loading when an @import fails because a tracker was blocked
Categories
(Core :: Privacy: Anti-Tracking, enhancement)
Core
Privacy: Anti-Tracking
Tracking
()
NEW
People
(Reporter: mraiber, Unassigned)
References
Details
When Tracking Protection blocks an @import, the whole stylesheet is treated as failed (Loader::MarkLoadTreeFailed) and the <link> fires "error" instead of "load".
Sites that load CSS with the async pattern <link media="print" onload="this.media='all'"> then never apply their styles. For example, https://www.condor.com/tca/de/angebote/guenstige-fluege-finden with ETP Strict was rendering unstyled because its main stylesheet imports a font-tracking counter from hello.myfonts.net.
An @import blocked by the URL classifier should fail without failing the stylesheet that imports it. Other import failures (404, network errors) keep their current behaviour.
You need to log in
before you can comment on or make changes to this bug.
Description
•