JSON Schema Property 'background'

Description

The background page is an HTML page that runs in the extension process. It exists for the lifetime of your extension, and only one instance of it at a time is active.

Diagram

Drilldown into /properties/background/dependencies/scripts Drilldown into /properties/background/dependencies/page Drilldown into /definitions/scripts Drilldown into /definitions/page Drilldown into /properties/background/properties/persistent Drilldown into /properties/background/properties/persistent Drilldown into /properties/background/properties/persistentJSON Schema Diagram of /properties/background

Value

Object

Properties

Property Name Type Description
persistent boolean persistent
page string page
scripts array scripts
Additional Properties Type Description
Any Property Any All values are valid, no restrictions.

Property Dependencies

When a given property is present in the instance object, then the corresponding rule is applied to the object.
Property Name Additional Rules
page When the property 'page' is present, the following schema rules will also apply.
scripts When the property 'scripts' is present, the following schema rules will also apply.

Source

"background": {
    "type": "object",
    "description": "The background page is an HTML page that runs in the extension process. It exists for the lifetime of your extension, and only one instance of it at a time is active.",
    "properties": {
        "persistent": {
            "type": "boolean",
            "description": "When false, makes the background page an event page (loaded only when needed).",
            "default": true
        },
        "page": {
            "$ref": "#/definitions/page",
            "description": "Specify the HTML of the background page.",
            "default": "background.html"
        },
        "scripts": {
            "$ref": "#/definitions/scripts",
            "description": "A background page will be generated by the extension system that includes each of the files listed in the scripts property.",
            "default": [
                "background.js"
            ]
        }
    },
    "dependencies": {
        "page": {
            "not": {
                "required": [
                    "scripts"
                ]
            }
        },
        "scripts": {
            "not": {
                "required": [
                    "page"
                ]
            }
        }
    }
}
http://json.schemastore.org/chrome-manifest (66:6)

References

Documentation for Chrome Manifest
Generated using Liquid Studio 2018 - JSON Studio Edition 16.0.0.7949