|
2603 | 2603 | "optional": true, |
2604 | 2604 | "type": "boolean" |
2605 | 2605 | }, |
| 2606 | + { |
| 2607 | + "name": "fromPrefetchCache", |
| 2608 | + "description": "Specifies that the request was served from the prefetch cache.", |
| 2609 | + "optional": true, |
| 2610 | + "type": "boolean" |
| 2611 | + }, |
2606 | 2612 | { |
2607 | 2613 | "name": "encodedDataLength", |
2608 | 2614 | "description": "Total number of bytes received for this request so far.", |
|
3588 | 3594 | "dependencies": [ |
3589 | 3595 | "Debugger", |
3590 | 3596 | "DOM", |
| 3597 | + "IO", |
3591 | 3598 | "Network", |
3592 | 3599 | "Runtime" |
3593 | 3600 | ], |
|
3626 | 3633 | }, |
3627 | 3634 | { |
3628 | 3635 | "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, |
3630 | 3644 | "type": "string" |
3631 | 3645 | }, |
3632 | 3646 | { |
|
3641 | 3655 | }, |
3642 | 3656 | { |
3643 | 3657 | "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.", |
3645 | 3659 | "experimental": true, |
3646 | 3660 | "optional": true, |
3647 | 3661 | "type": "string" |
|
4228 | 4242 | "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.", |
4229 | 4243 | "optional": true, |
4230 | 4244 | "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 | + ] |
4231 | 4256 | } |
4232 | 4257 | ], |
4233 | 4258 | "returns": [ |
4234 | 4259 | { |
4235 | 4260 | "name": "data", |
4236 | | - "description": "Base64-encoded pdf data.", |
| 4261 | + "description": "Base64-encoded pdf data. Empty if |returnAsStream| is specified.", |
4237 | 4262 | "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" |
4238 | 4270 | } |
4239 | 4271 | ] |
4240 | 4272 | }, |
|
4297 | 4329 | } |
4298 | 4330 | ] |
4299 | 4331 | }, |
| 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 | + }, |
4300 | 4346 | { |
4301 | 4347 | "name": "frameAttached", |
4302 | 4348 | "description": "Fired when frame has been attached to its parent.", |
|
4641 | 4687 | { |
4642 | 4688 | "name": "schemeIsCryptographic", |
4643 | 4689 | "description": "True if the page was loaded over cryptographic transport such as HTTPS.", |
| 4690 | + "deprecated": true, |
4644 | 4691 | "type": "boolean" |
4645 | 4692 | }, |
4646 | 4693 | { |
|
4804 | 4851 | "experimental": true, |
4805 | 4852 | "optional": true, |
4806 | 4853 | "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" |
4807 | 4866 | } |
4808 | 4867 | ], |
4809 | 4868 | "returns": [ |
|
5444 | 5503 | } |
5445 | 5504 | ] |
5446 | 5505 | }, |
| 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 | + }, |
5447 | 5528 | { |
5448 | 5529 | "name": "setBreakpointByUrl", |
5449 | 5530 | "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 | 5759 | "description": "Pause reason.", |
5679 | 5760 | "type": "string", |
5680 | 5761 | "enum": [ |
5681 | | - "XHR", |
| 5762 | + "ambiguous", |
| 5763 | + "assert", |
| 5764 | + "debugCommand", |
5682 | 5765 | "DOM", |
5683 | 5766 | "EventListener", |
5684 | 5767 | "exception", |
5685 | | - "assert", |
5686 | | - "debugCommand", |
5687 | | - "promiseRejection", |
| 5768 | + "instrumentation", |
5688 | 5769 | "OOM", |
5689 | 5770 | "other", |
5690 | | - "ambiguous" |
| 5771 | + "promiseRejection", |
| 5772 | + "XHR" |
5691 | 5773 | ] |
5692 | 5774 | }, |
5693 | 5775 | { |
|
0 commit comments