Skip to content

chore(automation): Sync master → release/stable/7.0 - #26251

Merged
agneszitte merged 120 commits into
release/stable/7.0from
automation/master-sync/release/stable/7.0
Nov 11, 2026
Merged

agneszitte merged 120 commits into
release/stable/7.0from
automation/master-sync/release/stable/7.0

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Automated sync — merges the latest master into release/stable/7.0.

  • Incoming commits from master: 117

  • Range: b2e84eebb7..2b21ad5a46

  • Merge method: merge commit (preserves ancestry so future syncs stay minimal)

  • Release stabilization: master PRs excluded from this branch (recorded as merged, changes dropped): Version bump after 7.0 release branch #25994

  • Auto-merge: enabled — lands once required CI is green and a reviewer approves.

Included PRs (31)

Maintained automatically; updates in place. Generated by this run.

SergioAlmeida29 and others added 30 commits August 27, 2026 14:51
_lastNativeClipPath and _lastScaledNativeClipPath are static, but everything
about them is per-composition-target — i.e. per window:

  - they are invalidated by a per-target event (a canvas recreation at
    CompositionTarget.Rendering.skia.cs:304 nulls the scaled path),
  - they are keyed on this target's own frame
    (_lastNativeClipPath != lastRenderedFrame.nativeElementClipPath at :348),
  - and their immediate neighbours, _lastCanvasSize and _lastRasterizationScale,
    are already instance fields under the same comment.

So with more than one window open the two targets discard and overwrite each
other's cache every frame, and the scaled path handed to the native layer can
belong to the wrong window. On the hosts that render each window on its own
thread it is also a plain data race on the SKPath: one thread can be at
`_lastScaledNativeClipPath = new()` (:350) while another transforms into it
(:354) or returns it (:359).

Making them instance fields is a no-op for a single window — one target means one
cache either way — which is why this has gone unnoticed.
Build 228903 was green on 17 of 18 runtime-test jobs, including macOS and
Linux framebuffer. The single failure was
Given_InputInjector.When_MouseMove_PointerEventsAreRaised on WinAppSDK
("PointerMoved should have been raised", 3ms) — a mouse-injection test running
against native WinUI, which cannot be reached by a change to a *.skia.cs file.
Re-running to clear it.
 - Remove the (float) casts in FromPixels and FromValueAndType
 - Add unit tests covering Pixel and Star values

Addresses #25242

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The table mixed renderers and was out of date: it had rows for the
removed native macOS renderer, presented the native Android and iOS
rows as current, claimed GIF animation only on WebAssembly, and said
Android loads BMP, HEIC, WebP and PDF assets, which the native
renderer can't load from ms-appx.

Use one row for the Skia renderer and label the native-renderer rows
as 6.x only, so the same table holds for 6.x and 7.0. The cells were
checked against the code on 6.7, 6.8 and master, at runtime on 6.7.30
(desktop, WebAssembly in Chrome, Android emulator), and with decoder
probes in Safari and the iOS simulator.
The footnote said every target uses the Skia renderer from 7.0. The
Windows App SDK head renders with WinUI, and an app that lists only
the WebGPU renderer has no SkiaSharp, so its images go through the
managed decoder, which loads fewer WebP and BMP variants.
The runtime and unit test rules said the attribute could go on a
method or a class. MSTest declares GitHubWorkItemAttribute with
AttributeTargets.Method, so a class-level one fails to compile with
CS0592.
A property-changed callback registered on a DependencyObject by another
object, like a {Binding} whose source is a DependencyObject, is held
weakly and removed once that object is collected: a ConditionalDisposable
tied to the subscriber removes it from its finalizer, if the source is
still alive.

The source's liveness was read from a WeakReference that only the
ConditionalDisposable references. Both become unreachable in the same
collection and their finalizers run in any order; a WeakReference
finalized first reports its target as collected, so the callback was
never removed. A long-lived source accumulated one dead callback per
subscriber ever registered, for good.

ConditionalDisposable now takes the condition source itself and holds it
through a weak GCHandle, which has no finalizer and is freed by the
ConditionalDisposable. Callers no longer allocate a WeakReference to
pass it in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A {Binding} or x:Bind whose path indexes into an INotifyCollectionChanged
value (Items[0]) subscribes to the collection's CollectionChanged. The
subscription was made by the item before the indexer, on the value it
held when it subscribed, and nothing moved it: after Items = new ...,
the binding kept listening to the old collection, and never to the new
one.

The subscription is now made by the indexer item, on the collection it
indexes into (its DataContext). The indexer resubscribes whenever its
DataContext changes, so a replaced collection is followed.

The tests also cover the CollectionChanged handlers of collected
bindings: they are removed, and a raise after the bindings are collected
is safe.

Ported from the servicing/6.8 patch "fix(binding): Don't let collections
pin bindings". Its weakly held handler and finalizer cleanup are already
on master (WeakSourceSubscription), so only the move to the indexer and
the tests are ported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When the collection a {Binding} path indexes into (Items[0]) raised
CollectionChanged, the binding pushed the collection itself to its
target instead of the indexed value: a TextBlock bound to Items[0]
showed the collection's type name after Items[0] = "x" or an insert.
The collection's PropertyChanged doesn't help, since it raises "Item[]"
and the indexer listens to "Item[0]".

The indexer now re-reads its value on CollectionChanged and propagates
it, as it does on PropertyChanged, which also updates a longer path such
as Items[0].Length. x:Bind, which re-evaluates its whole path, still
follows the collection, through the same propagation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
{x:Bind Mode=OneWay} goes through the same BindingPath as {Binding}, so
it leaves the same PropertyChanged handlers on a long-lived source when
its element is collected. An indexer path (Items[0]) leaves them both on
the view model and on the collection.

These tests pass only once PropertyChanged handlers of collected
bindings are removed from their source (BindingPath.
SubscribeToNotifyPropertyChanged), which is a separate fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The ported test read a source's property-changed callbacks through
IDependencyObjectStoreProvider, which master no longer has: the store is
merged into DependencyObject. Also keep the Uno-internal read out of the
WinAppSDK build, where the test is excluded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Also skip the CollectionChanged raise test on WASM, like the
PropertyChanged one: the interpreter's conservative stack scan can keep
the elements alive from stale slots, depending on frame layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Given_BindingSourceStaleHandlers checks the CollectionChanged handlers of
collected indexer bindings, loaded and not, and their PropertyChanged
handlers on the view model.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Now that a ConditionalDisposable reliably removes the callback of a
collected subscriber from a live source, each removal queued its own
Idle dispatcher item from the finalizer. Queue them with the other
removals of collected subscribers instead (SubscriptionCleanup), drained
at Low priority in bounded batches by a single dispatcher item.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Measured on native WinUI with 10 iterations, one attempt each: the six
tests that only follow or count the subscriptions of live bindings (the
indexer refresh, the replaced collection, the cleared binding) pass every
time, so they now run there too, which also confirms the fixed behavior
matches WinUI's.

The tests that wait for collected bindings to be cleaned up stay
excluded, as in Given_BindingStaleHandlers, and so does the one that
reads Uno's property-changed callbacks. Each exclusion now says why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MSTest.Sdk and xUnit v3 test projects run on Microsoft.Testing.Platform and
are Exe, but only set IsTestingPlatformApplication, not IsTestProject. A test
project referencing an Uno project failed with UNOB0029. Skip the check when
IsTestingPlatformApplication is true, and correct the comment on which
runner sets which property.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu1grTmfuTQEg1iNSrT
…default-25351

fix(composition): Default stroke miter limit to 1
fix(automation): Pass owner to LoopingSelectorItem peer
Turn the single long page into upgrade steps for the common case, plus
sub-pages for everything most apps can skip. Each sub-page says who
should read it, and a lookup page maps errors, symptoms and code search
strings to the section that explains them.

The original text is moved rather than rewritten. Spell check skipped the
old page, so the split exposes words that now need fixing or allowing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtxrtrvcmLANfMbXPjZ
Pages that refer to one specific migration topic now link to its section
instead of the top of the guide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtxrtrvcmLANfMbXPjZ
The topic pages mostly only linked back to the landing page, so a reader
had no path to a related entry elsewhere in the guide. Add "See also"
lines where topics connect, and a related-pages footer on every page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtxrtrvcmLANfMbXPjZ
Show the Android head edit in the TL;DR, since every Android app needs
it. Default minimum OS versions and the Windows App Runtime requirement
apply without a pinned version or a build error, so stop presenting them
as relevant only to projects that pin versions.

Also cover ConfigureUniversalImageLoader, which older generated Android
heads call and which no longer compiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtxrtrvcmLANfMbXPjZ
@github-actions github-actions Bot added area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure area/automation Categorizes an issue or PR as relevant to project automation kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk platform/x11 🐧 Categorizes an issue or PR as relevant to X11 labels Nov 11, 2026
@MartinZikmund
MartinZikmund marked this pull request as ready for review November 11, 2026 14:21
Copilot AI balanced review requested due to automatic review settings November 11, 2026 14:21

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

fix(skia-x11): Fix X11 clipboard segfault on TIMESTAMP selection requests
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 245418 did not find any UI Test snapshots differences.

MartinZikmund and others added 4 commits November 11, 2026 16:33
…it-keyboard-hide

test(android): Let the keyboard settle between runtime tests
…r-bindings

fix: Give late VisualState setters the DataContext
docs: Document WASM subdirectory hosting
@github-actions github-actions Bot removed the conflicts Automated merge hit conflicts label Nov 11, 2026
@github-actions
github-actions Bot enabled auto-merge November 11, 2026 17:02
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 245472 did not find any UI Test snapshots differences.

@agneszitte
agneszitte disabled auto-merge November 11, 2026 18:53
@agneszitte
agneszitte merged commit 195af62 into release/stable/7.0 Nov 11, 2026
79 checks passed
@agneszitte
agneszitte deleted the automation/master-sync/release/stable/7.0 branch November 11, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation master-sync Automated master→feature sync PR platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform platform/x11 🐧 Categorizes an issue or PR as relevant to X11 🤖 Project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.