Repository navigation
refactor(wasm)!: Remove interop whose JavaScript is no longer shipped - #25944
ramezgerges merged 1 commit into
Conversation
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 242963 found UI Test snapshots differences: Details
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 243332 found UI Test snapshots differences: Details
|
|
@Mergifyio backport release/stable/7.0 |
✅ Backports have been createdDetails
|
328d759 to
ba68bdb
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25944/docs/index.html |
|
The build 243691 found UI Test snapshots differences: Details
|
ba68bdb to
de5e48a
Compare
|
The build 244081 found UI Test snapshots differences: Details
|
de5e48a to
838d9b1
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 244381 found UI Test snapshots differences: Details
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25944/docs/index.html |
838d9b1 to
13eb00b
Compare
WebAssemblyRuntime.InvokeAsync and InvokeJSUnmarshalled called JavaScript that only the WebAssembly DOM heads loaded, so they failed in every Skia app (fixes unoplatform#24515). TSInteropMarshaller, a CoreWindow SetCursor import and an uncompiled BrowserPointerInputSource copy go with them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25944/docs/index.html |
|
The build 244909 found UI Test snapshots differences: Details
|
|
This pull request is merged. |
Uno 7.0.32 was listed on nuget.org on 2026-11-10 (17:07 UTC), so generatepkgdiff now resolves 7.0.32 as the published stable baseline for every package that has a 7.0 stable. CompareVersion matches an IgnoreSet only on an exact Major.Minor, and the file had no 7.0 set, so the WASM interop removals from unoplatform#25944 (listed in the 6.6 and 6.7 sets) stopped applying and Generate NuGet Packages failed on master and on every PR. Adds a 7.0 set with only the breaking changes merged after the 7.0 release: the 6 Uno.Foundation.WebAssemblyRuntime removals of unoplatform#25944. Same fix as 435ca86 for 6.7. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GitHub Issue: closes #24515
PR Type:
🔄 Refactoring (breaking: public API removed)
What changed? 🚀
WebAssemblyRuntime.InvokeAsyncandWebAssemblyRuntime.InvokeJSUnmarshalledcalled JavaScript (Uno.UI.Interop.AsyncInteropHelper,MonoSupport.jsCallDispatcher) that only the WebAssembly DOM heads loaded. Those heads were removed in 7.0 and the sources deleted in #24351, so both APIs failed at runtime in every app. By the issue's inspection of 6.7, they never worked on the Skia renderer either.Restoring them would mean shipping eval-based interop again:
InvokeAsynctakes JavaScript as a string, which is what #24429 is trying to remove. So they are removed as a documented 7.0 break, next to the rest of the legacy interop the migration guide already lists.Removed
WebAssemblyRuntime.InvokeAsync(string)andInvokeAsync(string, CancellationToken), with theirDispatchAsyncResult/DispatchAsyncError[JSExport]callbacks and the pending-task bookkeeping.WebAssemblyRuntime.InvokeJSUnmarshalled(string, IntPtr)and(string, IntPtr, IntPtr), plus the internal overloads,GetMethodId,MethodMapand the[JSImport]targetingMonoSupport.jsCallDispatcher.TSInteropMarshaller: internal, and the only caller ofInvokeJSUnmarshalled. The bindings generator that produced its users is gone. This emptiesUno.Foundation.Interop, so the three storage files that still imported it lose the unusedusing.CoreWindow.NativeMethods.SetCursor: an import targetingUno.UI.WindowManager. Its only caller wassrc/Uno.UI/Runtime/BrowserPointerInputSource.wasm.cs, a DOM-head leftover that no project compiles. That file is removed too. The Skia browser host's ownBrowserPointerInputSourcesets the cursor throughWebAssemblyWindowWrapper.setCursor.Docs:
[JSImport]Task<string>example replacingInvokeAsync.PackageDiffIgnore.xmlgets entries for the six removed public members, in both the 6.6 and 6.7 baseline sets, like the existingInvokeJSWithInteropentry.Downstream: an org-wide code search finds
InvokeAsyncin Uno.Microsoft.Identity.Client (last pushed in 2020, built against Uno 3) and the Uno.Figma plugin. Nothing outside this repo callsInvokeJSUnmarshalledorTSInteropMarshaller.Validation
Uno.Foundation.Runtime.WebAssembly,Uno.WinRT.WasmandUno.UI.Runtime.WebAssembly.Browserbuild with analyzers on.Given_ApplicationDataContainer,Given_StorageFolderandGiven_BrowserPointerInputSourcepass 89/89, with noMonoSupportorAsyncInteropHelpererrors in the console.markdownlintwithbuild/.markdownlint.jsonandcspellare clean on the migration guide.PR Checklist ✅
Screenshots Compare Test Runresults.Removes
WebAssemblyRuntime.InvokeAsyncandInvokeJSUnmarshalled, which no longer worked at runtime. Migrate to[JSImport]/[JSExport]; the 7.0 migration guide shows the replacement.🤖 Generated with Claude Code