Chromium Code Reviews| Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
| diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| index 580d81bb7c0737f4acb90c779cf0b24b7fcae6d5..e1337cb714252597e5dd4a633c64a2bb96861cdc 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -906,6 +906,12 @@ |
| { "name": "displayedInsecureContentStyle", "$ref": "SecurityState", "description": "Security state representing a page that displayed insecure content." } |
| ], |
| "description": "Information about insecure content on the page." |
| + }, |
| + { |
| + "id": "CertificateErrorAction", |
| + "type": "string", |
| + "enum": ["continue", "cancel"], |
| + "description": "The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request." |
| } |
| ], |
| "commands": [ |
| @@ -920,6 +926,21 @@ |
| { |
| "name": "showCertificateViewer", |
| "description": "Displays native dialog with the certificate details." |
| + }, |
| + { |
| + "name": "handleCertificateError", |
| + "description": "Handles a certificate error that fired a certificateError event with eventID > 0.", |
| + "parameters": [ |
| + { "name": "eventID", "type": "integer", "description": "The ID of the event."}, |
|
pfeldman
2017/03/22 00:47:32
nit: eventId, we don't capitalize abbreviations.
irisu
2017/03/22 02:48:58
Done.
|
| + { "name": "action", "$ref": "CertificateErrorAction", "description": "The action to take on the certificate error." } |
| + ] |
| + }, |
| + { |
| + "name": "setOverrideCertificateErrors", |
| + "description": "Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with handleCertificateError commands.", |
| + "parameters": [ |
| + { "name": "override", "type": "boolean", "description": "If true, certificate errors will be overridden."} |
| + ] |
| } |
| ], |
| "events": [ |
| @@ -933,6 +954,15 @@ |
| { "name": "insecureContentStatus", "$ref": "InsecureContentStatus", "description": "Information about insecure content on the page." }, |
| { "name": "summary", "type": "string", "description": "Overrides user-visible description of the state.", "optional": true } |
| ] |
| + }, |
| + { |
| + "name": "certificateError", |
| + "description": "There is a certificate error. If eventID > 0, then it should be handled with the handleCertificateError command. Note: this event does not fire if the certificate error has been allowed internally.", |
| + "parameters": [ |
| + { "name": "eventID", "type": "integer", "description": "The ID of the event."}, |
| + { "name": "errorType", "type": "string", "description": "The type of the error."}, |
| + { "name": "requestURL", "type": "string", "description": "The url that was requested."} |
| + ] |
| } |
| ] |
| }, |