-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Blazor] Clean up duplicate path normalization code in HybridWebView #30873
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR cleans up duplicate path normalization code in the HybridWebView implementation by consolidating functionality into a centralized utility.
- Removes local
PathUtilsclass and replaces it with existingFileSystemUtils.NormalizePath - Adds necessary
usingstatement forMicrosoft.Maui.Storage - Eliminates code duplication by leveraging shared functionality
| } | ||
|
|
||
| filename = PathUtils.NormalizePath(filename); | ||
| filename = FileSystemUtils.NormalizePath(filename); |
Copilot
AI
Jul 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change replaces a local PathUtils.NormalizePath method with FileSystemUtils.NormalizePath, which could be a breaking change if the behavior differs between implementations. Please verify that FileSystemUtils.NormalizePath has identical behavior to the removed PathUtils.NormalizePath method, and alert reviewers that this is potentially a breaking change.
Description of Change
Clean up duplicate path normalization code in HybridWebView.
Issues Fixed
Fixes #23668