Repository navigation
Fix problem with null VirtualView in BlazorWebViewHandler on iOS - #38141
Merged
Conversation
Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods.
JimmyPun610
temporarily deployed
to
copilot-pat-pool
September 3, 2026 03:20 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38141Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38141" |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Hey there @@JimmyPun610! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Contributor
|
Hey there @JimmyPun610! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
JimmyPun610
temporarily deployed
to
copilot-pat-pool
September 3, 2026 03:21 — with
GitHub Actions
Inactive
JimmyPun610
temporarily deployed
to
copilot-pat-pool
September 3, 2026 03:22 — with
GitHub Actions
Inactive
JimmyPun610
temporarily deployed
to
copilot-pat-pool
September 3, 2026 03:23 — with
GitHub Actions
Inactive
JimmyPun610
temporarily deployed
to
copilot-pat-pool
September 3, 2026 03:25 — with
GitHub Actions
Inactive
JimmyPun610
temporarily deployed
to
copilot-pat-pool
September 3, 2026 03:25 — with
GitHub Actions
Inactive
kubaflo
approved these changes
Sep 3, 2026
kubaflo
pushed a commit
that referenced
this pull request
Sep 3, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
pushed a commit
that referenced
this pull request
Sep 6, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
pushed a commit
that referenced
this pull request
Sep 7, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
pushed a commit
that referenced
this pull request
Sep 8, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
pushed a commit
that referenced
this pull request
Sep 9, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
pushed a commit
that referenced
this pull request
Sep 11, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
2 of 4 tasks
kubaflo
pushed a commit
that referenced
this pull request
Sep 15, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
added a commit
that referenced
this pull request
Sep 15, 2026
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Targets **`inflight/current`** to repair the two compiler/analyzer failures in `maui-pr` [build 1597590](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597590). - Fix **CS1061** in the iOS/Mac Catalyst BlazorWebView scheme handler introduced by #38141: `BlazorWebViewHandler` has no `Handler` property. Read the nullable `IViewHandler.VirtualView` property instead, preserving the disconnected-handler guard and existing empty 404 response. The strongly typed `VirtualView` getter cannot be used for this check because it throws when disconnected. - Fix **MAUI0003** in the regression test added by #37437: use method-level `ShardedTestCategory` with shard 1, registering both the `CollectionView` umbrella and the `CollectionView1` CI category without changing the test assertions or platform coverage. The missing Mac native-artifact publishing error is downstream of the failed Pack step, so no pipeline workaround is needed. No competing open repair targeting `inflight/current` was found. ### Issues Fixed Repairs the `maui-pr` build failures on `inflight/current`; retains the regression protection for #38131 and the test coverage for #37427. ### Validation - BlazorWebView project builds for `net10.0-ios26.0` and `net10.0-maccatalyst26.0`: zero warnings/errors. - Existing UI-test category analyzer suite: 46 passed. - Changed files formatted and `git diff --check` clean. Local validation used the installed .NET 11 preview SDK targeting .NET 10. Full CI has not yet been rerun with the repository-pinned SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
pushed a commit
that referenced
this pull request
Sep 18, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
added a commit
that referenced
this pull request
Sep 18, 2026
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Targets **`inflight/current`** to repair the two compiler/analyzer failures in `maui-pr` [build 1597590](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597590). - Fix **CS1061** in the iOS/Mac Catalyst BlazorWebView scheme handler introduced by #38141: `BlazorWebViewHandler` has no `Handler` property. Read the nullable `IViewHandler.VirtualView` property instead, preserving the disconnected-handler guard and existing empty 404 response. The strongly typed `VirtualView` getter cannot be used for this check because it throws when disconnected. - Fix **MAUI0003** in the regression test added by #37437: use method-level `ShardedTestCategory` with shard 1, registering both the `CollectionView` umbrella and the `CollectionView1` CI category without changing the test assertions or platform coverage. The missing Mac native-artifact publishing error is downstream of the failed Pack step, so no pipeline workaround is needed. No competing open repair targeting `inflight/current` was found. ### Issues Fixed Repairs the `maui-pr` build failures on `inflight/current`; retains the regression protection for #38131 and the test coverage for #37427. ### Validation - BlazorWebView project builds for `net10.0-ios26.0` and `net10.0-maccatalyst26.0`: zero warnings/errors. - Existing UI-test category analyzer suite: 46 passed. - Changed files formatted and `git diff --check` clean. Local validation used the installed .NET 11 preview SDK targeting .NET 10. Full CI has not yet been rerun with the repository-pinned SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
pushed a commit
that referenced
this pull request
Sep 21, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
added a commit
that referenced
this pull request
Sep 21, 2026
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Targets **`inflight/current`** to repair the two compiler/analyzer failures in `maui-pr` [build 1597590](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597590). - Fix **CS1061** in the iOS/Mac Catalyst BlazorWebView scheme handler introduced by #38141: `BlazorWebViewHandler` has no `Handler` property. Read the nullable `IViewHandler.VirtualView` property instead, preserving the disconnected-handler guard and existing empty 404 response. The strongly typed `VirtualView` getter cannot be used for this check because it throws when disconnected. - Fix **MAUI0003** in the regression test added by #37437: use method-level `ShardedTestCategory` with shard 1, registering both the `CollectionView` umbrella and the `CollectionView1` CI category without changing the test assertions or platform coverage. The missing Mac native-artifact publishing error is downstream of the failed Pack step, so no pipeline workaround is needed. No competing open repair targeting `inflight/current` was found. ### Issues Fixed Repairs the `maui-pr` build failures on `inflight/current`; retains the regression protection for #38131 and the test coverage for #37427. ### Validation - BlazorWebView project builds for `net10.0-ios26.0` and `net10.0-maccatalyst26.0`: zero warnings/errors. - Existing UI-test category analyzer suite: 46 passed. - Changed files formatted and `git diff --check` clean. Local validation used the installed .NET 11 preview SDK targeting .NET 10. Full CI has not yet been rerun with the repository-pinned SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
pushed a commit
that referenced
this pull request
Sep 27, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
added a commit
that referenced
this pull request
Sep 27, 2026
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Targets **`inflight/current`** to repair the two compiler/analyzer failures in `maui-pr` [build 1597590](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597590). - Fix **CS1061** in the iOS/Mac Catalyst BlazorWebView scheme handler introduced by #38141: `BlazorWebViewHandler` has no `Handler` property. Read the nullable `IViewHandler.VirtualView` property instead, preserving the disconnected-handler guard and existing empty 404 response. The strongly typed `VirtualView` getter cannot be used for this check because it throws when disconnected. - Fix **MAUI0003** in the regression test added by #37437: use method-level `ShardedTestCategory` with shard 1, registering both the `CollectionView` umbrella and the `CollectionView1` CI category without changing the test assertions or platform coverage. The missing Mac native-artifact publishing error is downstream of the failed Pack step, so no pipeline workaround is needed. No competing open repair targeting `inflight/current` was found. ### Issues Fixed Repairs the `maui-pr` build failures on `inflight/current`; retains the regression protection for #38131 and the test coverage for #37427. ### Validation - BlazorWebView project builds for `net10.0-ios26.0` and `net10.0-maccatalyst26.0`: zero warnings/errors. - Existing UI-test category analyzer suite: 46 passed. - Changed files formatted and `git diff --check` clean. Local validation used the installed .NET 11 preview SDK targeting .NET 10. Full CI has not yet been rerun with the repository-pinned SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
pushed a commit
that referenced
this pull request
Sep 27, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
added a commit
that referenced
this pull request
Sep 27, 2026
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Targets **`inflight/current`** to repair the two compiler/analyzer failures in `maui-pr` [build 1597590](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597590). - Fix **CS1061** in the iOS/Mac Catalyst BlazorWebView scheme handler introduced by #38141: `BlazorWebViewHandler` has no `Handler` property. Read the nullable `IViewHandler.VirtualView` property instead, preserving the disconnected-handler guard and existing empty 404 response. The strongly typed `VirtualView` getter cannot be used for this check because it throws when disconnected. - Fix **MAUI0003** in the regression test added by #37437: use method-level `ShardedTestCategory` with shard 1, registering both the `CollectionView` umbrella and the `CollectionView1` CI category without changing the test assertions or platform coverage. The missing Mac native-artifact publishing error is downstream of the failed Pack step, so no pipeline workaround is needed. No competing open repair targeting `inflight/current` was found. ### Issues Fixed Repairs the `maui-pr` build failures on `inflight/current`; retains the regression protection for #38131 and the test coverage for #37427. ### Validation - BlazorWebView project builds for `net10.0-ios26.0` and `net10.0-maccatalyst26.0`: zero warnings/errors. - Existing UI-test category analyzer suite: 46 passed. - Changed files formatted and `git diff --check` clean. Local validation used the installed .NET 11 preview SDK targeting .NET 10. Full CI has not yet been rerun with the repository-pinned SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
pushed a commit
that referenced
this pull request
Oct 3, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
added a commit
that referenced
this pull request
Oct 3, 2026
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Targets **`inflight/current`** to repair the two compiler/analyzer failures in `maui-pr` [build 1597590](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597590). - Fix **CS1061** in the iOS/Mac Catalyst BlazorWebView scheme handler introduced by #38141: `BlazorWebViewHandler` has no `Handler` property. Read the nullable `IViewHandler.VirtualView` property instead, preserving the disconnected-handler guard and existing empty 404 response. The strongly typed `VirtualView` getter cannot be used for this check because it throws when disconnected. - Fix **MAUI0003** in the regression test added by #37437: use method-level `ShardedTestCategory` with shard 1, registering both the `CollectionView` umbrella and the `CollectionView1` CI category without changing the test assertions or platform coverage. The missing Mac native-artifact publishing error is downstream of the failed Pack step, so no pipeline workaround is needed. No competing open repair targeting `inflight/current` was found. ### Issues Fixed Repairs the `maui-pr` build failures on `inflight/current`; retains the regression protection for #38131 and the test coverage for #37427. ### Validation - BlazorWebView project builds for `net10.0-ios26.0` and `net10.0-maccatalyst26.0`: zero warnings/errors. - Existing UI-test category analyzer suite: 46 passed. - Changed files formatted and `git diff --check` clean. Local validation used the installed .NET 11 preview SDK targeting .NET 10. Full CI has not yet been rerun with the repository-pinned SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
pushed a commit
that referenced
this pull request
Oct 3, 2026
) Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods. Description of Change Checking if Handler has container before using VirtualView which can crash app if is null Issues Fixed Fixes #38131
kubaflo
added a commit
that referenced
this pull request
Oct 3, 2026
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Targets **`inflight/current`** to repair the two compiler/analyzer failures in `maui-pr` [build 1597590](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1597590). - Fix **CS1061** in the iOS/Mac Catalyst BlazorWebView scheme handler introduced by #38141: `BlazorWebViewHandler` has no `Handler` property. Read the nullable `IViewHandler.VirtualView` property instead, preserving the disconnected-handler guard and existing empty 404 response. The strongly typed `VirtualView` getter cannot be used for this check because it throws when disconnected. - Fix **MAUI0003** in the regression test added by #37437: use method-level `ShardedTestCategory` with shard 1, registering both the `CollectionView` umbrella and the `CollectionView1` CI category without changing the test assertions or platform coverage. The missing Mac native-artifact publishing error is downstream of the failed Pack step, so no pipeline workaround is needed. No competing open repair targeting `inflight/current` was found. ### Issues Fixed Repairs the `maui-pr` build failures on `inflight/current`; retains the regression protection for #38131 and the test coverage for #37427. ### Validation - BlazorWebView project builds for `net10.0-ios26.0` and `net10.0-maccatalyst26.0`: zero warnings/errors. - Existing UI-test category analyzer suite: 46 passed. - Changed files formatted and `git diff --check` clean. Local validation used the installed .NET 11 preview SDK targeting .NET 10. Full CI has not yet been rerun with the repository-pinned SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add null checks for _webViewHandler and related properties in StartUrlSchemeTask and GetResponseBytes methods.
Description of Change
Checking if Handler has container before using VirtualView which can crash app if is null
Issues Fixed
Fixes #38131