Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Blazor] Clean up duplicate path normalization code in HybridWebView - #30873

#30873
Merged
PureWeen merged 1 commit into
maindotnet/maui:mainfrom
fix-23668dotnet/maui:fix-23668Copy head branch name to clipboard
Aug 4, 2025
Merged

[Blazor] Clean up duplicate path normalization code in HybridWebView#30873
PureWeen merged 1 commit into
maindotnet/maui:mainfrom
fix-23668dotnet/maui:fix-23668Copy head branch name to clipboard

Conversation

@jsuarezruiz

Copy link
Copy Markdown
Contributor

Description of Change

Clean up duplicate path normalization code in HybridWebView.

Issues Fixed

Fixes #23668

Copilot AI review requested due to automatic review settings July 28, 2025 11:11
@jsuarezruiz
jsuarezruiz requested a review from a team as a code owner July 28, 2025 11:11
@jsuarezruiz jsuarezruiz added area-blazor Blazor Hybrid / Desktop, BlazorWebView t/housekeeping ♻︎ labels Jul 28, 2025

Copilot AI 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.

Pull Request Overview

This PR cleans up duplicate path normalization code in the HybridWebView implementation by consolidating functionality into a centralized utility.

  • Removes local PathUtils class and replaces it with existing FileSystemUtils.NormalizePath
  • Adds necessary using statement for Microsoft.Maui.Storage
  • Eliminates code duplication by leveraging shared functionality

}

filename = PathUtils.NormalizePath(filename);
filename = FileSystemUtils.NormalizePath(filename);

Copilot AI Jul 28, 2025

Copy link

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.

Copilot uses AI. Check for mistakes.
@PureWeen
PureWeen merged commit b35e5be into main Aug 4, 2025
129 checks passed
@PureWeen
PureWeen deleted the fix-23668 branch August 4, 2025 20:26
SuthiYuvaraj pushed a commit to SuthiYuvaraj/maui that referenced this pull request Aug 12, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-blazor Blazor Hybrid / Desktop, BlazorWebView t/housekeeping ♻︎

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HybridWebView: Clean up duplicate path manipulization/normalization code

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.