Skip to content

[Bug]: Web client white-screens over HTTP when crypto.randomUUID is unavailable #16232

Closed

Description

@luw2007

Summary

The web client in v1.4.188 crashes during startup when opened over an HTTP private-IP pairing link in a browser context where globalThis.crypto.randomUUID is unavailable. The page remains blank.

Reproduction

  1. Start a Linux remote server with:

    orca-ide --serve --serve-port 6768 --serve-pairing-address <private-ip> --serve-json
  2. Open the generated http://<private-ip>:6768/web-index.html#pairing=... link in a browser where the HTTP origin is not a secure context.

  3. Observe a blank page.

Actual result

Console error from the v1.4.188 asset:

store-Bjd1W1Fv.js:19 Uncaught TypeError: globalThis.crypto.randomUUID is not a function
    at N8 (store-Bjd1W1Fv.js:19:96047)

The WebSocket server is healthy and responds with 101 Switching Protocols; the crash is strictly in the browser client bootstrap.

Expected result

The browser client should load and pair over an HTTP private-IP link, or show an actionable HTTPS requirement. It should not white-screen.

Suggested fix

Feature-detect globalThis.crypto.randomUUID and use a UUID fallback when it is unavailable, rather than assuming the API exists.

Environment

  • Server: Linux x86_64, Orca v1.4.188, extracted AppImage deployment
  • Access path: HTTP private-IP pairing URL
  • Regression: previous v1.4.180 web client did not exhibit the startup white screen in this environment

Workaround

Rollback the server to v1.4.180, or expose the web client through HTTPS.

Activity

  1. psh4607 commented on Aug 24, 2026

    @psh4607
    Contributor

    I’m working on a regression-test-first minimal fix by extending the existing src/renderer/src/lib/non-secure-context-crypto.repro.test.ts coverage for the import-time authority singleton crash.

  2. mzdluo123 commented on Sep 9, 2026

    @mzdluo123

    Confirmed still reproduces on current Remote Web pairing, and the HTTP origin is produced by Orca itself.

    The desktop Remote Orca server UI (Share this host → Publish this app as a server → Other devices / Tailscale) generates the browser URL as:

    http://<tailscale-ip>:6768/web-index.html#pairing=...
    

    Example from the official generator (pairing token omitted): http://100.81.158.106:6768/web-index.html#pairing=... with connection address Tailscale (100.81.158.106).

    That CGNAT/LAN http:// origin is not a secure context, so Chromium leaves globalThis.crypto.randomUUID undefined. The web client then white-screens during store bootstrap:

    store-E2SyM1oF.js:21 Uncaught TypeError: globalThis.crypto.randomUUID is not a function
        at oQ (store-E2SyM1oF.js:21:37448)
        at store-E2SyM1oF.js:21:37479
    

    Minified site (module-eval, so the page never paints):

    function oQ(e){return`${e}:${globalThis.crypto.randomUUID()}`}
    const Hc=new iQ(oQ("renderer"));

    This is the product’s intended Tailscale/LAN pairing path, not a user forcing HTTP. localhost/https work because those are secure contexts.

    Same-bundle already has createBrowserUuid (src/renderer/src/lib/browser-uuid.ts) with a getRandomValues fallback; the import-time agent-status authority ID does not use it.

    #16235 would cover this crash and is still unmerged. #18096/#18102 are a later Agents-sidebar crypto.randomUUID() call and would not prevent this white screen.

  3. mzdluo123 commented on Sep 9, 2026

    @mzdluo123

    Reproduced on latest GitHub release v1.4.198 (2026-09-08), not just v1.4.188.

    The desktop pairing UI still emits http://<tailscale-ip>:6768/web-index.html#pairing=.... Opening that in a browser on another device white-screens with:

    store-E2SyM1oF.js:21 Uncaught TypeError: globalThis.crypto.randomUUID is not a function
    

    https://<same-ip>:6768/... is not a workaround: port 6768 speaks plain HTTP (ERR_SSL_PROTOCOL_ERROR). #16235 is still unmerged, so the Other devices → Open in browser Tailscale/LAN path is broken on current release.

    Worked: native orca:// client pairing, and http://127.0.0.1:6768 on the host itself.

  4. mzdluo123 commented on Sep 9, 2026

    @mzdluo123

    Follow-up for the incomplete-fix scope (remaining store crypto.randomUUID() call sites + official Tailscale HTTP browser URL): #19667

  5. added
    bug
    os:linux
    on Sep 19, 2026
  6. added theissue type on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browserbugos:linux

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions