Documentation
    Preparing search index...

    Function admitBrowserDocument

    • Admit a host-verified artifact before its executable bytes enter a frame. The host must supply source-bound identity and assign srcdoc synchronously inside commit; it must call retire on navigation or closure. Neither development targets nor unsigned bytes may inherit signed-app grants.

      Parameters

      Returns Promise<BrowserAdmissionResult>

      A committed source with a retirement handle, or a closed failure.

      const result = await admitBrowserDocument({
      runtime, entry, verifiedHtml, available, required, optional,
      remoteSources: [], isCurrentSource: () => frame.isConnected,
      commit: (srcdoc) => { frame.srcdoc = srcdoc; },
      onRetire: () => { frame.removeAttribute('srcdoc'); },
      });