Documentation
    Preparing search index...

    Function hasNappletReferrerPolicyMeta

    • Whether a host document carries the renderNappletReferrerPolicyMeta element, the only referrer control WebKit honors for srcdoc napplets. A policy sent only as an HTTP header is not visible here.

      Parameters

      • doc: Pick<Document, "querySelectorAll">

        The host page document

      Returns boolean

      True when a <meta name="referrer" content="no-referrer"> is present

      if (!hasNappletReferrerPolicyMeta(document)) console.warn('add renderNappletReferrerPolicyMeta()');