Skip to content

Commit 0fd00aa

Browse files
committed
🔧 Update protocols as of 2019-08-03
1 parent b16613c commit 0fd00aa

File tree

4 files changed

+860
-35
lines changed

4 files changed

+860
-35
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* [Dependencies] Switch from `Poison` -> `Jason`.
66
* [Internal] Adds a `mix fetch_cdp_protocol` which updates all protocol files.
7+
* [Protocol] Update `1-3` and `tot` protocols as of `2019-08-03`
78

89
### Bug Fixes
910

lib/mix/tasks/fetch_cdp_protocol.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defmodule Mix.Tasks.FetchCdpProtocol do
1717
},
1818
"1-3" => %{
1919
url:
20-
"https://github.com/ChromeDevTools/debugger-protocol-viewer/blob/master/_data/1-3/protocol.json",
20+
"https://raw.githubusercontent.com/ChromeDevTools/debugger-protocol-viewer/master/_data/1-3/protocol.json",
2121
output: "priv/1-3/protocol.json"
2222
},
2323
"tot" => %{

priv/1-3/protocol.json

Lines changed: 90 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,12 @@
26032603
"optional": true,
26042604
"type": "boolean"
26052605
},
2606+
{
2607+
"name": "fromPrefetchCache",
2608+
"description": "Specifies that the request was served from the prefetch cache.",
2609+
"optional": true,
2610+
"type": "boolean"
2611+
},
26062612
{
26072613
"name": "encodedDataLength",
26082614
"description": "Total number of bytes received for this request so far.",
@@ -3588,6 +3594,7 @@
35883594
"dependencies": [
35893595
"Debugger",
35903596
"DOM",
3597+
"IO",
35913598
"Network",
35923599
"Runtime"
35933600
],
@@ -3626,7 +3633,14 @@
36263633
},
36273634
{
36283635
"name": "url",
3629-
"description": "Frame document's URL.",
3636+
"description": "Frame document's URL without fragment.",
3637+
"type": "string"
3638+
},
3639+
{
3640+
"name": "urlFragment",
3641+
"description": "Frame document's URL fragment including the '#'.",
3642+
"experimental": true,
3643+
"optional": true,
36303644
"type": "string"
36313645
},
36323646
{
@@ -3641,7 +3655,7 @@
36413655
},
36423656
{
36433657
"name": "unreachableUrl",
3644-
"description": "If the frame failed to load, this contains the URL that could not be loaded.",
3658+
"description": "If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.",
36453659
"experimental": true,
36463660
"optional": true,
36473661
"type": "string"
@@ -4228,13 +4242,31 @@
42284242
"description": "Whether or not to prefer page size as defined by css. Defaults to false,\nin which case the content will be scaled to fit the paper size.",
42294243
"optional": true,
42304244
"type": "boolean"
4245+
},
4246+
{
4247+
"name": "transferMode",
4248+
"description": "return as stream",
4249+
"experimental": true,
4250+
"optional": true,
4251+
"type": "string",
4252+
"enum": [
4253+
"ReturnAsBase64",
4254+
"ReturnAsStream"
4255+
]
42314256
}
42324257
],
42334258
"returns": [
42344259
{
42354260
"name": "data",
4236-
"description": "Base64-encoded pdf data.",
4261+
"description": "Base64-encoded pdf data. Empty if |returnAsStream| is specified.",
42374262
"type": "string"
4263+
},
4264+
{
4265+
"name": "stream",
4266+
"description": "A handle of the stream that holds resulting PDF data.",
4267+
"experimental": true,
4268+
"optional": true,
4269+
"$ref": "IO.StreamHandle"
42384270
}
42394271
]
42404272
},
@@ -4297,6 +4329,20 @@
42974329
}
42984330
]
42994331
},
4332+
{
4333+
"name": "fileChooserOpened",
4334+
"description": "Emitted only when `page.interceptFileChooser` is enabled.",
4335+
"parameters": [
4336+
{
4337+
"name": "mode",
4338+
"type": "string",
4339+
"enum": [
4340+
"selectSingle",
4341+
"selectMultiple"
4342+
]
4343+
}
4344+
]
4345+
},
43004346
{
43014347
"name": "frameAttached",
43024348
"description": "Fired when frame has been attached to its parent.",
@@ -4641,6 +4687,7 @@
46414687
{
46424688
"name": "schemeIsCryptographic",
46434689
"description": "True if the page was loaded over cryptographic transport such as HTTPS.",
4690+
"deprecated": true,
46444691
"type": "boolean"
46454692
},
46464693
{
@@ -4804,6 +4851,18 @@
48044851
"experimental": true,
48054852
"optional": true,
48064853
"type": "boolean"
4854+
},
4855+
{
4856+
"name": "newWindow",
4857+
"description": "Whether to create a new Window or Tab (chrome-only, false by default).",
4858+
"optional": true,
4859+
"type": "boolean"
4860+
},
4861+
{
4862+
"name": "background",
4863+
"description": "Whether to create the target in background or foreground (chrome-only,\nfalse by default).",
4864+
"optional": true,
4865+
"type": "boolean"
48074866
}
48084867
],
48094868
"returns": [
@@ -5444,6 +5503,28 @@
54445503
}
54455504
]
54465505
},
5506+
{
5507+
"name": "setInstrumentationBreakpoint",
5508+
"description": "Sets instrumentation breakpoint.",
5509+
"parameters": [
5510+
{
5511+
"name": "instrumentation",
5512+
"description": "Instrumentation name.",
5513+
"type": "string",
5514+
"enum": [
5515+
"beforeScriptExecution",
5516+
"beforeScriptWithSourceMapExecution"
5517+
]
5518+
}
5519+
],
5520+
"returns": [
5521+
{
5522+
"name": "breakpointId",
5523+
"description": "Id of the created breakpoint for further reference.",
5524+
"$ref": "BreakpointId"
5525+
}
5526+
]
5527+
},
54475528
{
54485529
"name": "setBreakpointByUrl",
54495530
"description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this\ncommand is issued, all existing parsed scripts will have breakpoints resolved and returned in\n`locations` property. Further matching script parsing will result in subsequent\n`breakpointResolved` events issued. This logical breakpoint will survive page reloads.",
@@ -5678,16 +5759,17 @@
56785759
"description": "Pause reason.",
56795760
"type": "string",
56805761
"enum": [
5681-
"XHR",
5762+
"ambiguous",
5763+
"assert",
5764+
"debugCommand",
56825765
"DOM",
56835766
"EventListener",
56845767
"exception",
5685-
"assert",
5686-
"debugCommand",
5687-
"promiseRejection",
5768+
"instrumentation",
56885769
"OOM",
56895770
"other",
5690-
"ambiguous"
5771+
"promiseRejection",
5772+
"XHR"
56915773
]
56925774
},
56935775
{

0 commit comments

Comments
 (0)