Skip to content

fix(web,ios): opaque-origin static HTML hosting, XCFramework symbol visibility, and PatternInstancer - #101

Merged
jbingham merged 3 commits into
mainfrom
fix/opaque-origin-and-xcframework-abi
Nov 15, 2026
Merged

jbingham merged 3 commits into
mainfrom
fix/opaque-origin-and-xcframework-abi

Conversation

@jbingham

Copy link
Copy Markdown
Collaborator

Summary

Syncs the latest Web, iOS XCFramework, and CAD authoring changes to main:

  1. Opaque-origin static HTML hosting (<three-live> / <xr-live>):
    • Adds setSandboxEngineSource / getSandboxEngineSource (and ThreeLiveElement.sandboxEngineSource) so self-contained single-file bundles (three-live-full.min.js, xr-live-full.min.js) inline their own engine source into the blob: sandbox Web Worker instead of calling importScripts() across a null / file:// / sandboxed-iframe origin.
    • Wraps indexedDB access in indexedDbTextureCache() with try/catch so SecurityError on opaque origins degrades cleanly to null.
    • Builds the voice button microphone SVG via document.createElementNS instead of innerHTML so pages with require-trusted-types-for 'script' CSP policies work without a TrustedHTML policy.
  2. Apple ThreeLive.xcframework C ABI symbol visibility:
    • Pre-links each slice of libthree_live_compiler.a with ld -r -exported_symbols_list mobile/ios/exported_symbols.txt so only the public _three_live_* C ABI symbols remain global, preventing duplicate Rust standard-library / QuickJS symbols when linked into a host app with its own Rust static library.
    • Adds scripts/verify_xcframework.sh to verify both device and simulator static archives export only _three_live_*.
  3. CAD THREE.PatternInstancer & InstancedMesh CSG operands (feat(cad): add PatternInstancer linear/grid/circular/alongCurve arrays #99):

Test Plan

  • node scripts/build.js (all 23 Web bundles build within gzip size budgets)
  • node scripts/build.js --test (all Web & XR unit tests pass, including setSandboxEngineSource / inlineEngineSource and PatternInstancer)
  • cargo test --lib ai_edit

jbingham and others added 3 commits November 15, 2026 00:20
@jbingham
jbingham merged commit 9ea5712 into main Nov 15, 2026
12 checks passed
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