Skip to content
Snippets Groups Projects
protocol.json 297 KiB
Newer Older
  • Learn to ignore specific revisions
  • 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
    {
        "version": { "major": "1", "minor": "1" },
        "domains": [{
            "domain": "Inspector",
            "hidden": true,
            "types": [],
            "commands": [
                {
                    "name": "enable",
                    "description": "Enables inspector domain notifications."
                },
                {
                    "name": "disable",
                    "description": "Disables inspector domain notifications."
                }
            ],
            "events": [
                {
                    "name": "evaluateForTestInFrontend",
                    "parameters": [
                        { "name": "testCallId", "type": "integer" },
                        { "name": "script", "type": "string" }
                    ]
                },
                {
                    "name": "inspect",
                    "parameters": [
                        { "name": "object", "$ref": "Runtime.RemoteObject" },
                        { "name": "hints", "type": "object" }
                    ]
                },
                {
                    "name": "detached",
                    "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.",
                    "parameters": [
                        { "name": "reason", "type": "string", "description": "The reason why connection has been terminated." }
                    ],
                    "handlers": ["browser"]
                },
                {
                    "name": "targetCrashed",
                    "description": "Fired when debugging target has crashed",
                    "handlers": ["browser"]
                }
            ]
        },
        {
            "domain": "Memory",
            "hidden": true,
            "commands": [
                {
                    "name": "getDOMCounters",
                    "returns": [
                        { "name": "documents", "type": "integer" },
                        { "name": "nodes", "type": "integer" },
                        { "name": "jsEventListeners", "type": "integer" }
                    ]
                }
            ]
        },
        {
            "domain": "Page",
            "description": "Actions and events related to the inspected page belong to the page domain.",
            "types": [
                {
                    "id": "ResourceType",
                    "type": "string",
                    "enum": ["Document", "Stylesheet", "Image", "Media", "Font", "Script", "TextTrack", "XHR", "WebSocket", "Other"],
                    "description": "Resource type as it was perceived by the rendering engine."
                },
                {
                  "id": "FrameId",
                  "type": "string",
                  "description": "Unique frame identifier."
                },
                {
                    "id": "Frame",
                    "type": "object",
                    "description": "Information about the Frame on the page.",
                    "properties": [
                        { "name": "id", "type": "string", "description": "Frame unique identifier." },
                        { "name": "parentId", "type": "string", "optional": true, "description": "Parent frame identifier." },
                        { "name": "loaderId", "$ref": "Network.LoaderId", "description": "Identifier of the loader associated with this frame." },
                        { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." },
                        { "name": "url", "type": "string", "description": "Frame document's URL." },
                        { "name": "securityOrigin", "type": "string", "description": "Frame document's security origin." },
                        { "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." }
                    ]
                },
                {
                    "id": "FrameResourceTree",
                    "type": "object",
                    "description": "Information about the Frame hierarchy along with their cached resources.",
                    "properties": [
                        { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." },
                        { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
                        { "name": "resources", "type": "array",
                            "items": {
                                "type": "object",
                                "properties": [
                                    { "name": "url", "type": "string", "description": "Resource URL." },
                                    { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." },
                                    { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
                                    { "name": "failed", "type": "boolean", "optional": true, "description": "True if the resource failed to load." },
                                    { "name": "canceled", "type": "boolean", "optional": true, "description": "True if the resource was canceled during loading." }
                                ]
                            },
                            "description": "Information about frame resources."
                        }
                    ],
                    "hidden": true
                },
                {
                    "id": "ScriptIdentifier",
                    "type": "string",
                    "description": "Unique script identifier.",
                    "hidden": true
                },
                {
                    "id": "NavigationEntry",
                    "type": "object",
                    "description": "Navigation history entry.",
                    "properties": [
                      { "name": "id", "type": "integer", "description": "Unique id of the navigation history entry." },
                      { "name": "url", "type": "string", "description": "URL of the navigation history entry." },
                      { "name": "title", "type": "string", "description": "Title of the navigation history entry." }
                    ],
                    "hidden": true
                },
                {
                    "id": "ScreencastFrameMetadata",
                    "type": "object",
                    "description": "Screencast frame metadata",
                    "properties": [
                        { "name": "offsetTop", "type": "number", "hidden": true, "description": "Top offset in DIP." },
                        { "name": "pageScaleFactor", "type": "number", "hidden": true, "description": "Page scale factor." },
                        { "name": "deviceWidth", "type": "number", "hidden": true, "description": "Device screen width in DIP." },
                        { "name": "deviceHeight", "type": "number", "hidden": true, "description": "Device screen height in DIP." },
                        { "name": "scrollOffsetX", "type": "number", "hidden": true, "description": "Position of horizontal scroll in CSS pixels." },
                        { "name": "scrollOffsetY", "type": "number", "hidden": true, "description": "Position of vertical scroll in CSS pixels." },
                        { "name": "timestamp", "type": "number", "optional": true, "hidden": true, "description": "Frame swap timestamp." }
                    ],
                    "hidden": true
                }
            ],
            "commands": [
                {
                    "name": "enable",
                    "description": "Enables page domain notifications.",
                    "handlers": ["browser", "renderer"]
                },
                {
                    "name": "disable",
                    "description": "Disables page domain notifications.",
                    "handlers": ["browser", "renderer"]
                },
                {
                    "name": "addScriptToEvaluateOnLoad",
                    "parameters": [
                        { "name": "scriptSource", "type": "string" }
                    ],
                    "returns": [
                        { "name": "identifier", "$ref": "ScriptIdentifier", "description": "Identifier of the added script." }
                    ],
                    "hidden": true
                },
                {
                    "name": "removeScriptToEvaluateOnLoad",
                    "parameters": [
                        { "name": "identifier", "$ref": "ScriptIdentifier" }
                    ],
                    "hidden": true
                },
                {
                    "name": "reload",
                    "parameters": [
                        { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." },
                        { "name": "scriptToEvaluateOnLoad", "type": "string", "optional": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." }
                    ],
                    "description": "Reloads given page optionally ignoring the cache.",
                    "handlers": ["browser", "renderer"]
                },
                {
                    "name": "navigate",
                    "parameters": [
                        { "name": "url", "type": "string", "description": "URL to navigate the page to." }
                    ],
                    "returns": [
                        { "name": "frameId", "$ref": "FrameId", "hidden": true, "description": "Frame id that will be navigated." }
                    ],
                    "description": "Navigates current page to the given URL.",
                    "handlers": ["browser", "renderer"]
                },
                {
                  "name": "getNavigationHistory",
                  "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." }
                  ],
                  "description": "Returns navigation history for the current page.",
                  "hidden": true,
                  "handlers": ["browser"]
                },
                {
                  "name": "navigateToHistoryEntry",
                  "parameters": [
                      { "name": "entryId", "type": "integer", "description": "Unique id of the entry to navigate to." }
                  ],
                  "description": "Navigates current page to the given history entry.",
                  "hidden": true,
                  "handlers": ["browser"]
                },
                {
                    "name": "getCookies",
                    "returns": [
                        { "name": "cookies", "type": "array", "items": { "$ref": "Network.Cookie" }, "description": "Array of cookie objects." }
                    ],
                    "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
                    "handlers": ["browser"],
                    "async": true,
                    "hidden": true,
                    "redirect": "Network"
                },
                {
                    "name": "deleteCookie",
                    "parameters": [
                        { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." },
                        { "name": "url", "type": "string", "description": "URL to match cooke domain and path." }
                    ],
                    "description": "Deletes browser cookie with given name, domain and path.",
                    "handlers": ["browser"],
                    "async": true,
                    "hidden": true,
                    "redirect": "Network"
                },
                {
                    "name": "getResourceTree",
                    "description": "Returns present frame / resource tree structure.",
                    "returns": [
                        { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." }
                    ],
                    "hidden": true
                },
                {
                    "name": "getResourceContent",
                    "async": true,
                    "description": "Returns content of the given resource.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Frame id to get resource for." },
                        { "name": "url", "type": "string", "description": "URL of the resource to get content for." }
                    ],
                    "returns": [
                        { "name": "content", "type": "string", "description": "Resource content." },
                        { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." }
                    ],
                    "hidden": true
                },
                {
                    "name": "searchInResource",
                    "description": "Searches for given string in resource content.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Frame id for resource to search in." },
                        { "name": "url", "type": "string", "description": "URL of the resource to search in." },
                        { "name": "query", "type": "string", "description": "String to search for."  },
                        { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
                        { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
                    ],
                    "returns": [
                        { "name": "result", "type": "array", "items": { "$ref": "Debugger.SearchMatch" }, "description": "List of search matches." }
                    ],
                    "hidden": true
                },
                {
                    "name": "setDocumentContent",
                    "description": "Sets given markup as the document's HTML.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Frame id to set HTML for." },
                        { "name": "html", "type": "string", "description": "HTML content to set."  }
                    ],
                    "hidden": true
                },
                {
                    "name": "setDeviceMetricsOverride",
                    "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
                    "parameters": [
                        { "name": "width", "type": "integer", "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
                        { "name": "height", "type": "integer", "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
                        { "name": "deviceScaleFactor", "type": "number", "description": "Overriding device scale factor value. 0 disables the override." },
                        { "name": "mobile", "type": "boolean", "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more." },
                        { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." },
                        { "name": "scale", "type": "number", "optional": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
                        { "name": "offsetX", "type": "number", "optional": true, "description": "X offset to shift resulting view image by. Ignored in |fitWindow| mode." },
                        { "name": "offsetY", "type": "number", "optional": true, "description": "Y offset to shift resulting view image by. Ignored in |fitWindow| mode." }
                    ],
                    "handlers": ["browser"],
                    "redirect": "Emulation",
                    "hidden": true
                },
                {
                    "name": "clearDeviceMetricsOverride",
                    "description": "Clears the overriden device metrics.",
                    "handlers": ["browser"],
                    "redirect": "Emulation",
                    "hidden": true
                },
                {
                    "name": "setGeolocationOverride",
                    "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.",
                    "parameters": [
                        { "name": "latitude", "type": "number", "optional": true, "description": "Mock latitude"},
                        { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"},
                        { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"}
                    ],
                    "redirect": "Emulation",
                    "handlers": ["browser"]
                },
                {
                    "name": "clearGeolocationOverride",
                    "description": "Clears the overriden Geolocation Position and Error.",
                    "redirect": "Emulation",
                    "handlers": ["browser"]
                },
                {
                    "name": "setDeviceOrientationOverride",
                    "description": "Overrides the Device Orientation.",
                    "parameters": [
                        { "name": "alpha", "type": "number", "description": "Mock alpha"},
                        { "name": "beta", "type": "number", "description": "Mock beta"},
                        { "name": "gamma", "type": "number", "description": "Mock gamma"}
                    ],
                    "redirect": "DeviceOrientation",
                    "hidden": true
                },
                {
                    "name": "clearDeviceOrientationOverride",
                    "description": "Clears the overridden Device Orientation.",
                    "redirect": "DeviceOrientation",
                    "hidden": true
                },
                {
                    "name": "setTouchEmulationEnabled",
                    "parameters": [
                        { "name": "enabled", "type": "boolean", "description": "Whether the touch event emulation should be enabled." },
                        { "name": "configuration", "type": "string", "enum": ["mobile", "desktop"], "optional": true, "description": "Touch/gesture events configuration. Default: current platform." }
                    ],
                    "description": "Toggles mouse event-based touch event emulation.",
                    "hidden": true,
                    "redirect": "Emulation",
                    "handlers": ["browser", "renderer"]
                },
                {
                    "name": "captureScreenshot",
                    "async": true,
                    "description": "Capture page screenshot.",
                    "parameters": [],
                    "returns": [
                        { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." }
                    ],
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "canScreencast",
                    "description": "Tells whether screencast is supported.",
                    "returns": [
                      { "name": "result", "type": "boolean", "description": "True if screencast is supported." }
                    ],
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "startScreencast",
                    "description": "Starts sending each frame using the <code>screencastFrame</code> event.",
                    "parameters": [
                        { "name": "format", "type": "string", "optional": true, "enum": ["jpeg", "png"], "description": "Image compression format." },
                        { "name": "quality", "type": "integer", "optional": true, "description": "Compression quality from range [0..100]." },
                        { "name": "maxWidth", "type": "integer", "optional": true, "description": "Maximum screenshot width." },
                        { "name": "maxHeight", "type": "integer", "optional": true, "description": "Maximum screenshot height." }
                    ],
                    "hidden": true,
                    "handlers": ["browser", "renderer"]
                },
                {
                    "name": "stopScreencast",
                    "description": "Stops sending each frame in the <code>screencastFrame</code>.",
                    "hidden": true,
                    "handlers": ["browser", "renderer"]
                },
                {
                    "name": "screencastFrameAck",
                    "description": "Acknowledges that a screencast frame has been received by the frontend.",
                    "parameters": [
                        { "name": "frameNumber", "type": "integer", "description": "Frame number." }
                    ],
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "handleJavaScriptDialog",
                    "description": "Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).",
                    "parameters": [
                        { "name": "accept", "type": "boolean", "description": "Whether to accept or dismiss the dialog." },
                        { "name": "promptText", "type": "string", "optional": true, "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog." }
                    ],
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "setShowViewportSizeOnResize",
                    "description": "Paints viewport size upon main frame resize.",
                    "parameters": [
                        { "name": "show", "type": "boolean", "description": "Whether to paint size or not." },
                        { "name": "showGrid", "type": "boolean", "optional": true, "description": "Whether to paint grid as well." }
                    ],
                    "hidden": true
                },
                {
                    "name": "setColorPickerEnabled",
                    "parameters": [
                        { "name": "enabled", "type": "boolean", "description": "Shows / hides color picker" }
                    ],
                    "description": "Shows / hides color picker",
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "setOverlayMessage",
                    "parameters": [
                        { "name": "message", "type": "string", "optional": true, "description": "Overlay message to display when paused in debugger." }
                    ],
                    "hidden": true,
                    "description": "Sets overlay message."
                }
            ],
            "events": [
                {
                    "name": "domContentEventFired",
                    "parameters": [
                        { "name": "timestamp", "type": "number" }
                    ]
                },
                {
                    "name": "loadEventFired",
                    "parameters": [
                        { "name": "timestamp", "type": "number" }
                    ]
                },
                {
                    "name": "frameAttached",
                    "description": "Fired when frame has been attached to its parent.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has been attached." },
                        { "name": "parentFrameId", "$ref": "FrameId", "description": "Parent frame identifier." }
                    ]
                },
                {
                    "name": "frameNavigated",
                    "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
                    "parameters": [
                        { "name": "frame", "$ref": "Frame", "description": "Frame object." }
                    ]
                },
                {
                    "name": "frameDetached",
                    "description": "Fired when frame has been detached from its parent.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has been detached." }
                    ]
                },
                {
                    "name": "frameStartedLoading",
                    "description": "Fired when frame has started loading.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has started loading." }
                    ],
                    "hidden": true
                },
                {
                    "name": "frameStoppedLoading",
                    "description": "Fired when frame has stopped loading.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has stopped loading." }
                    ],
                    "hidden": true
                },
                {
                    "name": "frameScheduledNavigation",
                    "description": "Fired when frame schedules a potential navigation.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has scheduled a navigation." },
                        { "name": "delay", "type": "number", "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start." }
                    ],
                    "hidden": true
                },
                {
                    "name": "frameClearedScheduledNavigation",
                    "description": "Fired when frame no longer has a scheduled navigation.",
                    "parameters": [
                        { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has cleared its scheduled navigation." }
                    ],
                    "hidden": true
                },
                {
                    "name": "frameResized",
                    "hidden": true
                },
                {
                    "name": "javascriptDialogOpening",
                    "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.",
                    "parameters": [
                        { "name": "message", "type": "string", "description": "Message that will be displayed by the dialog." }
                    ],
                    "hidden": true
                },
                {
                    "name": "javascriptDialogClosed",
                    "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.",
                    "hidden": true
                },
                {
                    "name": "screencastFrame",
                    "description": "Compressed image data requested by the <code>startScreencast</code>.",
                    "parameters": [
                        { "name": "data", "type": "string", "description": "Base64-encoded compressed image." },
                        { "name": "metadata", "$ref": "ScreencastFrameMetadata", "description": "Screencast frame metadata."},
                        { "name": "frameNumber", "type": "integer", "optional": true, "description": "Frame number."}
                    ],
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "screencastVisibilityChanged",
                    "description": "Fired when the page with currently enabled screencast was shown or hidden </code>.",
                    "parameters": [
                        { "name": "visible", "type": "boolean", "description": "True if the page is visible." }
                    ],
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "colorPicked",
                    "description": "Fired when a color has been picked.",
                    "parameters": [
                        { "name": "color", "$ref": "DOM.RGBA", "description": "RGBA of the picked color." }
                    ],
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "interstitialShown",
                    "description": "Fired when interstitial page was shown",
                    "hidden": true,
                    "handlers": ["browser"]
                },
                {
                    "name": "interstitialHidden",
                    "description": "Fired when interstitial page was hidden",
                    "hidden": true,
                    "handlers": ["browser"]
                }
            ]
        },
        {
            "domain": "Rendering",
            "description": "This domain allows to control rendering of the page.",
            "hidden": true,
            "commands": [
                {
                    "name": "setShowPaintRects",
                    "description": "Requests that backend shows paint rectangles",
                    "parameters": [
                        { "name": "result", "type": "boolean", "description": "True for showing paint rectangles" }
                    ]
                },
                {
                    "name": "setShowDebugBorders",
                    "description": "Requests that backend shows debug borders on layers",
                    "parameters": [
                        { "name": "show", "type": "boolean", "description": "True for showing debug borders" }
                    ]
                },
                {
                    "name": "setShowFPSCounter",
                    "description": "Requests that backend shows the FPS counter",
                    "parameters": [
                        { "name": "show", "type": "boolean", "description": "True for showing the FPS counter" }
                    ]
                },
                {
                    "name": "setContinuousPaintingEnabled",
                    "description": "Requests that backend enables continuous painting",
                    "parameters": [
                        { "name": "enabled", "type": "boolean", "description": "True for enabling cointinuous painting" }
                    ]
                },
                {
                    "name": "setShowScrollBottleneckRects",
                    "description": "Requests that backend shows scroll bottleneck rects",
                    "parameters": [
                        { "name": "show", "type": "boolean", "description": "True for showing scroll bottleneck rects" }
                    ]
                }
            ]
        },
        {
            "domain": "Emulation",
            "description": "This domain emulates different environments for the page.",
            "hidden": true,
            "types": [
                {
                    "id": "Viewport",
                    "type": "object",
                    "description": "Visible page viewport",
                    "properties": [
                        { "name": "scrollX", "type": "number", "description": "X scroll offset in CSS pixels." },
                        { "name": "scrollY", "type": "number", "description": "Y scroll offset in CSS pixels." },
                        { "name": "contentsWidth", "type": "number", "description": "Contents width in CSS pixels." },
                        { "name": "contentsHeight", "type": "number", "description": "Contents height in CSS pixels." },
                        { "name": "pageScaleFactor", "type": "number", "description": "Page scale factor." },
                        { "name": "minimumPageScaleFactor", "type": "number", "description": "Minimum page scale factor." },
                        { "name": "maximumPageScaleFactor", "type": "number", "description": "Maximum page scale factor." }
                    ]
                }
            ],
            "commands": [
                {
                    "name": "setDeviceMetricsOverride",
                    "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
                    "parameters": [
                        { "name": "width", "type": "integer", "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
                        { "name": "height", "type": "integer", "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
                        { "name": "deviceScaleFactor", "type": "number", "description": "Overriding device scale factor value. 0 disables the override." },
                        { "name": "mobile", "type": "boolean", "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more." },
                        { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." },
                        { "name": "scale", "type": "number", "optional": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
                        { "name": "offsetX", "type": "number", "optional": true, "description": "X offset to shift resulting view image by. Ignored in |fitWindow| mode." },
                        { "name": "offsetY", "type": "number", "optional": true, "description": "Y offset to shift resulting view image by. Ignored in |fitWindow| mode." }
                    ],
                    "handlers": ["browser"]
                },
                {
                    "name": "clearDeviceMetricsOverride",
                    "description": "Clears the overriden device metrics.",
                    "handlers": ["browser"]
                },
                {
                    "name": "resetScrollAndPageScaleFactor",
                    "description": "Requests that scroll offsets and page scale factor are reset to initial values."
                },
                {
                    "name": "setPageScaleFactor",
                    "description": "Sets a specified page scale factor.",
                    "parameters": [
                        { "name": "pageScaleFactor", "type": "number", "description": "Page scale factor." }
                    ]
                },
                {
                    "name": "setScriptExecutionDisabled",
                    "description": "Switches script execution in the page.",
                    "parameters": [
                        { "name": "value", "type": "boolean", "description": "Whether script execution should be disabled in the page." }
                    ]
                },
                {
                    "name": "setGeolocationOverride",
                    "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.",
                    "parameters": [
                        { "name": "latitude", "type": "number", "optional": true, "description": "Mock latitude"},
                        { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"},
                        { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"}
                    ],
                    "handlers": ["browser"]
                },
                {
                    "name": "clearGeolocationOverride",
                    "description": "Clears the overriden Geolocation Position and Error.",
                    "handlers": ["browser"]
                },
                {
                    "name": "setTouchEmulationEnabled",
                    "parameters": [
                        { "name": "enabled", "type": "boolean", "description": "Whether the touch event emulation should be enabled." },
                        { "name": "configuration", "type": "string", "enum": ["mobile", "desktop"], "optional": true, "description": "Touch/gesture events configuration. Default: current platform." }
                    ],
                    "description": "Toggles mouse event-based touch event emulation.",
                    "handlers": ["browser", "renderer"]
                },
                {
                    "name": "setEmulatedMedia",
                    "parameters": [
                        { "name": "media", "type": "string", "description": "Media type to emulate. Empty string disables the override." }
                    ],
                    "description": "Emulates the given media for CSS media queries."
                },
                {
                    "name": "canEmulate",
                    "description": "Tells whether emulation is supported.",
                    "returns": [
                        { "name": "result", "type": "boolean", "description": "True if emulation is supported." }
                    ],
                    "handlers": ["browser"]
                }
            ],
            "events": [
                {
                    "name": "viewportChanged",
                    "description": "Fired when a visible page viewport has changed. Only fired when device metrics are overridden.",
                    "parameters": [
                        { "name": "viewport", "$ref": "Viewport", "description": "Viewport description." }
                    ]
                }
            ]
        },
        {
            "domain": "Runtime",
            "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 be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
            "types": [
                {
                    "id": "RemoteObjectId",
                    "type": "string",
                    "description": "Unique object identifier."
                },
                {
                    "id": "RemoteObject",
                    "type": "object",
                    "description": "Mirror object referencing original JavaScript object.",
                    "properties": [
                        { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." },
                        { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for <code>object</code> type values only." },
                        { "name": "className", "type": "string", "optional": true, "description": "Object class (constructor) name. Specified for <code>object</code> type values only." },
                        { "name": "value", "type": "any", "optional": true, "description": "Remote object value in case of primitive values or JSON values (if it was requested), or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." },
                        { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." },
                        { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Unique object identifier (for non-primitive values)." },
                        { "name": "preview", "$ref": "ObjectPreview", "optional": true, "description": "Preview containing abbreviated property values. Specified for <code>object</code> type values only.", "hidden": true },
                        { "name": "customPreview", "$ref": "CustomPreview", "optional": true, "hidden": true}
                    ]
                },
                {   "id": "CustomPreview",
                    "type": "object",
                    "hidden": true,
                    "properties": [
                        { "name": "header", "type": "string"},
                        { "name": "hasBody", "type": "boolean"},
                        {"name": "formatterObjectId", "$ref": "RemoteObjectId"},
                        {"name": "configObjectId", "$ref": "RemoteObjectId", "optional": true}
                    ]
                },
                {
                    "id": "ObjectPreview",
                    "type": "object",
                    "hidden": true,
                    "description": "Object containing abbreviated remote object value.",
                    "properties": [
                        { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." },
                        { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for <code>object</code> type values only." },
                        { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." },
                        { "name": "lossless", "type": "boolean", "description": "Determines whether preview is lossless (contains all information of the original object)." },
                        { "name": "overflow", "type": "boolean", "description": "True iff some of the properties or entries of the original object did not fit." },
                        { "name": "properties", "type": "array", "items": { "$ref": "PropertyPreview" }, "description": "List of the properties." },
                        { "name": "entries", "type": "array", "items": { "$ref": "EntryPreview" }, "optional": true, "description": "List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only." }
                    ]
                },
                {
                    "id": "PropertyPreview",
                    "type": "object",
                    "hidden": true,
                    "properties": [
                        { "name": "name", "type": "string", "description": "Property name." },
                        { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol", "accessor"], "description": "Object type. Accessor means that the property itself is an accessor property." },
                        { "name": "value", "type": "string", "optional": true, "description": "User-friendly property value string." },
                        { "name": "valuePreview", "$ref": "ObjectPreview", "optional": true, "description": "Nested value preview." },
                        { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for <code>object</code> type values only." }
                    ]
                },
                {
                    "id": "EntryPreview",
                    "type": "object",
                    "hidden": true,
                    "properties": [
                        { "name": "key", "$ref": "ObjectPreview", "optional": true, "description": "Preview of the key. Specified for map-like collection entries." },
                        { "name": "value", "$ref": "ObjectPreview", "description": "Preview of the value." }
                    ]
                },
                {
                    "id": "PropertyDescriptor",
                    "type": "object",
                    "description": "Object property descriptor.",
                    "properties": [
                        { "name": "name", "type": "string", "description": "Property name or symbol description." },
                        { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." },
                        { "name": "writable", "type": "boolean", "optional": true, "description": "True if the value associated with the property may be changed (data descriptors only)." },
                        { "name": "get", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only)." },
                        { "name": "set", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only)." },
                        { "name": "configurable", "type": "boolean", "description": "True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object." },
                        { "name": "enumerable", "type": "boolean", "description": "True if this property shows up during enumeration of the properties on the corresponding object." },
                        { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
                        { "name": "isOwn", "optional": true, "type": "boolean", "description": "True if the property is owned for the object.", "hidden": true },
                        { "name": "symbol", "$ref": "RemoteObject", "optional": true, "description": "Property symbol object, if the property is of the <code>symbol</code> type.", "hidden": true }
                    ]
                },
                {
                    "id": "EventListener",
                    "type": "object",
                    "description": "Object event listener.",
                    "properties": [
                        { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." },
                        { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." },
                        { "name": "location", "$ref": "Debugger.Location", "description": "Handler code location." },
                        { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." }
                    ],
                    "hidden": true
                },
                {
                    "id": "InternalPropertyDescriptor",
                    "type": "object",
                    "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.",
                    "properties": [
                        { "name": "name", "type": "string", "description": "Conventional property name." },
                        { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." }
                    ],
                    "hidden": true
                },
                {
                    "id": "CallArgument",
                    "type": "object",
                    "description": "Represents function call argument. Either remote object id <code>objectId</code> or primitive <code>value</code> or neither of (for undefined) them should be specified.",
                    "properties": [
                        { "name": "value", "type": "any", "optional": true, "description": "Primitive value, or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." },
                        { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Remote object handle." },
                        { "name": "type", "optional": true, "hidden": true, "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." }
                    ]
                },
                {
                    "id": "ExecutionContextId",
                    "type": "integer",
                    "description": "Id of an execution context."
                },
                {
                    "id": "ExecutionContextDescription",
                    "type": "object",
                    "description": "Description of an isolated world.",
                    "properties": [
                        { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed." },
                        { "name": "isPageContext", "type": "boolean", "optional": true, "description": "True if this is a context where inpspected web page scripts run. False if it is a content script isolated context.", "hidden": true },
                        { "name": "origin", "type": "string", "description": "Execution context origin.", "hidden": true},
                        { "name": "name", "type": "string", "description": "Human readable name describing given context.", "hidden": true},
                        { "name": "frameId", "type": "string", "description": "Id of the owning frame. May be an empty string if the context is not associated with a frame." }
                    ]
                }
            ],
            "commands": [
                {
                    "name": "evaluate",
                    "parameters": [
                        { "name": "expression", "type": "string", "description": "Expression to evaluate." },
                        { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." },
                        { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation.", "hidden": true },
                        { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true },
                        { "name": "contextId", "$ref": "ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform evaluation. 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 evaluation will be performed in the context of the inspected page." },
                        { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." },
                        { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
                    ],
                    "returns": [
                        { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." },
                        { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
                        { "name": "exceptionDetails", "$ref": "Debugger.ExceptionDetails", "optional": true, "hidden": true, "description": "Exception details."}
                    ],
                    "description": "Evaluates expression on global object."
                },
                {
                    "name": "callFunctionOn",
                    "parameters": [
                        { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." },
                        { "name": "functionDeclaration", "type": "string", "description": "Declaration of the function to call." },
                        { "name": "arguments", "type": "array", "items": { "$ref": "CallArgument", "description": "Call argument." }, "optional": true, "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target object." },
                        { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true },
                        { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object which should be sent by value." },
                        { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
                    ],
                    "returns": [
                        { "name": "result", "$ref": "RemoteObject", "description": "Call result." },
                        { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
                    ],
                    "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
                },
                {
                    "name": "getProperties",
                    "parameters": [
                        { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." },
                        { "name": "ownProperties", "optional": true, "type": "boolean", "description": "If true, returns properties belonging only to the element itself, not to its prototype chain." },
                        { "name": "accessorPropertiesOnly", "optional": true, "type": "boolean", "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.", "hidden": true },
                        { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the results." }
                    ],
                    "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 }
                    ],
                    "description": "Returns properties of a given object. Object group of the result is inherited from the target object."
                },
                {
                    "name": "getEventListeners",
                    "hidden": true,
                    "parameters": [
                        { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return listeners for." },
                        { "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." }
                    ],
                    "description": "Returns event listeners of the given object."
                },
                {
                    "name": "releaseObject",
                    "parameters": [
                        { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." }
                    ],
                    "description": "Releases remote object with given id."
                },
                {
                    "name": "releaseObjectGroup",
                    "parameters": [
                        { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." }
                    ],
                    "description": "Releases all remote objects that belong to a given group."
                },
                {
                    "name": "run",
                    "hidden": true,
                    "description": "Tells inspected instance(worker or page) that it can run in case it was started paused."
                },
                {
                    "name": "enable",
                    "description": "Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context."
                },
                {
                    "name": "disable",
                    "hidden": true,
                    "description": "Disables reporting of execution contexts creation."
                },
                {
                    "name": "isRunRequired",
                    "returns": [
                        { "name": "result", "type": "boolean", "description": "True if the Runtime is in paused on start state." }
                    ],
                    "hidden": true
                },
                {
                    "name": "setCustomObjectFormatterEnabled",
                    "parameters": [
                        {
                            "name": "enabled",
                            "type": "boolean"
                        }
                    ],
                    "hidden": true
                }
            ],
            "events": [
                {
                    "name": "executionContextCreated",
                    "parameters": [
                        { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." }
                    ],
                    "description": "Issued when new execution context is created."
                },
                {
                    "name": "executionContextDestroyed",
                    "parameters": [
                        { "name": "executionContextId", "$ref": "ExecutionContextId", "description": "Id of the destroyed context" }
                    ],
                    "description": "Issued when execution context is destroyed."
                },
                {
                    "name": "executionContextsCleared",
                    "description": "Issued when all executionContexts were cleared in browser"
                }
            ]
        },
        {
            "domain": "Console",
            "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.",
            "types": [
                {
                    "id": "Timestamp",
                    "type": "number",
                    "description": "Number of seconds since epoch.",
                    "hidden": true
                },
                {
                    "id": "ConsoleMessage",
                    "type": "object",
                    "description": "Console message.",
                    "properties": [
                        { "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "console-api", "storage", "appcache", "rendering", "css", "security", "other", "deprecation"], "description": "Message source." },
                        { "name": "level", "type": "string", "enum": ["log", "warning", "error", "debug", "info"], "description": "Message severity." },
                        { "name": "text", "type": "string", "description": "Message text." },
                        { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Console message type." },
                        { "name": "scriptId", "type": "string", "optional": true, "description": "Script ID of the message origin." },
                        { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },