protocolHandlers API

Manifest file properties

protocol_handlers

[protocol_handlers]

(array of ProtocolHandler, optional)

A list of protocol handler definitions.

Types

ExtensionURL

A path relative to the root of the extension.

string

HttpURL

string

ProtocolHandler

Represents a protocol handler definition.

object

name

name

(string)

A user-readable title string for the protocol handler. This will be displayed to the user in interface objects as needed.

protocol

protocol

(string or string)

The protocol the site wishes to handle, specified as a string. For example, you can register to handle SMS text message links by registering to handle the “sms” scheme.

uriTemplate

uriTemplate

The URL of the handler, as a string. This string should include “%s” as a placeholder which will be replaced with the escaped URL of the document to be handled. This URL might be a true URL, or it could be a phone number, email address, or so forth.