|
252 | 252 | "optional": true,
|
253 | 253 | "$ref": "PseudoType"
|
254 | 254 | },
|
| 255 | + { |
| 256 | + "name": "pseudoIdentifier", |
| 257 | + "description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.", |
| 258 | + "optional": true, |
| 259 | + "type": "string" |
| 260 | + }, |
255 | 261 | {
|
256 | 262 | "name": "shadowRootType",
|
257 | 263 | "description": "Shadow root type.",
|
|
5022 | 5028 | "experimental": true,
|
5023 | 5029 | "$ref": "FrameId"
|
5024 | 5030 | },
|
5025 |
| - { |
5026 |
| - "name": "backendNodeId", |
5027 |
| - "description": "Input node id.", |
5028 |
| - "experimental": true, |
5029 |
| - "$ref": "DOM.BackendNodeId" |
5030 |
| - }, |
5031 | 5031 | {
|
5032 | 5032 | "name": "mode",
|
5033 | 5033 | "description": "Input mode.",
|
|
5036 | 5036 | "selectSingle",
|
5037 | 5037 | "selectMultiple"
|
5038 | 5038 | ]
|
| 5039 | + }, |
| 5040 | + { |
| 5041 | + "name": "backendNodeId", |
| 5042 | + "description": "Input node id. Only present for file choosers opened via an <input type=\"file\"> element.", |
| 5043 | + "experimental": true, |
| 5044 | + "optional": true, |
| 5045 | + "$ref": "DOM.BackendNodeId" |
5039 | 5046 | }
|
5040 | 5047 | ]
|
5041 | 5048 | },
|
|
6784 | 6791 | },
|
6785 | 6792 | {
|
6786 | 6793 | "name": "setScriptSource",
|
6787 |
| - "description": "Edits JavaScript source live.", |
| 6794 | + "description": "Edits JavaScript source live.\n\nIn general, functions that are currently on the stack can not be edited with\na single exception: If the edited function is the top-most stack frame and\nthat is the only activation of that function on the stack. In this case\nthe live edit will be successful and a `Debugger.restartFrame` for the\ntop-most function is automatically triggered.", |
6788 | 6795 | "parameters": [
|
6789 | 6796 | {
|
6790 | 6797 | "name": "scriptId",
|
|
6801 | 6808 | "description": "If true the change will not actually be applied. Dry run may be used to get result\ndescription without actually modifying the code.",
|
6802 | 6809 | "optional": true,
|
6803 | 6810 | "type": "boolean"
|
| 6811 | + }, |
| 6812 | + { |
| 6813 | + "name": "allowTopFrameEditing", |
| 6814 | + "description": "If true, then `scriptSource` is allowed to change the function on top of the stack\nas long as the top-most stack frame is the only activation of that function.", |
| 6815 | + "experimental": true, |
| 6816 | + "optional": true, |
| 6817 | + "type": "boolean" |
6804 | 6818 | }
|
6805 | 6819 | ],
|
6806 | 6820 | "returns": [
|
6807 | 6821 | {
|
6808 | 6822 | "name": "callFrames",
|
6809 | 6823 | "description": "New stack trace in case editing has happened while VM was stopped.",
|
| 6824 | + "deprecated": true, |
6810 | 6825 | "optional": true,
|
6811 | 6826 | "type": "array",
|
6812 | 6827 | "items": {
|
|
6816 | 6831 | {
|
6817 | 6832 | "name": "stackChanged",
|
6818 | 6833 | "description": "Whether current call stack was modified after applying the changes.",
|
| 6834 | + "deprecated": true, |
6819 | 6835 | "optional": true,
|
6820 | 6836 | "type": "boolean"
|
6821 | 6837 | },
|
6822 | 6838 | {
|
6823 | 6839 | "name": "asyncStackTrace",
|
6824 | 6840 | "description": "Async stack trace, if any.",
|
| 6841 | + "deprecated": true, |
6825 | 6842 | "optional": true,
|
6826 | 6843 | "$ref": "Runtime.StackTrace"
|
6827 | 6844 | },
|
6828 | 6845 | {
|
6829 | 6846 | "name": "asyncStackTraceId",
|
6830 | 6847 | "description": "Async stack trace, if any.",
|
6831 |
| - "experimental": true, |
| 6848 | + "deprecated": true, |
6832 | 6849 | "optional": true,
|
6833 | 6850 | "$ref": "Runtime.StackTraceId"
|
6834 | 6851 | },
|
| 6852 | + { |
| 6853 | + "name": "status", |
| 6854 | + "description": "Whether the operation was successful or not. Only `Ok` denotes a\nsuccessful live edit while the other enum variants denote why\nthe live edit failed.", |
| 6855 | + "experimental": true, |
| 6856 | + "type": "string", |
| 6857 | + "enum": [ |
| 6858 | + "Ok", |
| 6859 | + "CompileError", |
| 6860 | + "BlockedByActiveGenerator", |
| 6861 | + "BlockedByActiveFunction" |
| 6862 | + ] |
| 6863 | + }, |
6835 | 6864 | {
|
6836 | 6865 | "name": "exceptionDetails",
|
6837 |
| - "description": "Exception details if any.", |
| 6866 | + "description": "Exception details if any. Only present when `status` is `CompileError`.", |
6838 | 6867 | "optional": true,
|
6839 | 6868 | "$ref": "Runtime.ExceptionDetails"
|
6840 | 6869 | }
|
|
0 commit comments