2418d6af2f
SandboxFrame now detects Capacitor.isNativePlatform() and branches: - Web: unchanged iframe.diy postMessage protocol - Native: creates a WKWebView (iOS) or WebView (Android) overlay with a custom URL scheme handler that intercepts all requests and routes them through the same resolveFile/onRpc/injectedScripts/csp props The consumers (Webxdc, NsitePreviewDialog) require no changes. iOS plugin uses WKURLSchemeHandler (sbx-<id>://) for origin isolation and WKScriptMessageHandler for bidirectional message passing. Android plugin uses shouldInterceptRequest with a blocking CountDownLatch pattern and addJavascriptInterface for the bridge. Both plugins overlay the native WebView on top of Capacitor's WebView, positioned via a placeholder div with ResizeObserver tracking.