Skip to content

[maui-bot-fix] Fix for #36933 - [iOS/MacCatalyst] DatePicker and TimePicker Background is not cleared when set to null… - #448

Closed
MauiBot wants to merge 2 commits into
kubaflo:mainfrom
MauiBot:copilot/reproduce-36933-ios-15082788-1
Closed

MauiBot wants to merge 2 commits into
kubaflo:mainfrom
MauiBot:copilot/reproduce-36933-ios-15082788-1

Conversation

@MauiBot

@MauiBot MauiBot commented Aug 25, 2026

Copy link
Copy Markdown

Important

This is AI-generated reproduction evidence with a proposed fix. The first commit adds a test that fails on the unfixed baseline; the second changes product code so it passes. Both the test and the fix need human review before merge.

Evidence level

Evidence level: certified-oracle

All four arms agree: the test fails as reported, passes with the reported trigger removed, passes with a minimal product fix applied, and fails again once that fix is taken away. Its failure is caused by the defect the fix repairs.

Control Expected Result
Baseline fails 3/3 ✅
Trigger removed passes 3/3 ✅
Minimal product fix passes 3/3 ✅
Fix reverted fails 3/3 ✅

Reproduced issue

  • Issue: dotnet/maui#36933 — [iOS/MacCatalyst] DatePicker and TimePicker Background is not cleared when set to null at runtime
  • Platform: ios
  • Validated on baseline commit: 604d9de36e05a40c36ab05cdcd68f2c6286fa260 — the trusted device reproduction and the failing-test verification both ran against this commit
  • Base branch: the reproduction commit sits directly on the baseline above, so the first parent of the commit in this pull request is exactly the commit the device reproduction and the failing-test verification ran against, and this diff contains only the added reproduction test.
  • Test type: device
  • Test execution host: the iOS Simulator used for the run above.
  • Exact test: Microsoft.Maui.DeviceTests.Issue36933.NullBackgroundRestoresNativePickerDefaults
  • Targeted filter: Issue36933 — an issue-keyed class token; use the exact test above when a runner needs a precise selector
  • Device runner selector: TestFilter=Category=Issue36933 — the stock device-test runner filters by category only, so use this form on device; the class token above selects nothing there
  • Expected failing assertion: Native picker backgrounds after Background=null:
  • Determinism: the exact test above was executed 3 independent times on this baseline and failed at the same assertion every time
  • Pipeline run: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=15082788

Recorded evidence (iOS Simulator)

Reproduction preview

Open the full MP4 recording · Evidence manifest

The authoritative proof is the trusted targeted test failing with the expected assertion above. The recording corroborates that; for defects with no visible symptom it may show only the app-reported verdict rather than the defect itself.

This recording is of the trusted Sandbox reproduction app that established the behavior on the iOS Simulator, not of the committed test executing. Its on-screen text therefore comes from that Sandbox app and will not match the assertion payload emitted by the committed test. Treat it as corroboration of the symptom, not as exact-head evidence for the commit in this pull request.

Reproduction steps

  1. Attach the Sandbox-equivalent ContentPage, ScrollView, padded VerticalStackLayout, DatePicker, TimePicker, informational labels, and toggle Button to an iOS window with platform-default picker backgrounds.
  2. Activate the button once to assign one SolidColorBrush created from Colors.Orange to both picker Background properties at runtime.
  3. Wait for and verify each attached native picker background changed to the color derived from that arranged brush.
  4. Activate the same button again to set both picker Background properties to null and prove both null property-change callbacks occurred after the trigger.
  5. Wait for native updates, then compare each native background with its separately captured platform-default value.

Safety and validation

  • The pipeline reconstructed the scenario from issue text, inline snippets, and allowed raster screenshots.
  • No linked repository, archive, binary, script, package, or arbitrary external file was downloaded.
  • A trusted runner reproduced the behavior on the iOS Simulator and matched the expected targeted test failure in 3 consecutive executions.
  • The reproduction commit is add-only and restricted to approved MAUI test locations. The fix commit modifies only the product files listed above, and adds, deletes, renames, and mode changes are refused.

Proposed fix

This pull request carries two commits. The first adds the failing reproduction on its own, so its parent can be checked out and the test watched to fail. The second changes product code so the same test passes.

Regression cross-reference. No line this fix deletes was added by a recent bug-fix pull request.

Files changed by the fix commit:

  • src/Core/src/Platform/iOS/ViewExtensions.cs

Copilot AI added 2 commits August 25, 2026 02:52
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 735ac9a2-7bec-4baa-ad19-c298e5bc795a
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 735ac9a2-7bec-4baa-ad19-c298e5bc795a
@MauiBot

MauiBot commented Aug 25, 2026

Copy link
Copy Markdown
Author

Superseded by #451, published by build 15082988-1.

@MauiBot MauiBot closed this Aug 25, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — d20e9095 Deployed Aug 25, 2026 by MauiBot via conclusion #283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants