Move CSS mask-image from inline data: to files#11258
Merged
timja merged 5 commits intojenkinsci:masterfrom Nov 4, 2025
Merged
Conversation
StefanSpieker
approved these changes
Nov 3, 2025
Member
|
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
Member
Author
This was referenced Nov 3, 2025
Member
|
Not a blocker - but any thoughts on exposing Symbols through an API so we don't duplicate them? |
Member
It would be better definitely although this isn't making the status quo any worse than before and it makes it easier to understand where the duplication is for a refactor. |
timja
approved these changes
Nov 3, 2025
StefanSpieker
approved these changes
Nov 3, 2025
janfaracik
approved these changes
Nov 3, 2025
Member
|
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Once done with them all, we'll be able to disallow
data:images sources in Content-Security-Policy. See #23863 for more context.This migrates images from inline
data:to files. I kept them unchanged, just fixing up percent-encoded HTML entities.Without the change to
webpack.config.jsthe build would fail.Testing done
Changed the CSP plugin config to disallow

data:asimg-src, enforced it, and clicked around on the UI. No findings were reported. Screenshots indicate it works:Setup wizard:


Proposed changelog entries
mask-imageattribute values from inlinedata:to files for better compatibility with restrictive Content-Security-Policy settings.Proposed changelog category
/label internal,web-ui
Proposed upgrade guidelines
N/A
Submitter checklist
@Restrictedor have@since TODOJavadocs, as appropriate.@Deprecated(since = "TODO")or@Deprecated(forRemoval = true, since = "TODO"), if applicable.evalto ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@mention
Before the changes are marked as
ready-for-merge:Maintainer checklist
upgrade-guide-neededlabel is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidateto be considered (see query).