| Index: Source/devtools/protocol.json
|
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
|
| index de4fbd62904aee8facba0d676c1e17af5f5ffe2f..44a3e57fcd766706493ae9d655d16262f89635e4 100644
|
| --- a/Source/devtools/protocol.json
|
| +++ b/Source/devtools/protocol.json
|
| @@ -248,7 +248,7 @@
|
| "parameters": [],
|
| "returns": [
|
| { "name": "currentIndex", "type": "integer", "description": "Index of the current navigation history entry." },
|
| - { "name": "entries", "type": "array", "items": { "$ref": "NavigationEntry"}, "description": "Array of navigation history entries." }
|
| + { "name": "entries", "type": "array", "items": { "$ref": "NavigationEntry" }, "description": "Array of navigation history entries." }
|
| ],
|
| "description": "Returns navigation history for the current page.",
|
| "hidden": true
|
| @@ -264,7 +264,7 @@
|
| {
|
| "name": "getCookies",
|
| "returns": [
|
| - { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." },
|
| + { "name": "cookies", "type": "array", "items": { "$ref": "Cookie" }, "description": "Array of cookie objects." },
|
| { "name": "cookiesString", "type": "string", "description": "document.cookie string representation of the cookies." }
|
| ],
|
| "description": "Returns all browser cookies. Depending on the backend support, will either return detailed cookie information in the <code>cookie</code> field or string cookie representation using <code>cookieString</code>.",
|
| @@ -749,8 +749,8 @@
|
| { "name": "accessorPropertiesOnly", "optional": true, "type": "boolean", "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.", "hidden": true }
|
| ],
|
| "returns": [
|
| - { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor"}, "description": "Object properties." },
|
| - { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor"}, "description": "Internal object properties (only of the element itself).", "hidden": true }
|
| + { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor" }, "description": "Object properties." },
|
| + { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Internal object properties (only of the element itself).", "hidden": true }
|
| ],
|
| "description": "Returns properties of a given object. Object group of the result is inherited from the target object."
|
| },
|
| @@ -1975,7 +1975,7 @@
|
| { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name for handler value. Handler value is not returned without this parameter specified." }
|
| ],
|
| "returns": [
|
| - { "name": "listeners", "type": "array", "items": { "$ref": "EventListener"}, "description": "Array of relevant listeners." }
|
| + { "name": "listeners", "type": "array", "items": { "$ref": "EventListener" }, "description": "Array of relevant listeners." }
|
| ],
|
| "description": "Returns event listeners relevant to the node.",
|
| "hidden": true
|
| @@ -2243,7 +2243,7 @@
|
| "name": "setChildNodes",
|
| "parameters": [
|
| { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." },
|
| - { "name": "nodes", "type": "array", "items": { "$ref": "Node"}, "description": "Child nodes array." }
|
| + { "name": "nodes", "type": "array", "items": { "$ref": "Node" }, "description": "Child nodes array." }
|
| ],
|
| "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
|
| },
|
| @@ -2661,7 +2661,7 @@
|
| ],
|
| "returns": [
|
| { "name": "cssFamilyName", "type": "string", "description": "Font family name which is determined by computed style." },
|
| - { "name": "fonts", "type": "array", "items": { "$ref": "PlatformFontUsage"}, "description": "Usage statistics for every employed platform font." }
|
| + { "name": "fonts", "type": "array", "items": { "$ref": "PlatformFontUsage" }, "description": "Usage statistics for every employed platform font." }
|
| ],
|
| "description": "Requests information about platform fonts which we used to render child TextNodes in the given node.",
|
| "hidden": true
|
| @@ -2983,6 +2983,16 @@
|
| "description": "JavaScript call frame. Array of call frames form the call stack."
|
| },
|
| {
|
| + "id": "StackTrace",
|
| + "type": "object",
|
| + "properties": [
|
| + { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." },
|
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." }
|
| + ],
|
| + "description": "JavaScript call stack, including async stack traces.",
|
| + "hidden": true
|
| + },
|
| + {
|
| "id": "Scope",
|
| "type": "object",
|
| "properties": [
|
| @@ -3044,7 +3054,7 @@
|
| ],
|
| "returns": [
|
| { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." },
|
| - { "name": "locations", "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into upon addition." }
|
| + { "name": "locations", "type": "array", "items": { "$ref": "Location" }, "description": "List of the locations this breakpoint resolved into upon addition." }
|
| ],
|
| "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads."
|
| },
|
| @@ -3129,8 +3139,9 @@
|
| { "name": "preview", "type": "boolean", "optional": true, "description": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidden": true }
|
| ],
|
| "returns": [
|
| - { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." },
|
| - { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true }
|
| + { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing has happened while VM was stopped." },
|
| + { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true },
|
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true }
|
| ],
|
| "error": {
|
| "$ref": "SetScriptSourceError"
|
| @@ -3143,8 +3154,9 @@
|
| { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." }
|
| ],
|
| "returns": [
|
| - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame"}, "description": "New stack trace." },
|
| - { "name": "result", "type": "object", "description": "VM-specific description.", "hidden": true }
|
| + { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "New stack trace." },
|
| + { "name": "result", "type": "object", "description": "VM-specific description." },
|
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." }
|
| ],
|
| "hidden": true,
|
| "description": "Restarts particular call frame from the beginning."
|
| @@ -3256,7 +3268,8 @@
|
| {
|
| "name": "getBacktrace",
|
| "returns": [
|
| - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame"}, "description": "Call stack the virtual machine stopped on." }
|
| + { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
|
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." }
|
| ],
|
| "hidden": true,
|
| "description": "Returns call stack including variables changed since VM was paused. VM must be paused."
|
| @@ -3315,7 +3328,8 @@
|
| { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
|
| { "name": "reason", "type": "string", "enum": [ "XHR", "DOM", "EventListener", "exception", "assert", "CSPViolation", "debugCommand", "other" ], "description": "Pause reason." },
|
| { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." },
|
| - { "name": "hitBreakpoints", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden": true }
|
| + { "name": "hitBreakpoints", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden": true },
|
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true }
|
| ],
|
| "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
|
| },
|
|
|