Skip to content

[Investigation] Document-Isolation-Policy as a primary embedding lane #366

@mho22

Description

@mho22

Today, embedding Kandelo on a third-party page requires the embedder to opt into COOP/COEP, which is a major adoption blocker. The Document-Isolation-Policy (DIP) header lets an iframe declare its own isolation and obtain SharedArrayBuffer without parent COEP cooperation. It shipped stable in Chrome 137 in May 2025, so on Chrome desktop this is a real, working path today, not a future spec.

Why this matters

  • Removes the single biggest reason a host site refuses to embed Kandelo.
  • Aligns Kandelo's embed story with what WordPress Playground would need to adopt it.
  • Falls back cleanly: DIP iframe → COEP-cooperative iframe → popup launcher.

Proposed validation

  1. Serve /embed.html with Document-Isolation-Policy : isolate-and-credentialless, no parent COEP.
  2. Confirm crossOriginIsolated === true inside the iframe.
  3. Boot the kernel worker + a process worker and run hello.wasm.
  4. Verify behavior under Safari and Firefox. Fails.

Browser support reality

Suggested follow-up if validation passes

Design a <kandelo-embed> web component with an auto-degrade ladder [ DIP → COEP cooperative → popup ], so embedders get the best lane their browser supports without per-site config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions