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

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 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 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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 "type": "object", 900 "type": "object",
901 "properties": [ 901 "properties": [
902 { "name": "ranMixedContent", "type": "boolean", "description ": "True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts." }, 902 { "name": "ranMixedContent", "type": "boolean", "description ": "True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts." },
903 { "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": "displayedMixedContent", "type": "boolean", "descr iption": "True if the page was loaded over HTTPS and displayed mixed (HTTP) cont ent such as images." },
904 { "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": "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." },
905 { "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": "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." },
906 { "name": "ranInsecureContentStyle", "$ref": "SecurityState" , "description": "Security state representing a page that ran insecure content." }, 906 { "name": "ranInsecureContentStyle", "$ref": "SecurityState" , "description": "Security state representing a page that ran insecure content." },
907 { "name": "displayedInsecureContentStyle", "$ref": "Security State", "description": "Security state representing a page that displayed insecu re content." } 907 { "name": "displayedInsecureContentStyle", "$ref": "Security State", "description": "Security state representing a page that displayed insecu re content." }
908 ], 908 ],
909 "description": "Information about insecure content on the page." 909 "description": "Information about insecure content on the page."
910 },
911 {
912 "id": "CertificateErrorAction",
913 "type": "string",
914 "enum": ["continue", "cancel"],
915 "description": "The action to take when a certificate error occu rs. continue will continue processing the request and cancel will cancel the req uest."
910 } 916 }
911 ], 917 ],
912 "commands": [ 918 "commands": [
913 { 919 {
914 "name": "enable", 920 "name": "enable",
915 "description": "Enables tracking security state changes." 921 "description": "Enables tracking security state changes."
916 }, 922 },
917 { 923 {
918 "name": "disable", 924 "name": "disable",
919 "description": "Disables tracking security state changes." 925 "description": "Disables tracking security state changes."
920 }, 926 },
921 { 927 {
922 "name": "showCertificateViewer", 928 "name": "showCertificateViewer",
923 "description": "Displays native dialog with the certificate deta ils." 929 "description": "Displays native dialog with the certificate deta ils."
930 },
931 {
932 "name": "handleCertificateError",
933 "description": "Handles a certificate error that fired a certifi cateError event.",
934 "parameters": [
935 { "name": "eventId", "type": "integer", "description": "The ID of the event."},
936 { "name": "action", "$ref": "CertificateErrorAction", "descr iption": "The action to take on the certificate error." }
937 ]
938 },
939 {
940 "name": "setOverrideCertificateErrors",
941 "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.",
942 "parameters": [
943 { "name": "override", "type": "boolean", "description": "If true, certificate errors will be overridden."}
944 ]
924 } 945 }
925 ], 946 ],
926 "events": [ 947 "events": [
927 { 948 {
928 "name": "securityStateChanged", 949 "name": "securityStateChanged",
929 "description": "The security state of the page changed.", 950 "description": "The security state of the page changed.",
930 "parameters": [ 951 "parameters": [
931 { "name": "securityState", "$ref": "SecurityState", "descrip tion": "Security state." }, 952 { "name": "securityState", "$ref": "SecurityState", "descrip tion": "Security state." },
932 { "name": "schemeIsCryptographic", "type": "boolean", "descr iption": "True if the page was loaded over cryptographic transport such as HTTPS ." }, 953 { "name": "schemeIsCryptographic", "type": "boolean", "descr iption": "True if the page was loaded over cryptographic transport such as HTTPS ." },
933 { "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." }, 954 { "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." },
934 { "name": "insecureContentStatus", "$ref": "InsecureContentS tatus", "description": "Information about insecure content on the page." }, 955 { "name": "insecureContentStatus", "$ref": "InsecureContentS tatus", "description": "Information about insecure content on the page." },
935 { "name": "summary", "type": "string", "description": "Overr ides user-visible description of the state.", "optional": true } 956 { "name": "summary", "type": "string", "description": "Overr ides user-visible description of the state.", "optional": true }
936 ] 957 ]
958 },
959 {
960 "name": "certificateError",
961 "description": "There is a certificate error. If overriding cert ificate errors is enabled, then it should be handled with the handleCertificateE rror command. Note: this event does not fire if the certificate error has been a llowed internally.",
962 "parameters": [
963 { "name": "eventId", "type": "integer", "description": "The ID of the event."},
964 { "name": "errorType", "type": "string", "description": "The type of the error."},
965 { "name": "requestURL", "type": "string", "description": "Th e url that was requested."}
966 ]
937 } 967 }
938 ] 968 ]
939 }, 969 },
940 { 970 {
941 "domain": "Network", 971 "domain": "Network",
942 "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.", 972 "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.",
943 "dependencies": ["Runtime", "Security"], 973 "dependencies": ["Runtime", "Security"],
944 "types": [ 974 "types": [
945 { 975 {
946 "id": "LoaderId", 976 "id": "LoaderId",
(...skipping 3599 matching lines...) Expand 10 before | Expand all | Expand 10 after
4546 "name": "accepted", 4576 "name": "accepted",
4547 "description": "Informs that port was successfully bound and got a specified connection id.", 4577 "description": "Informs that port was successfully bound and got a specified connection id.",
4548 "parameters": [ 4578 "parameters": [
4549 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4579 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4550 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4580 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4551 ] 4581 ]
4552 } 4582 }
4553 ] 4583 ]
4554 }] 4584 }]
4555 } 4585 }
OLDNEW
« 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