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

Side by Side Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2639203003: Add certificate error handling to devtools. (Closed)
Patch Set: Fix tests 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 unified diff | Download patch
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "2" }, 2 "version": { "major": "1", "minor": "2" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "experimental": true, 5 "experimental": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications." 10 "description": "Enables inspector domain notifications."
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 "type": "object", 899 "type": "object",
900 "properties": [ 900 "properties": [
901 { "name": "ranMixedContent", "type": "boolean", "description ": "True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts." }, 901 { "name": "ranMixedContent", "type": "boolean", "description ": "True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts." },
902 { "name": "displayedMixedContent", "type": "boolean", "descr iption": "True if the page was loaded over HTTPS and displayed mixed (HTTP) cont ent such as images." }, 902 { "name": "displayedMixedContent", "type": "boolean", "descr iption": "True if the page was loaded over HTTPS and displayed mixed (HTTP) cont ent such as images." },
903 { "name": "ranContentWithCertErrors", "type": "boolean", "de scription": "True if the page was loaded over HTTPS without certificate errors, and ran content such as scripts that were loaded with certificate errors." }, 903 { "name": "ranContentWithCertErrors", "type": "boolean", "de scription": "True if the page was loaded over HTTPS without certificate errors, and ran content such as scripts that were loaded with certificate errors." },
904 { "name": "displayedContentWithCertErrors", "type": "boolean ", "description": "True if the page was loaded over HTTPS without certificate er rors, and displayed content such as images that were loaded with certificate err ors." }, 904 { "name": "displayedContentWithCertErrors", "type": "boolean ", "description": "True if the page was loaded over HTTPS without certificate er rors, and displayed content such as images that were loaded with certificate err ors." },
905 { "name": "ranInsecureContentStyle", "$ref": "SecurityState" , "description": "Security state representing a page that ran insecure content." }, 905 { "name": "ranInsecureContentStyle", "$ref": "SecurityState" , "description": "Security state representing a page that ran insecure content." },
906 { "name": "displayedInsecureContentStyle", "$ref": "Security State", "description": "Security state representing a page that displayed insecu re content." } 906 { "name": "displayedInsecureContentStyle", "$ref": "Security State", "description": "Security state representing a page that displayed insecu re content." }
907 ], 907 ],
908 "description": "Information about insecure content on the page." 908 "description": "Information about insecure content on the page."
909 },
910 {
911 "id": "CertificateErrorAction",
912 "type": "string",
913 "enum": ["continue", "cancel"],
914 "description": "The action to take when a certificate error occu rs. continue will continue processing the request and cancel will cancel the req uest."
909 } 915 }
910 ], 916 ],
911 "commands": [ 917 "commands": [
912 { 918 {
913 "name": "enable", 919 "name": "enable",
914 "description": "Enables tracking security state changes." 920 "description": "Enables tracking security state changes."
915 }, 921 },
916 { 922 {
917 "name": "disable", 923 "name": "disable",
918 "description": "Disables tracking security state changes." 924 "description": "Disables tracking security state changes."
919 }, 925 },
920 { 926 {
921 "name": "showCertificateViewer", 927 "name": "showCertificateViewer",
922 "description": "Displays native dialog with the certificate deta ils." 928 "description": "Displays native dialog with the certificate deta ils."
929 },
930 {
931 "name": "handleCertificateError",
932 "description": "Handles a certificate error that fired a certifi cateError event with eventID > 0.",
933 "parameters": [
934 { "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.
935 { "name": "action", "$ref": "CertificateErrorAction", "descr iption": "The action to take on the certificate error." }
936 ]
937 },
938 {
939 "name": "setOverrideCertificateErrors",
940 "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.",
941 "parameters": [
942 { "name": "override", "type": "boolean", "description": "If true, certificate errors will be overridden."}
943 ]
923 } 944 }
924 ], 945 ],
925 "events": [ 946 "events": [
926 { 947 {
927 "name": "securityStateChanged", 948 "name": "securityStateChanged",
928 "description": "The security state of the page changed.", 949 "description": "The security state of the page changed.",
929 "parameters": [ 950 "parameters": [
930 { "name": "securityState", "$ref": "SecurityState", "descrip tion": "Security state." }, 951 { "name": "securityState", "$ref": "SecurityState", "descrip tion": "Security state." },
931 { "name": "schemeIsCryptographic", "type": "boolean", "descr iption": "True if the page was loaded over cryptographic transport such as HTTPS ." }, 952 { "name": "schemeIsCryptographic", "type": "boolean", "descr iption": "True if the page was loaded over cryptographic transport such as HTTPS ." },
932 { "name": "explanations", "type": "array", "items": { "$ref" : "SecurityStateExplanation" }, "description": "List of explanations for the sec urity state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included." }, 953 { "name": "explanations", "type": "array", "items": { "$ref" : "SecurityStateExplanation" }, "description": "List of explanations for the sec urity state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included." },
933 { "name": "insecureContentStatus", "$ref": "InsecureContentS tatus", "description": "Information about insecure content on the page." }, 954 { "name": "insecureContentStatus", "$ref": "InsecureContentS tatus", "description": "Information about insecure content on the page." },
934 { "name": "summary", "type": "string", "description": "Overr ides user-visible description of the state.", "optional": true } 955 { "name": "summary", "type": "string", "description": "Overr ides user-visible description of the state.", "optional": true }
935 ] 956 ]
957 },
958 {
959 "name": "certificateError",
960 "description": "There is a certificate error. If eventID > 0, th en it should be handled with the handleCertificateError command. Note: this even t does not fire if the certificate error has been allowed internally.",
961 "parameters": [
962 { "name": "eventID", "type": "integer", "description": "The ID of the event."},
963 { "name": "errorType", "type": "string", "description": "The type of the error."},
964 { "name": "requestURL", "type": "string", "description": "Th e url that was requested."}
965 ]
936 } 966 }
937 ] 967 ]
938 }, 968 },
939 { 969 {
940 "domain": "Network", 970 "domain": "Network",
941 "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and resp onses, their headers, bodies, timing, etc.", 971 "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and resp onses, their headers, bodies, timing, etc.",
942 "dependencies": ["Runtime", "Security"], 972 "dependencies": ["Runtime", "Security"],
943 "types": [ 973 "types": [
944 { 974 {
945 "id": "LoaderId", 975 "id": "LoaderId",
(...skipping 3599 matching lines...) Expand 10 before | Expand all | Expand 10 after
4545 "name": "accepted", 4575 "name": "accepted",
4546 "description": "Informs that port was successfully bound and got a specified connection id.", 4576 "description": "Informs that port was successfully bound and got a specified connection id.",
4547 "parameters": [ 4577 "parameters": [
4548 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4578 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4549 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4579 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4550 ] 4580 ]
4551 } 4581 }
4552 ] 4582 ]
4553 }] 4583 }]
4554 } 4584 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698