Skip to content

fix(compiler): add entries to the Trusted type sink.#69050

Closed
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:i18n-trusted-type
Closed

fix(compiler): add entries to the Trusted type sink.#69050
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:i18n-trusted-type

Conversation

@JeanMeche

Copy link
Copy Markdown
Member

To prevent any non-safe i18n assignements, we add base|href, frame|src and link|href to the Trusted Type sink.

To prevent any non-safe i18n assignements, we add `base|href`, `frame|src` and `link|href` to the Trusted Type sink.
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Jun 1, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 1, 2026
@JeanMeche JeanMeche marked this pull request as ready for review June 1, 2026 15:08
@pullapprove pullapprove Bot requested a review from josephperrott June 1, 2026 15:08

@alan-agius4 alan-agius4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t these values already get sanitizer?

Also, the newly added elements are not part of the Trusted Sinks API AFAIK.

I don’t really know the history for added the Trusted Types, but I suspect it was due to the santizer was not integrated in the i18n pipeline before.

@pullapprove pullapprove Bot requested a review from alan-agius4 June 1, 2026 15:16
@AndrewKushnir

Copy link
Copy Markdown
Contributor

cc @dgp1130

@AndrewKushnir AndrewKushnir requested a review from dgp1130 June 1, 2026 16:15
@JeanMeche

Copy link
Copy Markdown
Member Author

The root issue was already fixed by #68591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compiler Issues related to `ngc`, Angular's template compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants