| 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 1b318bb091a18bcfb4192e29d6b70d0a7c12fc07..b4d8c900578195194ca98d68b8bebf0d951c95a4 100644
|
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| @@ -4374,6 +4374,15 @@
|
| { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this entry." },
|
| { "name": "workerId", "type": "string", "optional": true, "description": "Identifier of the worker associated with this entry." }
|
| ]
|
| + },
|
| + {
|
| + "id": "ViolationSetting",
|
| + "type": "object",
|
| + "description": "Violation configuration setting.",
|
| + "properties": [
|
| + { "name": "name", "type": "string", "enum": ["longTask", "longLayout", "blockedEvent"], "description": "Violation type." },
|
| + { "name": "threshold", "type": "number", "description": "Time threshold to trigger upon." }
|
| + ]
|
| }
|
| ],
|
| "commands": [
|
| @@ -4390,11 +4399,15 @@
|
| "description": "Clears the log."
|
| },
|
| {
|
| - "name": "setReportViolationsEnabled",
|
| + "name": "startViolationsReport",
|
| "parameters": [
|
| - { "name": "enabled", "type": "boolean", "description": "Pass true to enable." }
|
| + { "name": "config", "type": "array", "items": { "$ref": "ViolationSetting" }, "description": "Configuration for violations." }
|
| ],
|
| - "description": "Reports runtime audit violations as log entries."
|
| + "description": "start violation reporting."
|
| + },
|
| + {
|
| + "name": "stopViolationsReport",
|
| + "description": "Stop violation reporting."
|
| }
|
| ],
|
| "events": [
|
|
|