Skip to content

Conversation

@kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Oct 26, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Adjusted SelectableItemsViewAdapter to correctly handle selection when header or footer templates are present. Updated Issue21375 test case to include header and footer templates.

Issues Fixed

Fixes #32212

Regressing PR #29818

Copilot AI review requested due to automatic review settings October 26, 2025 13:47
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 implements support for intercepting web resource requests in BlazorWebView across iOS, Windows, and Android platforms. The changes enable applications to customize or override resource loading behavior through a new WebResourceRequested event.

Key changes:

  • Added a new public API WebResourceRequested event to BlazorWebView for intercepting web resource requests
  • Implemented platform-specific request interception mechanisms for iOS, Windows, and Android
  • Fixed iOS-specific issues including deprecated API usage and JavaScript text input panel handling
  • Updated localization files across multiple languages

Reviewed Changes

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

Show a summary per file
File Description
src/BlazorWebView/src/Maui/iOS/IOSWebViewManager.cs Implemented custom text input panel handler and added request interception support
src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs Added webview scrolling configuration and request interception logic
src/BlazorWebView/src/Maui/Windows/WinUIWebViewManager.cs Integrated request interception into Windows WebView2 request handling
src/BlazorWebView/src/Maui/PublicAPI/*/PublicAPI.Unshipped.txt Documented new public API surface for WebResourceRequested event
src/BlazorWebView/src/Maui/IBlazorWebView.cs Extended interface to support web request interception
src/BlazorWebView/src/Maui/BlazorWebView.cs Implemented WebResourceRequested event and interface methods
src/BlazorWebView/src/Maui/Android/WebKitWebViewClient.cs Refactored request handling to support interception
src/BlazorWebView/src/Maui/Android/BlazorWebViewHandler.Android.cs Updated type references to use global namespace qualifiers
src/BlazorWebView/src/Maui/Android/BlazorWebChromeClient.cs Updated type references to use global namespace qualifiers
src/BlazorWebView/samples/BlazorWpfApp/BlazorWpfApp.csproj Updated target framework to include Windows SDK version
src/BlazorWebView/samples/BlazorWinFormsApp/BlazorWinFormsApp.csproj Removed unnecessary IsTestProject property
src/BlazorWebView/src/Maui/Microsoft.AspNetCore.Components.WebView.Maui.csproj Enabled unsafe blocks and removed unused file link
loc/**/templatestrings.json.lcl Updated localization files with translations and metadata
loc/**/MauiGResources.resx.lcl Added new localized error messages for XAML parsing
loc/**/ErrorMessages.resx.lcl Updated localized error message translations
loc/**/StringResources.resx.lcl Updated localized UI string translations
Comments suppressed due to low confidence (1)

src/BlazorWebView/src/Maui/BlazorWebView.cs:1

  • Corrected spelling of 'ReponseContentNotFound' to 'ResponseContentNotFound'.
using System;

@kubaflo kubaflo changed the title Fix 32212 [Android] Fixed selection logic with header/footer in CollectionView Oct 26, 2025
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Oct 26, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @@kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@kubaflo kubaflo changed the base branch from main to net10.0 October 26, 2025 13:48
@kubaflo kubaflo self-assigned this Oct 26, 2025
@kubaflo kubaflo added platform/android area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Oct 26, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

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

This is the tests validating the fix?

@rmarinho
Copy link
Member

Do we need to update the screenshots ?
SelectedItemsShowSelected_single

@kubaflo
Copy link
Contributor Author

kubaflo commented Oct 30, 2025

This is the tests validating the fix?

Exactly, it is

@kubaflo
Copy link
Contributor Author

kubaflo commented Oct 30, 2025

Do we need to update the screenshots ? SelectedItemsShowSelected_single

Yes, thanks! Updated

@kubaflo kubaflo changed the base branch from net10.0 to main October 30, 2025 23:35
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

PureWeen commented Nov 2, 2025

/rebase

Adjusted SelectableItemsViewAdapter to correctly handle selection when header or footer templates are present. Updated Issue21375 test case to include header and footer templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android][.NET9] Selecting error when there is a FooterTemplate

4 participants