Documentation
    Preparing search index...

    Interface MockNappletClassPosture

    One posture from the NAP-CLASS-$N sub-track, as the documents define it.

    const strict: MockNappletClassPosture = MOCK_NAPPLET_CLASSES[1];
    strict.connectSrc === "'none'";
    interface MockNappletClassPosture {
        class: number;
        connectSrc: string;
        consentPrompt: boolean;
        deniedFallbackClass?: number;
        document: string;
        grantKey: readonly string[] | null;
        refuseOnMetaCsp: boolean;
        title: string;
    }
    Index

    Properties

    class: number

    Integer carried by class.assigned.

    connectSrc: string

    Exact connect-src directive shape the shell must emit.

    consentPrompt: boolean

    Whether the shell prompts the user before serving.

    deniedFallbackClass?: number

    Class served when the user denies the prompt, when a prompt exists.

    document: string

    Track document file name.

    grantKey: readonly string[] | null

    Grant persistence key components, or null when the posture keeps no grant state.

    refuseOnMetaCsp: boolean

    Whether residual <meta http-equiv="Content-Security-Policy"> makes the shell refuse to serve.

    title: string

    Posture title from the document subtitle.