Skip to content

[X] Protect some xmlns #28909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

StephaneDelcroix
Copy link
Contributor

@StephaneDelcroix StephaneDelcroix commented Apr 10, 2025

Description of Change

[X] Protect some xmlns

protect maui and x: xmlns from overloading.

Issues Fixed

@Copilot Copilot AI review requested due to automatic review settings April 10, 2025 11:52
@StephaneDelcroix StephaneDelcroix requested a review from a team as a code owner April 10, 2025 11:52
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@mattleibow
Copy link
Member

😉

Comment on lines +349 to +352
if (attribute.XmlNamespace.StartsWith("http://schemas.microsoft.com/", StringComparison.Ordinal) &&
!attribute.AssemblyName.StartsWith("Microsoft", StringComparison.Ordinal) &&
!attribute.AssemblyName.StartsWith("System", StringComparison.Ordinal) &&
!attribute.AssemblyName.StartsWith("mscorlib", StringComparison.Ordinal))
Copy link
Contributor

@mgoertz-msft mgoertz-msft Apr 23, 2025

Choose a reason for hiding this comment

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

Looks this check is duplicated 3 times. Could you put that into a single, central place somewhere?

protect maui and x: xmlns from overloading.

- fixes #28836
@StephaneDelcroix StephaneDelcroix force-pushed the dev/stdelc/protectxmlns branch from 7849a4b to 49c2d2b Compare May 19, 2025 11:26
@StephaneDelcroix
Copy link
Contributor Author

closing in favour of #29579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-xaml XAML, CSS, Triggers, Behaviors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

protect maui xmlns from overloading
5 participants