| OLD | NEW |
| 1 { | 1 { |
| 2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
| 3 "domains": [{ | 3 "domains": [{ |
| 4 "domain": "Runtime", | 4 "domain": "Runtime", |
| 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", | 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", |
| 6 "types": [ | 6 "types": [ |
| 7 { | 7 { |
| 8 "id": "ScriptId", | 8 "id": "ScriptId", |
| 9 "type": "string", | 9 "type": "string", |
| 10 "description": "Unique script identifier." | 10 "description": "Unique script identifier." |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 ], | 177 ], |
| 178 "commands": [ | 178 "commands": [ |
| 179 { | 179 { |
| 180 "name": "evaluate", | 180 "name": "evaluate", |
| 181 "async": true, | 181 "async": true, |
| 182 "parameters": [ | 182 "parameters": [ |
| 183 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, | 183 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, |
| 184 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 184 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
| 185 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation.", "hidden": true }, | 185 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation.", "hidden": true }, |
| 186 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether evaluation should s
top on exceptions and mute console. Overrides setPauseOnException state.", "hidd
en": true }, | 186 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether evaluation should s
top on exceptions and mute console. Overrides setPauseOnException state.", "hidd
en": true }, |
| 187 { "name": "contextId", "$ref": "ExecutionContextId", "option
al": true, "description": "Specifies in which isolated context to perform evalua
tion. Each content script lives in an isolated context and this parameter may be
used to specify one of those contexts. If the parameter is omitted or 0 the eva
luation will be performed in the context of the inspected page." }, | 187 { "name": "contextId", "$ref": "ExecutionContextId", "option
al": true, "description": "Specifies in which isolated context to perform evalua
tion. Each content script lives in an isolated context and this parameter may be
used to specify one of those contexts. If the parameter is omitted the evaluati
on will be performed in the context of the inspected page." }, |
| 188 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, | 188 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, |
| 189 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, | 189 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, |
| 190 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." }, | 190 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." }, |
| 191 { "name": "awaitPromise", "type": "boolean", "optional":true
, "hidden": true, "description": "Whether execution should wait for promise to b
e resolved. If the result of evaluation is not a Promise, it's considered to be
an error." } | 191 { "name": "awaitPromise", "type": "boolean", "optional":true
, "hidden": true, "description": "Whether execution should wait for promise to b
e resolved. If the result of evaluation is not a Promise, it's considered to be
an error." } |
| 192 ], | 192 ], |
| 193 "returns": [ | 193 "returns": [ |
| 194 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, | 194 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, |
| 195 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, | 195 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, |
| 196 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "hidden": true, "description": "Exception details."} | 196 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "hidden": true, "description": "Exception details."} |
| 197 ], | 197 ], |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 ], | 291 ], |
| 292 "hidden": true | 292 "hidden": true |
| 293 }, | 293 }, |
| 294 { | 294 { |
| 295 "name": "compileScript", | 295 "name": "compileScript", |
| 296 "hidden": true, | 296 "hidden": true, |
| 297 "parameters": [ | 297 "parameters": [ |
| 298 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, | 298 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, |
| 299 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, | 299 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, |
| 300 { "name": "persistScript", "type": "boolean", "description":
"Specifies whether the compiled script should be persisted." }, | 300 { "name": "persistScript", "type": "boolean", "description":
"Specifies whether the compiled script should be persisted." }, |
| 301 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Specifies in which isolated context to perform script run. Eac
h content script lives in an isolated context and this parameter is used to spec
ify one of those contexts." } | 301 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which isolated context to perfo
rm script run. Each content script lives in an isolated context and this paramet
er is used to specify one of those contexts. If the parameter is omitted the eva
luation will be performed in the context of the inspected page." } |
| 302 ], | 302 ], |
| 303 "returns": [ | 303 "returns": [ |
| 304 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, | 304 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, |
| 305 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 305 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
| 306 ], | 306 ], |
| 307 "description": "Compiles expression." | 307 "description": "Compiles expression." |
| 308 }, | 308 }, |
| 309 { | 309 { |
| 310 "name": "runScript", | 310 "name": "runScript", |
| 311 "hidden": true, | 311 "hidden": true, |
| 312 "async": true, |
| 312 "parameters": [ | 313 "parameters": [ |
| 313 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, | 314 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, |
| 314 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "description": "Specifies in which isolated context to perform script run. Eac
h content script lives in an isolated context and this parameter is used to spec
ify one of those contexts." }, | 315 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which isolated context to perfo
rm script run. Each content script lives in an isolated context and this paramet
er is used to specify one of those contexts. If the parameter is omitted the eva
luation will be performed in the context of the inspected page." }, |
| 315 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 316 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
| 316 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether script run should s
top on exceptions and mute console. Overrides setPauseOnException state." }, | 317 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether script run should s
top on exceptions and mute console. Overrides setPauseOnException state." }, |
| 317 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." } | 318 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
| 319 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, |
| 320 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, |
| 321 { "name": "awaitPromise", "type": "boolean", "optional": tru
e, "description": "Whether execution should wait for promise to be resolved. If
the result of evaluation is not a Promise, it's considered to be an error." } |
| 318 ], | 322 ], |
| 319 "returns": [ | 323 "returns": [ |
| 320 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, | 324 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, |
| 325 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the execution." }, |
| 321 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 326 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
| 322 ], | 327 ], |
| 323 "description": "Runs script with given id in a given context." | 328 "description": "Runs script with given id in a given context." |
| 324 } | 329 } |
| 325 ], | 330 ], |
| 326 "events": [ | 331 "events": [ |
| 327 { | 332 { |
| 328 "name": "executionContextCreated", | 333 "name": "executionContextCreated", |
| 329 "parameters": [ | 334 "parameters": [ |
| 330 { "name": "context", "$ref": "ExecutionContextDescription",
"description": "A newly created execution contex." } | 335 { "name": "context", "$ref": "ExecutionContextDescription",
"description": "A newly created execution contex." } |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 { | 1010 { |
| 1006 "name": "heapStatsUpdate", | 1011 "name": "heapStatsUpdate", |
| 1007 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 1012 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
| 1008 "parameters": [ | 1013 "parameters": [ |
| 1009 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} | 1014 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} |
| 1010 ] | 1015 ] |
| 1011 } | 1016 } |
| 1012 ] | 1017 ] |
| 1013 }] | 1018 }] |
| 1014 } | 1019 } |
| OLD | NEW |