Skip to content

Conversation

@jsuarezruiz
Copy link
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
Copy link
Contributor

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.

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);
Copy link

Copilot AI Jul 28, 2025

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