@duckduckgo/content-scope-scripts
    Preparing search index...

    Special Error Page

    Displays SSL certificate errors and malicious site warnings.

    "SpecialError Messages".InitialSetupRequest

    Configure initial special error page settings.

    Types:

    Example for a phishing warning:

    {
    "locale": "en",
    "env": "production",
    "platform": {
    "name": "macos"
    },
    "errorData": {
    "kind": "phishing",
    "url": "https://malicious-example.com"
    },
    "theme": "light",
    "themeVariant": "default"
    }

    Example for a malware warning:

    {
    "locale": "en",
    "env": "production",
    "platform": {
    "name": "windows"
    },
    "errorData": {
    "kind": "malware",
    "url": "https://malware-example.com"
    },
    "theme": "dark",
    "themeVariant": "default"
    }

    Example for an SSL expired certificate error:

    {
    "locale": "en",
    "env": "production",
    "platform": {
    "name": "macos"
    },
    "errorData": {
    "kind": "ssl",
    "errorType": "expired",
    "domain": "expired.badssl.com"
    },
    "theme": "light",
    "themeVariant": "default"
    }

    Example for an SSL wrong host error:

    {
    "locale": "en",
    "env": "production",
    "platform": {
    "name": "macos"
    },
    "errorData": {
    "kind": "ssl",
    "errorType": "wrongHost",
    "domain": "wrong.host.badssl.com",
    "eTldPlus1": "badssl.com"
    },
    "theme": "light",
    "themeVariant": "default"
    }

    Malicious Site (kind: phishing | malware | scam):

    • kind: Type of malicious site
    • url: The URL of the malicious site

    SSL Errors (kind: ssl):

    • errorType: One of expired, invalid, selfSigned, wrongHost
    • domain: The domain with the certificate issue
    • eTldPlus1: (Only for wrongHost) The eTLD+1 of the expected domain

    Available theme variants: default, coolGray, slateBlue, green, violet, rose, orange, desert

    {
    "theme": "dark",
    "themeVariant": "default"
    }
    • Or, with a different theme variant:
    {
    "theme": "light",
    "themeVariant": "violet"
    }
    • Available theme variants: default, coolGray, slateBlue, green, violet, rose, orange, desert
    {
    "message": "Failed to initialize special error page"
    }
    {
    "message": "Failed to render error details"
    }