| Index: third_party/WebKit/Source/core/inspector/protocol/Security.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol/Security.json b/third_party/WebKit/Source/core/inspector/protocol/Security.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4c202cde5446946e0ded890402f18b729d5d5391
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol/Security.json
|
| @@ -0,0 +1,137 @@
|
| +{
|
| + "domain": "Security",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "description": "Security",
|
| + "hidden": true,
|
| + "types": [
|
| + {
|
| + "id": "CertificateId",
|
| + "type": "integer",
|
| + "description": "An internal certificate ID value."
|
| + },
|
| + {
|
| + "id": "SecurityState",
|
| + "type": "string",
|
| + "enum": [
|
| + "unknown",
|
| + "neutral",
|
| + "insecure",
|
| + "warning",
|
| + "secure",
|
| + "info"
|
| + ],
|
| + "description": "The security level of a page or resource."
|
| + },
|
| + {
|
| + "id": "SecurityStateExplanation",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "securityState",
|
| + "$ref": "SecurityState",
|
| + "description": "Security state representing the severity of the factor being explained."
|
| + },
|
| + {
|
| + "name": "summary",
|
| + "type": "string",
|
| + "description": "Short phrase describing the type of factor."
|
| + },
|
| + {
|
| + "name": "description",
|
| + "type": "string",
|
| + "description": "Full text explanation of the factor."
|
| + },
|
| + {
|
| + "name": "certificateId",
|
| + "$ref": "CertificateId",
|
| + "optional": true,
|
| + "description": "Associated certificate id."
|
| + }
|
| + ],
|
| + "description": "An explanation of an factor contributing to the security state."
|
| + },
|
| + {
|
| + "id": "MixedContentStatus",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "ranInsecureContent",
|
| + "type": "boolean",
|
| + "description": "True if the page ran insecure content such as scripts."
|
| + },
|
| + {
|
| + "name": "displayedInsecureContent",
|
| + "type": "boolean",
|
| + "description": "True if the page displayed insecure content such as images."
|
| + },
|
| + {
|
| + "name": "ranInsecureContentStyle",
|
| + "$ref": "SecurityState",
|
| + "description": "Security state representing a page that ran insecure content."
|
| + },
|
| + {
|
| + "name": "displayedInsecureContentStyle",
|
| + "$ref": "SecurityState",
|
| + "description": "Security state representing a page that displayed insecure content."
|
| + }
|
| + ],
|
| + "description": "Information about mixed content on the page."
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "enable",
|
| + "description": "Enables tracking security state changes.",
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + },
|
| + {
|
| + "name": "disable",
|
| + "description": "Disables tracking security state changes.",
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + }
|
| + ],
|
| + "events": [
|
| + {
|
| + "name": "securityStateChanged",
|
| + "description": "The security state of the page changed.",
|
| + "parameters": [
|
| + {
|
| + "name": "securityState",
|
| + "$ref": "SecurityState",
|
| + "description": "Security state."
|
| + },
|
| + {
|
| + "name": "explanations",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "SecurityStateExplanation"
|
| + },
|
| + "description": "List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "mixedContentStatus",
|
| + "$ref": "MixedContentStatus",
|
| + "description": "Information about mixed content on the page.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "schemeIsCryptographic",
|
| + "type": "boolean",
|
| + "description": "True if the page was loaded over cryptographic transport such as HTTPS.",
|
| + "optional": true
|
| + }
|
| + ],
|
| + "handlers": [
|
| + "browser"
|
| + ]
|
| + }
|
| + ]
|
| +}
|
|
|