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鈥檛 these values already get sanitizer?

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

I don鈥檛 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

@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jul 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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