Repository navigation
[Testing] Make HybridWebView gallery reset restore document origin - #40237
Merged
kubaflo merged 1 commit intoNov 13, 2026
Merged
Conversation
Prevent history restoration from retaining another DefaultFile's scroll offset during Reset. Publish Loaded only after the new DOM is at scroll origin, preserving title and reload-marker readiness. Exercise navigation then reset in the existing Shadow test and refresh only the two Android API30 origin baselines. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 17:12 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 17:12 — with
GitHub Actions
Inactive
This comment has been minimized.
This comment has been minimized.
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 17:13 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 17:15 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 17:17 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 17:17 — with
GitHub Actions
Inactive
1 task
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
/rebase |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Collaborator
PR Test Gate
🧪 Gate analysis — click to expand⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect. No interpretable test-group summary was produced. No additional test execution is inferred. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
Contributor
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit ca6f36f.
kubaflo
added a commit
that referenced
this pull request
Nov 13, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This was referenced Nov 14, 2026
Closed
3 tasks
kubaflo
added a commit
that referenced
this pull request
Nov 16, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 16, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 17, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 18, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 18, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 18, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 19, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 22, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 23, 2026
…40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
KarthikRajaKalaimani
pushed a commit
to KarthikRajaKalaimani/maui
that referenced
this pull request
Nov 26, 2026
…otnet#40237) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. This gallery/test correction is explicitly assigned to `candidate/11.0.1xx-sr2`, based on `7e47665ecb7f68d3fb31f8d02806e2bf177f505d`. It does not change framework behavior or release routing. ### Description of Change <!-- Enter description of the fix in this section --> Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different `DefaultFile` values share the same browser URL, allowing the offset left by `navigation.html` to be restored in `index.html`. The native WebView frame remains `[27,90][1054,746]`, but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry. On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to `(0,0)` and positively check both coordinates before publishing `Loaded`. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path. Strengthen the existing Shadow test by visiting `navigation.html`, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included. **Native causal evidence** — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi: - Exact original CI1679745 APK, SHA256 `58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639`: unchanged complete fixture has **9 passed / 2 failed**, with both original visuals differing by **7.90%**. The strengthened isolated Shadow test independently fails on heading bounds **Y244 -> Y139**, before screenshot comparison. - Trigger removed: the unchanged HybridWebView fixture with only its two navigation predecessors excluded passes **9/9**, including both visuals against the origin goldens. The original runner was copied for this control; no test exclusion was committed. - Fix applied: the complete fixture passes **11/11**, and both visual tests pass individually. Heading bounds are `[103,244][979,349]` before navigation and after Reset. - Gallery source reverted byte-for-byte to the candidate source and rebuilt with the same local toolchain: complete fixture returns to **9 passed / 2 failed**; isolated strengthened Shadow again fails **Y244 -> Y139**. The corresponding trigger-removed control passes **9/9**. - Fix restored and pushed as `ca6f36f39093dcc72c723c0cb01bfe7ce69f5952`: rebuilt after push, then **three complete fixture runs pass 11/11 each**. **Two additional isolated runs of each visual test pass**. No first-attempt failure was converted into a pass by rerunning it. **Commands and results:** - `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet` — passed. - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'` — restored fix and post-push rebuild passed **11/11**; the source-reverted control failed **2/11** as expected. - The isolated and repeat executions use the freshly built test assembly through `dotnet vstest`, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged. **Limits:** local source builds use the available .NET SDK **11.0.100**, runtime **11.0.0**, and GA Android workload, not the candidate-pinned **11.0.101-servicing.26559.106** toolchain. The emulator has WebView **91.0.4472.114**, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued. Upstream ownership was refreshed before publication: dotnet#40195/dotnet#40197 repair title readiness, dotnet#39795 repairs MIME handling, and dotnet#39918 owns broader test infrastructure. None implements this gallery reset correction. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from dotnet#40116, following dotnet#40197. No product issue is closed by this gallery-only correction. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
[!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!
Target Branch
mainnet11, for reviewFor .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into
net11; agents must not retarget or merge.This gallery/test correction is explicitly assigned to
candidate/11.0.1xx-sr2, based on7e47665ecb7f68d3fb31f8d02806e2bf177f505d. It does not change framework behavior or release routing.Description of Change
Resetting the HybridWebView gallery properties and reloading the document did not reset its scroll position. Different
DefaultFilevalues share the same browser URL, allowing the offset left bynavigation.htmlto be restored inindex.html. The native WebView frame remains[27,90][1054,746], but its heading moves from Y=244 to Y=139 after navigation and Reset. This is document history dependence, not native control geometry.On Reset only, disable automatic history scroll restoration before reloading, then scroll the newly ready DOM to
(0,0)and positively check both coordinates before publishingLoaded. Preserve exact-title matching, the old-document reload marker, DOM readiness independent of remote images, and the existing 50-attempt/100ms polling budget. Other gallery actions retain their existing title-readiness path.Strengthen the existing Shadow test by visiting
navigation.html, resetting, and asserting that the native heading bounds return to their original position before the existing screenshot assertion. Refresh only the two Android API30 Shadow/FlowDirection goldens to the verified document origin. No product changes, offsets, delays, tolerance/mask/crop/retry changes, skips, or new harness are included.Native causal evidence — all Android runs use the same exclusively assigned API30 emulator, 1080x1920 at 420dpi:
58ed1fc29acae710be628e47a957930faff6127f0d9a9230a5c954e59fc00639: unchanged complete fixture has 9 passed / 2 failed, with both original visuals differing by 7.90%. The strengthened isolated Shadow test independently fails on heading bounds Y244 -> Y139, before screenshot comparison.[103,244][979,349]before navigation and after Reset.ca6f36f39093dcc72c723c0cb01bfe7ce69f5952: rebuilt after push, then three complete fixture runs pass 11/11 each. Two additional isolated runs of each visual test pass. No first-attempt failure was converted into a pass by rerunning it.Commands and results:
dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/Controls/tests/TestCases.HostApp/FeatureMatrix/HybridWebView/HybridWebViewControlPage.xaml.cs src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/HybridWebViewFeatureTests.cs --verbosity quiet— passed.pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -DeviceUdid emulator-5582 -TestFilter 'FullyQualifiedName~HybridWebViewFeatureTests'— restored fix and post-push rebuild passed 11/11; the source-reverted control failed 2/11 as expected.dotnet vstest, with the same assigned emulator and independent TRX/log directories; existing screenshot strictness is unchanged.Limits: local source builds use the available .NET SDK 11.0.100, runtime 11.0.0, and GA Android workload, not the candidate-pinned 11.0.101-servicing.26559.106 toolchain. The emulator has WebView 91.0.4472.114, not CI's WebView83. This is native causal validation, not pinned-CI or cross-platform certification. iOS, Windows, MacCatalyst and Android API36 were not run; their goldens are unchanged. Only automatic CI is requested by publishing this PR; no extra CI waves were queued.
Upstream ownership was refreshed before publication: #40195/#40197 repair title readiness, #39795 repairs MIME handling, and #39918 owns broader test infrastructure. None implements this gallery reset correction.
Issues Fixed
Addresses the remaining Android HybridWebView Shadow and FlowDirection failures investigated from #40116, following #40197. No product issue is closed by this gallery-only correction.