Skip to content

[release/11.0.1xx][tests] Backport offline WebView history fixture - #39791

Merged
kubaflo merged 1 commit into
release/11.0.1xxfrom
kubaflo-webview-history-fixture-servicing
Nov 3, 2026
Merged

kubaflo merged 1 commit into
release/11.0.1xxfrom
kubaflo-webview-history-fixture-servicing

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Note

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

Description of Change

This is an explicitly requested servicing backport, targeting release/11.0.1xx, not a new alternative fix or a promotion merge. Commit 36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba has the exact servicing parent df9c5fd8109abf9411146d2fe041a2d8967e64ed from #39742.

Retain the existing owned fixture correction from #39779:

  • Only TestCases.HostApp/Issues/Issue30381.cs, TestCases.HostApp/Resources/Raw/issue30381.html, and TestCases.Shared.Tests/Tests/Issues/Issue30381.cs from source commit 7d49f3b58650e187f06ce29f80d2a1744c6aef23; do not import that commit's unrelated eng/devices/uitests-shared.cake edit.
  • Retain the isolated HostApp-only Catalyst bundle correction from a5ac3382e878da00bec8ac59bc56cd196122f5d2. The resulting three files are byte-identical to those retained owner blobs; original authorship and source/session provenance are recorded in the commit.

Replace the external GitHub destination with a five-line bundled document, match the completed destination URL, and strictly assert all five existing boolean wait results. Catalyst changes only the anchor href to Contents/Resources/issue30381.html, matching its actual bundled raw-asset location.

Preserved: the initial HtmlWebViewSource and null BaseUrl, JavaScript link click, original 1-second sleep, every navigation/status action and final assertion, existing Android/Windows compile guards, categories, case definitions, goldens, waits, and budgets. No dependency, promotion, runner, pipeline, project, or other follow-up changes. Exactly 3 files, +22/−11.

Supported-target qualification

The unchanged full/default maui-pr-uitests definition 313 branch run 1658190 used the exact pushed source, without parameter, variable, category, matrix, configuration, or budget overrides. Each native lane's own checkout log confirms 36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba.

Issue30381.WebViewCanGoForwardShouldHaveValueAfterNavigation passed on the first execution in all three applicable default native lanes. No test/task retry was executed in these WebView lanes.

Actual target Full WebView catalog Issue30381 Own receipt
MacCatalyst, CoreCLR on macOS 14.8.7 (macos-14 image 20260629.0276.1) 47/47 Passed Passed 32.420s Native run 46161964, result 100039; raw log 4745, publication 4752
iPhone 11 Pro CoreSimulator, actual iOS 26.5 (latest lane), CoreCLR 53: 52 Passed, 1 existing NotExecuted Passed 6.453s Native run 46162166, result 100003; raw log 5067, publication 5081
iPhone 11 Pro CoreSimulator, actual iOS 18.5, CoreCLR 53: 52 Passed, 1 existing NotExecuted Passed 6.360s Native run 46162092, result 100041; raw log 4956, publication 4991

The complete native catalogs and raw first-run case names match the servicing baselines exactly: Mac 47, iOS 53, not both 47 and not the owner's separate 49-case promotion catalog. The existing iOS Issue1583_1_WebviewTest NotExecuted result remains explicit; this PR adds no skips and does not claim every unrelated existing test executed.

The current servicing failure evidence was build 1658120/source 19f886dbca0dadd7bd70141fe5859a04b48ff7b8: Catalyst raw log 4626 showed the same 47-case catalog failing 46 Passed/1 Failed on both first execution and the stock retry, at App.Tap("UpdateStatusButton"), test line 28, after external navigation, with a 45s Appium RPC timeout. Publication 4628/native run 46160090 agreed. Those fixture/runner paths are unchanged between that source and this backport's servicing parent. The separately bounded 15s diagnostic timeout is not an increased test budget. Earlier passing runs and the owner's receipts are not substituted for this backport's own native acceptance; no Catalyst ablation certification is claimed.

Both actual compiled app members in this build's ui-tests-samples-coreclr artifact 50872337 were downloaded and verified against the tracked asset: iOS .app/issue30381.html and Catalyst .app/Contents/Resources/issue30381.html, each 130 bytes, SHA-256 140056173bca657a3b6ccde00de0b4a1fb0b07ea419856ad7be61352784d728d. Existing MauiAsset wildcard packaging is unchanged.

Commands and local limits

Exact branch qualification command — successfully queued run 1658190; native WebView results are above, overall run failed for the residuals below:

az pipelines run --id 313 --branch refs/heads/kubaflo-webview-history-fixture-servicing --commit-id 36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba --org https://dev.azure.com/dnceng-public --project public --only-show-errors -o json

Exact managed-only compile commands — both passed, 0 warnings/0 errors, using the already verified SDK 11.0.100/a586537b38:

env -u DOTNET_ROOT /Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-potential-tribble/.dotnet/dotnet build src/Controls/tests/TestCases.Mac.Tests/Controls.TestCases.Mac.Tests.csproj -c Release -f net11.0 -p:MauiPlatforms=net11.0 -v minimal
env -u DOTNET_ROOT /Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-potential-tribble/.dotnet/dotnet build src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj -c Release -f net11.0 -p:MauiPlatforms=net11.0 -v minimal

The exact HostApp fixture also compiled against real managed MAUI assemblies with and without MACCATALYST, each 0 warnings/0 errors. These local checks are not native HostApp certification. The SDK has no installed workloads; the required Apple SDK 27 toolchain is unavailable locally. No toolchain downgrade/bypass, physical Apple device, or local host-macOS XCTest execution was used. Native acceptance comes only from the actual CI receipts above.

Remaining CI failures — not fixed or hidden here

Run 1658190 completed Failed at 2026-11-01T05:04:35Z; this is not an overall green-CI or merge-ready claim. All final non-successful jobs were inspected separately:

  • Windows Shell2: raw 6040/native run 46166972; first and stock retry each 197: 181 Passed, 3 Failed, 13 NotExecuted. VerifyShellSearch_CancelButtonColor and VerifyShellSearch_CharacterSpacing retain 0.76% visual differences; VerifyShellSearch_TextTransformUppercase retains 0.70%. Those separate oracles/snapshots are the subject of owned follow-up [release/11.0.1xx][iOS, Windows tests] Align ShellSearch/tab-bar oracles and RefreshView return gesture #39783 and are untouched here.
  • MacCatalyst Layout: raw 6061/native run 46170266; the complete first run was 193: 188 Passed, 1 Failed, 4 NotExecuted, failing Issue17389.ValidateBackgroundColorDoesNotAffectInputTransparent because RedGrid tap count remained false. The unchanged full 193-case stock retry was canceled at the existing 180-minute job limit, with no completed retry summary. Publication 6063 retained the actual first-run failure; missing retry completion is not treated as a pass. Layout execution is a separate follow-up ([release/11.0.1xx] Shard Layout UI tests to reduce full-retry timeout risk #39786); neither that runner nor Issue17389 is changed here.

Open/recent merged upstream and servicing fixture history were rechecked before publication; there is no servicing duplicate of this three-file correction. No fresh CI retry was queued to force green, no unrelated follow-up was imported, and no merge is requested by this qualification report.

Issues Fixed

Fixes the supported-target Issue30381 UI fixture timeout/ignored readiness assertions observed in servicing CI. Related to #30381; its original product history fix is already present from #33183. This is a fixture backport, not a new product fix or a reproduction-only PR.

Retain only the three Issue30381 fixture paths from the existing owned correction in #39779 (7d49f3b), plus its isolated Catalyst bundle-path correction (a5ac338). Exclude the unrelated Cake diagnostic-path edit and all promotion/dependency changes.

Keep HtmlWebViewSource and null BaseUrl, JavaScript navigation, the original 1s sleep, every navigation/status action and final oracle, and existing Android/Windows compile guards. Assert all five existing boolean waits without new waits or larger budgets. Managed client/source compiles and bundled-asset validation passed; servicing native acceptance is pending unchanged default CI.

Source-commit: 7d49f3b (three fixture paths only)
Source-commit: a5ac338
Source-session: d595bf0b-ce58-4118-be08-7fe144955a64
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c3054549-a47e-4ba8-8814-9944372281b0
Copilot AI balanced review requested due to automatic review settings November 1, 2026 05:07
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 1, 2026 05:07 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39791

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39791"

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 1, 2026 05:08 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new back-navigation assertions can time out after successful navigation because the status labels are not updated for the initial bundle URL.

1 open issue
What changed in this PR

Backports the offline Issue30381 WebView history fixture to release/11.0.1xx. This updates regression-test infrastructure for the existing history fix from #33183; it does not change product code.

Changes:

  • Replaces external navigation with a bundled HTML document, using the MacCatalyst-specific asset path.
  • Updates destination URL matching and asserts all five existing boolean wait results.
  • Preserves platform guards, navigation actions, and test budgets without importing unrelated promotion changes.
File Description
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​Issues/​Issue30381.cs Asserts navigation-state waits and updates the navigation comment.
src/​Controls/​tests/​TestCases.HostApp/​Resources/​Raw/​issue30381.html Adds a minimal offline navigation destination.
src/​Controls/​tests/​TestCases.HostApp/​Issues/​Issue30381.cs Uses the bundled destination, adjusts its Catalyst path, and updates URL matching.

Review effort: Balanced

void OnWebViewNavigated(object sender, WebNavigatedEventArgs e)
{
if (e.Url.Contains("github.com", StringComparison.OrdinalIgnoreCase))
if (e.Url.EndsWith("/issue30381.html", StringComparison.OrdinalIgnoreCase))
@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adversarial review of exact head 36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba, completed by 3 independent reviewers with adversarial consensus.

No additional actionable findings after accounting for the existing review feedback. The previously reported concern in discussion_r4434497921 was considered and not duplicated; its resolution status is unknown. This is not a clean bill of health.

The modified UI scenario exercises link navigation, Back, and Forward, and now asserts all five existing readiness-wait results. Native Apple runtime execution was not performed in this review.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

@kubaflo

kubaflo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit ccd68b7 into release/11.0.1xx Nov 3, 2026
202 of 210 checks passed
@kubaflo
kubaflo deleted the kubaflo-webview-history-fixture-servicing branch November 3, 2026 14:21
@github-actions github-actions Bot added this to the .NET 11.0 GA milestone Nov 3, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 4, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 36bfdc9c Deployed Nov 1, 2026 by kubaflo via conclusion #2603
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants