Index: third_party/WebKit/Source/devtools/protocol.json |
diff --git a/third_party/WebKit/Source/devtools/protocol.json b/third_party/WebKit/Source/devtools/protocol.json |
index 15786518cac3b1cc8c201522282e505d5daa5072..234ba8fa31fe8087e3fae67d720547d28c4fc9f9 100644 |
--- a/third_party/WebKit/Source/devtools/protocol.json |
+++ b/third_party/WebKit/Source/devtools/protocol.json |
@@ -3364,6 +3364,11 @@ |
"description": "Call frame identifier." |
}, |
{ |
+ "id": "ScriptHash", |
+ "type": "string", |
+ "description": "Script's content hash." |
+ }, |
+ { |
"id": "Location", |
"type": "object", |
"properties": [ |
@@ -3384,6 +3389,18 @@ |
"description": "Location in the source code." |
}, |
{ |
+ "id": "BlackboxPattern", |
+ "hidden": true, |
+ "type": "object", |
+ "properties": [ |
+ { "name": "url", "type": "string", "optional": true }, |
+ { "name": "hash", "$ref": "ScriptHash", "optional": true }, |
+ { "name": "regexp", "type": "string", "optional": true }, |
+ { "name": "positions", "type": "array", "items": { "$ref": "ScriptPosition" }, "optional": true, "description": "Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted." } |
+ ], |
+ "description": "Pattern contains one of script selector: url, hash or regexp for url and optional positions array if url or hast is set." |
+ }, |
+ { |
"id": "FunctionDetails", |
"hidden": true, |
"type": "object", |
@@ -3783,13 +3800,17 @@ |
"description": "Removes AsyncOperation breakpoint." |
}, |
{ |
- "name": "setBlackboxedRanges", |
+ "name": "addBlackboxPatterns", |
"parameters": [ |
- { "name": "scriptId", "$ref": "Runtime.ScriptId", "description": "Id of the script." }, |
- { "name": "positions", "type": "array", "items": { "$ref": "ScriptPosition" } } |
+ { "name": "patterns", "type": "array", "items": { "$ref": "BlackboxPattern"} } |
], |
"hidden": true, |
- "description": "Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted." |
+ "description": "Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful." |
+ }, |
+ { |
+ "name": "clearBlackboxPatterns", |
+ "hidden": true, |
+ "description": "Clear all added blackbox patterns." |
} |
], |
"events": [ |
@@ -3807,10 +3828,10 @@ |
{ "name": "endLine", "type": "integer", "description": "Last line of the script." }, |
{ "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." }, |
{ "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "description": "Specifies script creation context.", "hidden": true }, |
- { "name": "hash", "type": "string", "hidden": true, "description": "Content hash of the script."}, |
{ "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." }, |
{ "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", "hidden": true }, |
{ "name": "isLiveEdit", "type": "boolean", "optional": true, "description": "True, if this script is generated as a result of the live edit operation.", "hidden": true }, |
+ { "name": "hash", "$ref": "ScriptHash", "optional": true, "hidden": true, "description": "Content hash of the script."}, |
{ "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." }, |
{ "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "True, if this script has sourceURL.", "hidden": true }, |
{ "name": "deprecatedCommentWasUsed", "type": "boolean", "optional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."} |
@@ -3827,9 +3848,9 @@ |
{ "name": "endLine", "type": "integer", "description": "Last line of the script." }, |
{ "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." }, |
{ "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "description": "Specifies script creation context.", "hidden": true }, |
- { "name": "hash", "type": "string", "hidden": true, "description": "Content hash of the script."}, |
{ "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." }, |
{ "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", "hidden": true }, |
+ { "name": "hash", "$ref": "ScriptHash", "optional": true, "hidden": true, "description": "Content hash of the script."}, |
{ "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." }, |
{ "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "True, if this script has sourceURL.", "hidden": true }, |
{ "name": "deprecatedCommentWasUsed", "type": "boolean", "optional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."} |