Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2639203003: Add certificate error handling to devtools. (Closed)
Patch Set: Fix nits Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6527abc46147dfce17a799ed161709ebaff09425..35cb29e22ffeb7b92a665ef0e11d022d1ffc91da 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -907,6 +907,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": [
@@ -921,6 +927,21 @@
{
"name": "showCertificateViewer",
"description": "Displays native dialog with the certificate details."
+ },
+ {
+ "name": "handleCertificateError",
+ "description": "Handles a certificate error that fired a certificateError event.",
+ "parameters": [
+ { "name": "eventId", "type": "integer", "description": "The ID of the event."},
+ { "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": [
@@ -934,6 +955,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 overriding certificate errors is enabled, 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."}
+ ]
}
]
},
« no previous file with comments | « content/test/data/devtools/test.jpg ('k') | third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698