Repository navigation
wasm pages: the browser gate (JX4): a browser without JSPI is told what it needs - #1513
Merged
Merged
Conversation
…at it needs The browser builds use wasm exceptions and JSPI with no Asyncify fallback, so a browser without JSPI failed part way through the load. Every host page now checks for WebAssembly.Suspending and WebAssembly.promising before it fetches anything of the module, and without them shows a page naming what it needs: Chrome 137, Firefox 153 or Safari 27, or later; on an iPhone or iPad (every browser there is WebKit), iOS 27. Then the browser's user agent. - arigl-web.js (arigl-web and ariglx-web) and ari-web.js (ari.html, ari_tvision.html): ariadneWeb.state is "unsupported", the text in ariadneWeb.needs. - The inline pages: the gallery's demo.html.in (its ?gldiag report gets a jspi line), arigl_term.html and cyprty.html. - Each page carries the check itself: the arigl-web recipe and cyprty's stage.sh ship a fixed list of files, so cyprty gets the gate with the arigl-web release and needs no change. - arigl_web_smoke.mjs: four cases with WebAssembly.Suspending deleted before the page's script runs (arigl-web as Chrome and on an iPhone, ari.html as Chrome and on an iPad); none may fetch the module. - Docs: WASM_JSPI_EXCEPTIONS.md (JX4), ARIADNE.md section 9.4 (and the terminal page's loop, which is JSPI now, not Asyncify), CVCGL_WASM.md.
transfix
enabled auto-merge (squash)
November 24, 2026 00:51
transfix
added a commit
that referenced
this pull request
Nov 24, 2026
This was referenced Nov 24, 2026
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.
Since #1409 (JX2), the browser hosts are built with
-fwasm-exceptionsand-sJSPI, and there is no Asyncify fallback. A browser without JSPI (Safari or iOS before 27, Chrome before 137, Firefox before 153) failed part way through the load. This is JX4's browser gate (docs/roadmap/WASM_JSPI_EXCEPTIONS.md).What changes
WebAssembly.SuspendingandWebAssembly.promisingare functions before it fetches anything of the module. Without them it shows what the browser needs in place of the load:arigl-web.js, which covers arigl-web, ariglx-web and the deployed cyprty page;ari-web.js, forari.htmlandari_tvision.html;demo.html.in(its?gldiagreport also gets ajspiline);arigl_term.htmlandcyprty.html.ari.htmlsetariadneWeb.state = 'unsupported', with the text inariadneWeb.needs.stage.shship a fixed list of files, so cyprty gets the gate with the arigl-web release that has it and needs no change.Test
arigl_web_smoke.mjsgets four cases that deleteWebAssembly.Suspendingbefore the page's script runs:ari.htmlas Chrome, and as Safari on an iPad;.js, its.wasmorpython312.zip.Checked locally (phm, 2026-11-23)
demo.html.in,arigl_term.htmlandcyprty.html, from source, in Chrome 152. With JSPI each starts fetching its module. Without it each shows the gate and fetches nothing.ari.htmldrew it, and the gate showed withSuspendingdeleted.main(b4ec9fd), staged by its ownstage.shonto this loader, ran in two WebKit pages against a local arisrv 4.0.6. Both joined the room (the relay counted 2 present), saw each other in Users, in a camera window and as an avatar, and one got the other's voice stream through its AudioWorklet.Docs: WASM_JSPI_EXCEPTIONS.md (JX4), ARIADNE.md §9.4 (and its terminal-page bullet, which still said
-sASYNCIFY), and CVCGL_WASM.md.No C++ changes. A trial merge with #1505 (which also edits
arigl-web.jsand the smoke) is clean.