Let a theme carry its own fonts, drawings and images (#343) #1070
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1070
Loading…
Reference in a new issue
No description provided.
Delete branch "343-theme-assets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A theme could not bring a file of its own: the renderer fetches nothing
(#163), and nothing turned a file in a plugin's package into the data:
address the rule asked for. Now
{% load theme_assets %}{% theme_asset "path" %}writes one into the document before either renderer starts,so WeasyPrint's data-only fetcher and Chromium's abort-all route stay
exactly as they were, and tests/security/test_pdf_fetching.py is
unchanged.
What the file is, read from its first bytes, decides what is written: an
SVG as markup, held to the allowlist core.pictures keeps Postulo's own
pictures to (no script, handler, foreignObject, image or outside
reference; to a fragment), with its
64430e17e636c64afa8836c64afa88562f86c917