kernl API
    Preparing search index...

    Function planMount

    • Build everything mountApplet needs, without touching the DOM.

      The environment is kehto's resolveShellEnvironment, so it is the live domains narrowed by the host's capabilities.resolveEnvironment (kernl's grants), and then by domains when the firewall admitted fewer. The CSP is the guard's zero-network profile, inserted first in <head> by prepareNappletSrcdoc with kehto's nested-context lock enabled (experimental.nestedContextLock): the policy gains kehto's Trusted Types directives and the mandatory namespace prelude installs kehto's creation lock. kernl's insertion lock follows the prelude. Markup that declares a nested frame is refused by kehto's scan before any of that (D-014). extensions adds the domains kernl serves beyond kehto's list, with the bindings kehto's prelude turns into window.napplet.<domain> (D-050). missingRequired lists what the applet asked for and will not get, so the host can warn before mounting.

      Parameters

      • options: PlanMountOptions

        Summary, verified HTML, adapter, guard profile and window id.

      Returns MountPlan

      A plan whose srcdoc is ready to assign.

      Error('denied:nested-frame') when the verified markup declares a frame element.

      Error('unavailable:frame-lock') when kehto's head cannot be found to place the insertion lock.

      const plan = planMount({ summary, indexHtml, adapter, guardProfile: 'strict', windowId: 'w1' });
      plan.sandbox; // 'allow-scripts'