OLD | NEW |
(Empty) | |
| 1 { |
| 2 "domain": "Runtime", |
| 3 "version": { |
| 4 "major": "1", |
| 5 "minor": "1" |
| 6 }, |
| 7 "description": "Runtime domain exposes JavaScript runtime by means of remote
evaluation and mirror objects. Evaluation results are returned as mirror object
that expose object type, string representation and unique identifier that can b
e used for further object reference. Original objects are maintained in memory u
nless they are either explicitly released or are released along with the other o
bjects in their object group.", |
| 8 "types": [ |
| 9 { |
| 10 "id": "ScriptId", |
| 11 "type": "string", |
| 12 "description": "Unique script identifier." |
| 13 }, |
| 14 { |
| 15 "id": "RemoteObjectId", |
| 16 "type": "string", |
| 17 "description": "Unique object identifier." |
| 18 }, |
| 19 { |
| 20 "id": "RemoteObject", |
| 21 "type": "object", |
| 22 "description": "Mirror object referencing original JavaScript object
.", |
| 23 "properties": [ |
| 24 { |
| 25 "name": "type", |
| 26 "type": "string", |
| 27 "enum": [ |
| 28 "object", |
| 29 "function", |
| 30 "undefined", |
| 31 "string", |
| 32 "number", |
| 33 "boolean", |
| 34 "symbol" |
| 35 ], |
| 36 "description": "Object type." |
| 37 }, |
| 38 { |
| 39 "name": "subtype", |
| 40 "type": "string", |
| 41 "optional": true, |
| 42 "enum": [ |
| 43 "array", |
| 44 "null", |
| 45 "node", |
| 46 "regexp", |
| 47 "date", |
| 48 "map", |
| 49 "set", |
| 50 "iterator", |
| 51 "generator", |
| 52 "error" |
| 53 ], |
| 54 "description": "Object subtype hint. Specified for <code>obj
ect</code> type values only." |
| 55 }, |
| 56 { |
| 57 "name": "className", |
| 58 "type": "string", |
| 59 "optional": true, |
| 60 "description": "Object class (constructor) name. Specified f
or <code>object</code> type values only." |
| 61 }, |
| 62 { |
| 63 "name": "value", |
| 64 "type": "any", |
| 65 "optional": true, |
| 66 "description": "Remote object value in case of primitive val
ues or JSON values (if it was requested), or description string if the value can
not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." |
| 67 }, |
| 68 { |
| 69 "name": "description", |
| 70 "type": "string", |
| 71 "optional": true, |
| 72 "description": "String representation of the object." |
| 73 }, |
| 74 { |
| 75 "name": "objectId", |
| 76 "$ref": "RemoteObjectId", |
| 77 "optional": true, |
| 78 "description": "Unique object identifier (for non-primitive
values)." |
| 79 }, |
| 80 { |
| 81 "name": "preview", |
| 82 "$ref": "ObjectPreview", |
| 83 "optional": true, |
| 84 "description": "Preview containing abbreviated property valu
es. Specified for <code>object</code> type values only.", |
| 85 "hidden": true |
| 86 }, |
| 87 { |
| 88 "name": "customPreview", |
| 89 "$ref": "CustomPreview", |
| 90 "optional": true, |
| 91 "hidden": true |
| 92 } |
| 93 ] |
| 94 }, |
| 95 { |
| 96 "id": "CustomPreview", |
| 97 "type": "object", |
| 98 "hidden": true, |
| 99 "properties": [ |
| 100 { |
| 101 "name": "header", |
| 102 "type": "string" |
| 103 }, |
| 104 { |
| 105 "name": "hasBody", |
| 106 "type": "boolean" |
| 107 }, |
| 108 { |
| 109 "name": "formatterObjectId", |
| 110 "$ref": "RemoteObjectId" |
| 111 }, |
| 112 { |
| 113 "name": "bindRemoteObjectFunctionId", |
| 114 "$ref": "RemoteObjectId" |
| 115 }, |
| 116 { |
| 117 "name": "configObjectId", |
| 118 "$ref": "RemoteObjectId", |
| 119 "optional": true |
| 120 } |
| 121 ] |
| 122 }, |
| 123 { |
| 124 "id": "ObjectPreview", |
| 125 "type": "object", |
| 126 "hidden": true, |
| 127 "description": "Object containing abbreviated remote object value.", |
| 128 "properties": [ |
| 129 { |
| 130 "name": "type", |
| 131 "type": "string", |
| 132 "enum": [ |
| 133 "object", |
| 134 "function", |
| 135 "undefined", |
| 136 "string", |
| 137 "number", |
| 138 "boolean", |
| 139 "symbol" |
| 140 ], |
| 141 "description": "Object type." |
| 142 }, |
| 143 { |
| 144 "name": "subtype", |
| 145 "type": "string", |
| 146 "optional": true, |
| 147 "enum": [ |
| 148 "array", |
| 149 "null", |
| 150 "node", |
| 151 "regexp", |
| 152 "date", |
| 153 "map", |
| 154 "set", |
| 155 "iterator", |
| 156 "generator", |
| 157 "error" |
| 158 ], |
| 159 "description": "Object subtype hint. Specified for <code>obj
ect</code> type values only." |
| 160 }, |
| 161 { |
| 162 "name": "description", |
| 163 "type": "string", |
| 164 "optional": true, |
| 165 "description": "String representation of the object." |
| 166 }, |
| 167 { |
| 168 "name": "overflow", |
| 169 "type": "boolean", |
| 170 "description": "True iff some of the properties or entries o
f the original object did not fit." |
| 171 }, |
| 172 { |
| 173 "name": "properties", |
| 174 "type": "array", |
| 175 "items": { |
| 176 "$ref": "PropertyPreview" |
| 177 }, |
| 178 "description": "List of the properties." |
| 179 }, |
| 180 { |
| 181 "name": "entries", |
| 182 "type": "array", |
| 183 "items": { |
| 184 "$ref": "EntryPreview" |
| 185 }, |
| 186 "optional": true, |
| 187 "description": "List of the entries. Specified for <code>map
</code> and <code>set</code> subtype values only." |
| 188 } |
| 189 ] |
| 190 }, |
| 191 { |
| 192 "id": "PropertyPreview", |
| 193 "type": "object", |
| 194 "hidden": true, |
| 195 "properties": [ |
| 196 { |
| 197 "name": "name", |
| 198 "type": "string", |
| 199 "description": "Property name." |
| 200 }, |
| 201 { |
| 202 "name": "type", |
| 203 "type": "string", |
| 204 "enum": [ |
| 205 "object", |
| 206 "function", |
| 207 "undefined", |
| 208 "string", |
| 209 "number", |
| 210 "boolean", |
| 211 "symbol", |
| 212 "accessor" |
| 213 ], |
| 214 "description": "Object type. Accessor means that the propert
y itself is an accessor property." |
| 215 }, |
| 216 { |
| 217 "name": "value", |
| 218 "type": "string", |
| 219 "optional": true, |
| 220 "description": "User-friendly property value string." |
| 221 }, |
| 222 { |
| 223 "name": "valuePreview", |
| 224 "$ref": "ObjectPreview", |
| 225 "optional": true, |
| 226 "description": "Nested value preview." |
| 227 }, |
| 228 { |
| 229 "name": "subtype", |
| 230 "type": "string", |
| 231 "optional": true, |
| 232 "enum": [ |
| 233 "array", |
| 234 "null", |
| 235 "node", |
| 236 "regexp", |
| 237 "date", |
| 238 "map", |
| 239 "set", |
| 240 "iterator", |
| 241 "generator", |
| 242 "error" |
| 243 ], |
| 244 "description": "Object subtype hint. Specified for <code>obj
ect</code> type values only." |
| 245 } |
| 246 ] |
| 247 }, |
| 248 { |
| 249 "id": "EntryPreview", |
| 250 "type": "object", |
| 251 "hidden": true, |
| 252 "properties": [ |
| 253 { |
| 254 "name": "key", |
| 255 "$ref": "ObjectPreview", |
| 256 "optional": true, |
| 257 "description": "Preview of the key. Specified for map-like c
ollection entries." |
| 258 }, |
| 259 { |
| 260 "name": "value", |
| 261 "$ref": "ObjectPreview", |
| 262 "description": "Preview of the value." |
| 263 } |
| 264 ] |
| 265 }, |
| 266 { |
| 267 "id": "PropertyDescriptor", |
| 268 "type": "object", |
| 269 "description": "Object property descriptor.", |
| 270 "properties": [ |
| 271 { |
| 272 "name": "name", |
| 273 "type": "string", |
| 274 "description": "Property name or symbol description." |
| 275 }, |
| 276 { |
| 277 "name": "value", |
| 278 "$ref": "RemoteObject", |
| 279 "optional": true, |
| 280 "description": "The value associated with the property." |
| 281 }, |
| 282 { |
| 283 "name": "writable", |
| 284 "type": "boolean", |
| 285 "optional": true, |
| 286 "description": "True if the value associated with the proper
ty may be changed (data descriptors only)." |
| 287 }, |
| 288 { |
| 289 "name": "get", |
| 290 "$ref": "RemoteObject", |
| 291 "optional": true, |
| 292 "description": "A function which serves as a getter for the
property, or <code>undefined</code> if there is no getter (accessor descriptors
only)." |
| 293 }, |
| 294 { |
| 295 "name": "set", |
| 296 "$ref": "RemoteObject", |
| 297 "optional": true, |
| 298 "description": "A function which serves as a setter for the
property, or <code>undefined</code> if there is no setter (accessor descriptors
only)." |
| 299 }, |
| 300 { |
| 301 "name": "configurable", |
| 302 "type": "boolean", |
| 303 "description": "True if the type of this property descriptor
may be changed and if the property may be deleted from the corresponding object
." |
| 304 }, |
| 305 { |
| 306 "name": "enumerable", |
| 307 "type": "boolean", |
| 308 "description": "True if this property shows up during enumer
ation of the properties on the corresponding object." |
| 309 }, |
| 310 { |
| 311 "name": "wasThrown", |
| 312 "type": "boolean", |
| 313 "optional": true, |
| 314 "description": "True if the result was thrown during the eva
luation." |
| 315 }, |
| 316 { |
| 317 "name": "isOwn", |
| 318 "optional": true, |
| 319 "type": "boolean", |
| 320 "description": "True if the property is owned for the object
.", |
| 321 "hidden": true |
| 322 }, |
| 323 { |
| 324 "name": "symbol", |
| 325 "$ref": "RemoteObject", |
| 326 "optional": true, |
| 327 "description": "Property symbol object, if the property is o
f the <code>symbol</code> type.", |
| 328 "hidden": true |
| 329 } |
| 330 ] |
| 331 }, |
| 332 { |
| 333 "id": "InternalPropertyDescriptor", |
| 334 "type": "object", |
| 335 "description": "Object internal property descriptor. This property i
sn't normally visible in JavaScript code.", |
| 336 "properties": [ |
| 337 { |
| 338 "name": "name", |
| 339 "type": "string", |
| 340 "description": "Conventional property name." |
| 341 }, |
| 342 { |
| 343 "name": "value", |
| 344 "$ref": "RemoteObject", |
| 345 "optional": true, |
| 346 "description": "The value associated with the property." |
| 347 } |
| 348 ], |
| 349 "hidden": true |
| 350 }, |
| 351 { |
| 352 "id": "CallArgument", |
| 353 "type": "object", |
| 354 "description": "Represents function call argument. Either remote obj
ect id <code>objectId</code> or primitive <code>value</code> or neither of (for
undefined) them should be specified.", |
| 355 "properties": [ |
| 356 { |
| 357 "name": "value", |
| 358 "type": "any", |
| 359 "optional": true, |
| 360 "description": "Primitive value, or description string if th
e value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." |
| 361 }, |
| 362 { |
| 363 "name": "objectId", |
| 364 "$ref": "RemoteObjectId", |
| 365 "optional": true, |
| 366 "description": "Remote object handle." |
| 367 }, |
| 368 { |
| 369 "name": "type", |
| 370 "optional": true, |
| 371 "hidden": true, |
| 372 "type": "string", |
| 373 "enum": [ |
| 374 "object", |
| 375 "function", |
| 376 "undefined", |
| 377 "string", |
| 378 "number", |
| 379 "boolean", |
| 380 "symbol" |
| 381 ], |
| 382 "description": "Object type." |
| 383 } |
| 384 ] |
| 385 }, |
| 386 { |
| 387 "id": "ExecutionContextId", |
| 388 "type": "integer", |
| 389 "description": "Id of an execution context." |
| 390 }, |
| 391 { |
| 392 "id": "ExecutionContextDescription", |
| 393 "type": "object", |
| 394 "description": "Description of an isolated world.", |
| 395 "properties": [ |
| 396 { |
| 397 "name": "id", |
| 398 "$ref": "ExecutionContextId", |
| 399 "description": "Unique id of the execution context. It can b
e used to specify in which execution context script evaluation should be perform
ed." |
| 400 }, |
| 401 { |
| 402 "name": "isDefault", |
| 403 "type": "boolean", |
| 404 "description": "Whether context is the default page context
(as opposite to e.g. context of content script).", |
| 405 "hidden": true |
| 406 }, |
| 407 { |
| 408 "name": "origin", |
| 409 "type": "string", |
| 410 "description": "Execution context origin.", |
| 411 "hidden": true |
| 412 }, |
| 413 { |
| 414 "name": "name", |
| 415 "type": "string", |
| 416 "description": "Human readable name describing given context
.", |
| 417 "hidden": true |
| 418 }, |
| 419 { |
| 420 "name": "frameId", |
| 421 "type": "string", |
| 422 "description": "Id of the owning frame. May be an empty stri
ng if the context is not associated with a frame." |
| 423 } |
| 424 ] |
| 425 }, |
| 426 { |
| 427 "id": "ExceptionDetails", |
| 428 "type": "object", |
| 429 "description": "Detailed information on exception (or error) that wa
s thrown during script compilation or execution.", |
| 430 "properties": [ |
| 431 { |
| 432 "name": "text", |
| 433 "type": "string", |
| 434 "description": "Exception text." |
| 435 }, |
| 436 { |
| 437 "name": "url", |
| 438 "type": "string", |
| 439 "optional": true, |
| 440 "description": "URL of the message origin." |
| 441 }, |
| 442 { |
| 443 "name": "scriptId", |
| 444 "type": "string", |
| 445 "optional": true, |
| 446 "description": "Script ID of the message origin." |
| 447 }, |
| 448 { |
| 449 "name": "line", |
| 450 "type": "integer", |
| 451 "optional": true, |
| 452 "description": "Line number in the resource that generated t
his message." |
| 453 }, |
| 454 { |
| 455 "name": "column", |
| 456 "type": "integer", |
| 457 "optional": true, |
| 458 "description": "Column number in the resource that generated
this message." |
| 459 }, |
| 460 { |
| 461 "name": "stack", |
| 462 "$ref": "StackTrace", |
| 463 "optional": true, |
| 464 "description": "JavaScript stack trace for assertions and er
ror messages." |
| 465 } |
| 466 ] |
| 467 }, |
| 468 { |
| 469 "id": "CallFrame", |
| 470 "type": "object", |
| 471 "description": "Stack entry for runtime errors and assertions.", |
| 472 "properties": [ |
| 473 { |
| 474 "name": "functionName", |
| 475 "type": "string", |
| 476 "description": "JavaScript function name." |
| 477 }, |
| 478 { |
| 479 "name": "scriptId", |
| 480 "$ref": "ScriptId", |
| 481 "description": "JavaScript script id." |
| 482 }, |
| 483 { |
| 484 "name": "url", |
| 485 "type": "string", |
| 486 "description": "JavaScript script name or url." |
| 487 }, |
| 488 { |
| 489 "name": "lineNumber", |
| 490 "type": "integer", |
| 491 "description": "JavaScript script line number." |
| 492 }, |
| 493 { |
| 494 "name": "columnNumber", |
| 495 "type": "integer", |
| 496 "description": "JavaScript script column number." |
| 497 } |
| 498 ] |
| 499 }, |
| 500 { |
| 501 "id": "StackTrace", |
| 502 "type": "object", |
| 503 "description": "Call frames for assertions or error messages.", |
| 504 "properties": [ |
| 505 { |
| 506 "name": "description", |
| 507 "type": "string", |
| 508 "optional": true, |
| 509 "description": "String label of this stack trace. For async
traces this may be a name of the function that initiated the async call." |
| 510 }, |
| 511 { |
| 512 "name": "callFrames", |
| 513 "type": "array", |
| 514 "items": { |
| 515 "$ref": "CallFrame" |
| 516 }, |
| 517 "description": "JavaScript function name." |
| 518 }, |
| 519 { |
| 520 "name": "parent", |
| 521 "$ref": "StackTrace", |
| 522 "optional": true, |
| 523 "hidden": true, |
| 524 "description": "Asynchronous JavaScript stack trace that pre
ceded this stack, if available." |
| 525 } |
| 526 ] |
| 527 } |
| 528 ], |
| 529 "commands": [ |
| 530 { |
| 531 "name": "evaluate", |
| 532 "parameters": [ |
| 533 { |
| 534 "name": "expression", |
| 535 "type": "string", |
| 536 "description": "Expression to evaluate." |
| 537 }, |
| 538 { |
| 539 "name": "objectGroup", |
| 540 "type": "string", |
| 541 "optional": true, |
| 542 "description": "Symbolic group name that can be used to rele
ase multiple objects." |
| 543 }, |
| 544 { |
| 545 "name": "includeCommandLineAPI", |
| 546 "type": "boolean", |
| 547 "optional": true, |
| 548 "description": "Determines whether Command Line API should b
e available during the evaluation.", |
| 549 "hidden": true |
| 550 }, |
| 551 { |
| 552 "name": "doNotPauseOnExceptionsAndMuteConsole", |
| 553 "type": "boolean", |
| 554 "optional": true, |
| 555 "description": "Specifies whether evaluation should stop on
exceptions and mute console. Overrides setPauseOnException state.", |
| 556 "hidden": true |
| 557 }, |
| 558 { |
| 559 "name": "contextId", |
| 560 "$ref": "ExecutionContextId", |
| 561 "optional": true, |
| 562 "description": "Specifies in which isolated context to perfo
rm evaluation. Each content script lives in an isolated context and this paramet
er may be used to specify one of those contexts. If the parameter is omitted or
0 the evaluation will be performed in the context of the inspected page." |
| 563 }, |
| 564 { |
| 565 "name": "returnByValue", |
| 566 "type": "boolean", |
| 567 "optional": true, |
| 568 "description": "Whether the result is expected to be a JSON
object that should be sent by value." |
| 569 }, |
| 570 { |
| 571 "name": "generatePreview", |
| 572 "type": "boolean", |
| 573 "optional": true, |
| 574 "hidden": true, |
| 575 "description": "Whether preview should be generated for the
result." |
| 576 }, |
| 577 { |
| 578 "name": "userGesture", |
| 579 "type": "boolean", |
| 580 "optional": true, |
| 581 "hidden": true, |
| 582 "description": "Whether execution should be treated as initi
ated by user in the UI." |
| 583 } |
| 584 ], |
| 585 "returns": [ |
| 586 { |
| 587 "name": "result", |
| 588 "$ref": "RemoteObject", |
| 589 "description": "Evaluation result." |
| 590 }, |
| 591 { |
| 592 "name": "wasThrown", |
| 593 "type": "boolean", |
| 594 "optional": true, |
| 595 "description": "True if the result was thrown during the eva
luation." |
| 596 }, |
| 597 { |
| 598 "name": "exceptionDetails", |
| 599 "$ref": "ExceptionDetails", |
| 600 "optional": true, |
| 601 "hidden": true, |
| 602 "description": "Exception details." |
| 603 } |
| 604 ], |
| 605 "description": "Evaluates expression on global object." |
| 606 }, |
| 607 { |
| 608 "name": "callFunctionOn", |
| 609 "parameters": [ |
| 610 { |
| 611 "name": "objectId", |
| 612 "$ref": "RemoteObjectId", |
| 613 "description": "Identifier of the object to call function on
." |
| 614 }, |
| 615 { |
| 616 "name": "functionDeclaration", |
| 617 "type": "string", |
| 618 "description": "Declaration of the function to call." |
| 619 }, |
| 620 { |
| 621 "name": "arguments", |
| 622 "type": "array", |
| 623 "items": { |
| 624 "$ref": "CallArgument", |
| 625 "description": "Call argument." |
| 626 }, |
| 627 "optional": true, |
| 628 "description": "Call arguments. All call arguments must belo
ng to the same JavaScript world as the target object." |
| 629 }, |
| 630 { |
| 631 "name": "doNotPauseOnExceptionsAndMuteConsole", |
| 632 "type": "boolean", |
| 633 "optional": true, |
| 634 "description": "Specifies whether function call should stop
on exceptions and mute console. Overrides setPauseOnException state.", |
| 635 "hidden": true |
| 636 }, |
| 637 { |
| 638 "name": "returnByValue", |
| 639 "type": "boolean", |
| 640 "optional": true, |
| 641 "description": "Whether the result is expected to be a JSON
object which should be sent by value." |
| 642 }, |
| 643 { |
| 644 "name": "generatePreview", |
| 645 "type": "boolean", |
| 646 "optional": true, |
| 647 "hidden": true, |
| 648 "description": "Whether preview should be generated for the
result." |
| 649 }, |
| 650 { |
| 651 "name": "userGesture", |
| 652 "type": "boolean", |
| 653 "optional": true, |
| 654 "hidden": true, |
| 655 "description": "Whether execution should be treated as initi
ated by user in the UI." |
| 656 } |
| 657 ], |
| 658 "returns": [ |
| 659 { |
| 660 "name": "result", |
| 661 "$ref": "RemoteObject", |
| 662 "description": "Call result." |
| 663 }, |
| 664 { |
| 665 "name": "wasThrown", |
| 666 "type": "boolean", |
| 667 "optional": true, |
| 668 "description": "True if the result was thrown during the eva
luation." |
| 669 } |
| 670 ], |
| 671 "description": "Calls function with given declaration on the given o
bject. Object group of the result is inherited from the target object." |
| 672 }, |
| 673 { |
| 674 "name": "getProperties", |
| 675 "parameters": [ |
| 676 { |
| 677 "name": "objectId", |
| 678 "$ref": "RemoteObjectId", |
| 679 "description": "Identifier of the object to return propertie
s for." |
| 680 }, |
| 681 { |
| 682 "name": "ownProperties", |
| 683 "optional": true, |
| 684 "type": "boolean", |
| 685 "description": "If true, returns properties belonging only t
o the element itself, not to its prototype chain." |
| 686 }, |
| 687 { |
| 688 "name": "accessorPropertiesOnly", |
| 689 "optional": true, |
| 690 "type": "boolean", |
| 691 "description": "If true, returns accessor properties (with g
etter/setter) only; internal properties are not returned either.", |
| 692 "hidden": true |
| 693 }, |
| 694 { |
| 695 "name": "generatePreview", |
| 696 "type": "boolean", |
| 697 "optional": true, |
| 698 "hidden": true, |
| 699 "description": "Whether preview should be generated for the
results." |
| 700 } |
| 701 ], |
| 702 "returns": [ |
| 703 { |
| 704 "name": "result", |
| 705 "type": "array", |
| 706 "items": { |
| 707 "$ref": "PropertyDescriptor" |
| 708 }, |
| 709 "description": "Object properties." |
| 710 }, |
| 711 { |
| 712 "name": "internalProperties", |
| 713 "optional": true, |
| 714 "type": "array", |
| 715 "items": { |
| 716 "$ref": "InternalPropertyDescriptor" |
| 717 }, |
| 718 "description": "Internal object properties (only of the elem
ent itself).", |
| 719 "hidden": true |
| 720 }, |
| 721 { |
| 722 "name": "exceptionDetails", |
| 723 "$ref": "ExceptionDetails", |
| 724 "optional": true, |
| 725 "hidden": true, |
| 726 "description": "Exception details." |
| 727 } |
| 728 ], |
| 729 "description": "Returns properties of a given object. Object group o
f the result is inherited from the target object." |
| 730 }, |
| 731 { |
| 732 "name": "releaseObject", |
| 733 "parameters": [ |
| 734 { |
| 735 "name": "objectId", |
| 736 "$ref": "RemoteObjectId", |
| 737 "description": "Identifier of the object to release." |
| 738 } |
| 739 ], |
| 740 "description": "Releases remote object with given id." |
| 741 }, |
| 742 { |
| 743 "name": "releaseObjectGroup", |
| 744 "parameters": [ |
| 745 { |
| 746 "name": "objectGroup", |
| 747 "type": "string", |
| 748 "description": "Symbolic object group name." |
| 749 } |
| 750 ], |
| 751 "description": "Releases all remote objects that belong to a given g
roup." |
| 752 }, |
| 753 { |
| 754 "name": "run", |
| 755 "hidden": true, |
| 756 "description": "Tells inspected instance(worker or page) that it can
run in case it was started paused." |
| 757 }, |
| 758 { |
| 759 "name": "enable", |
| 760 "description": "Enables reporting of execution contexts creation by
means of <code>executionContextCreated</code> event. When the reporting gets ena
bled the event will be sent immediately for each existing execution context." |
| 761 }, |
| 762 { |
| 763 "name": "disable", |
| 764 "hidden": true, |
| 765 "description": "Disables reporting of execution contexts creation." |
| 766 }, |
| 767 { |
| 768 "name": "setCustomObjectFormatterEnabled", |
| 769 "parameters": [ |
| 770 { |
| 771 "name": "enabled", |
| 772 "type": "boolean" |
| 773 } |
| 774 ], |
| 775 "hidden": true |
| 776 }, |
| 777 { |
| 778 "name": "compileScript", |
| 779 "hidden": true, |
| 780 "parameters": [ |
| 781 { |
| 782 "name": "expression", |
| 783 "type": "string", |
| 784 "description": "Expression to compile." |
| 785 }, |
| 786 { |
| 787 "name": "sourceURL", |
| 788 "type": "string", |
| 789 "description": "Source url to be set for the script." |
| 790 }, |
| 791 { |
| 792 "name": "persistScript", |
| 793 "type": "boolean", |
| 794 "description": "Specifies whether the compiled script should
be persisted." |
| 795 }, |
| 796 { |
| 797 "name": "executionContextId", |
| 798 "$ref": "ExecutionContextId", |
| 799 "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." |
| 800 } |
| 801 ], |
| 802 "returns": [ |
| 803 { |
| 804 "name": "scriptId", |
| 805 "$ref": "ScriptId", |
| 806 "optional": true, |
| 807 "description": "Id of the script." |
| 808 }, |
| 809 { |
| 810 "name": "exceptionDetails", |
| 811 "$ref": "ExceptionDetails", |
| 812 "optional": true, |
| 813 "description": "Exception details." |
| 814 } |
| 815 ], |
| 816 "description": "Compiles expression." |
| 817 }, |
| 818 { |
| 819 "name": "runScript", |
| 820 "hidden": true, |
| 821 "parameters": [ |
| 822 { |
| 823 "name": "scriptId", |
| 824 "$ref": "ScriptId", |
| 825 "description": "Id of the script to run." |
| 826 }, |
| 827 { |
| 828 "name": "executionContextId", |
| 829 "$ref": "ExecutionContextId", |
| 830 "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." |
| 831 }, |
| 832 { |
| 833 "name": "objectGroup", |
| 834 "type": "string", |
| 835 "optional": true, |
| 836 "description": "Symbolic group name that can be used to rele
ase multiple objects." |
| 837 }, |
| 838 { |
| 839 "name": "doNotPauseOnExceptionsAndMuteConsole", |
| 840 "type": "boolean", |
| 841 "optional": true, |
| 842 "description": "Specifies whether script run should stop on
exceptions and mute console. Overrides setPauseOnException state." |
| 843 }, |
| 844 { |
| 845 "name": "includeCommandLineAPI", |
| 846 "type": "boolean", |
| 847 "optional": true, |
| 848 "description": "Determines whether Command Line API should b
e available during the evaluation." |
| 849 } |
| 850 ], |
| 851 "returns": [ |
| 852 { |
| 853 "name": "result", |
| 854 "$ref": "RemoteObject", |
| 855 "description": "Run result." |
| 856 }, |
| 857 { |
| 858 "name": "exceptionDetails", |
| 859 "$ref": "ExceptionDetails", |
| 860 "optional": true, |
| 861 "description": "Exception details." |
| 862 } |
| 863 ], |
| 864 "description": "Runs script with given id in a given context." |
| 865 } |
| 866 ], |
| 867 "events": [ |
| 868 { |
| 869 "name": "executionContextCreated", |
| 870 "parameters": [ |
| 871 { |
| 872 "name": "context", |
| 873 "$ref": "ExecutionContextDescription", |
| 874 "description": "A newly created execution contex." |
| 875 } |
| 876 ], |
| 877 "description": "Issued when new execution context is created." |
| 878 }, |
| 879 { |
| 880 "name": "executionContextDestroyed", |
| 881 "parameters": [ |
| 882 { |
| 883 "name": "executionContextId", |
| 884 "$ref": "ExecutionContextId", |
| 885 "description": "Id of the destroyed context" |
| 886 } |
| 887 ], |
| 888 "description": "Issued when execution context is destroyed." |
| 889 }, |
| 890 { |
| 891 "name": "executionContextsCleared", |
| 892 "description": "Issued when all executionContexts were cleared in br
owser" |
| 893 }, |
| 894 { |
| 895 "name": "inspectRequested", |
| 896 "parameters": [ |
| 897 { |
| 898 "name": "object", |
| 899 "$ref": "RemoteObject" |
| 900 }, |
| 901 { |
| 902 "name": "hints", |
| 903 "type": "object" |
| 904 } |
| 905 ], |
| 906 "hidden": true |
| 907 } |
| 908 ] |
| 909 } |
OLD | NEW |