Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1754483002: [DevTools] Added setBlackboxPatterns method to protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@provide-hash-for-anonymous-scripts
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications.", 10 "description": "Enables inspector domain notifications.",
(...skipping 3353 matching lines...) Expand 10 before | Expand all | Expand 10 after
3364 "id": "BreakpointId", 3364 "id": "BreakpointId",
3365 "type": "string", 3365 "type": "string",
3366 "description": "Breakpoint identifier." 3366 "description": "Breakpoint identifier."
3367 }, 3367 },
3368 { 3368 {
3369 "id": "CallFrameId", 3369 "id": "CallFrameId",
3370 "type": "string", 3370 "type": "string",
3371 "description": "Call frame identifier." 3371 "description": "Call frame identifier."
3372 }, 3372 },
3373 { 3373 {
3374 "id": "ScriptHash",
3375 "type": "string",
3376 "description": "Script's content hash."
3377 },
3378 {
3374 "id": "Location", 3379 "id": "Location",
3375 "type": "object", 3380 "type": "object",
3376 "properties": [ 3381 "properties": [
3377 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." }, 3382 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." },
3378 { "name": "lineNumber", "type": "integer", "description": "L ine number in the script (0-based)." }, 3383 { "name": "lineNumber", "type": "integer", "description": "L ine number in the script (0-based)." },
3379 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Column number in the script (0-based)." } 3384 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Column number in the script (0-based)." }
3380 ], 3385 ],
3381 "description": "Location in the source code." 3386 "description": "Location in the source code."
3382 }, 3387 },
3383 { 3388 {
3384 "id": "ScriptPosition", 3389 "id": "ScriptPosition",
3385 "hidden": true, 3390 "hidden": true,
3386 "type": "object", 3391 "type": "object",
3387 "properties": [ 3392 "properties": [
3388 { "name": "line", "type": "integer" }, 3393 { "name": "line", "type": "integer" },
3389 { "name": "column", "type": "integer" } 3394 { "name": "column", "type": "integer" }
3390 ], 3395 ],
3391 "description": "Location in the source code." 3396 "description": "Location in the source code."
3392 }, 3397 },
3393 { 3398 {
3399 "id": "BlackboxPattern",
3400 "hidden": true,
3401 "type": "object",
3402 "properties": [
3403 { "name": "regex", "type": "string", "optional": true },
3404 { "name": "hash", "$ref": "ScriptHash", "optional": true }
3405 ],
3406 "description": "Blackbox pattern."
3407 },
3408 {
3394 "id": "FunctionDetails", 3409 "id": "FunctionDetails",
3395 "hidden": true, 3410 "hidden": true,
3396 "type": "object", 3411 "type": "object",
3397 "properties": [ 3412 "properties": [
3398 { "name": "location", "$ref": "Location", "optional": true, "description": "Location of the function, none for native functions." }, 3413 { "name": "location", "$ref": "Location", "optional": true, "description": "Location of the function, none for native functions." },
3399 { "name": "functionName", "type": "string", "description": " Name of the function." }, 3414 { "name": "functionName", "type": "string", "description": " Name of the function." },
3400 { "name": "isGenerator", "type": "boolean", "description": " Whether this is a generator function." }, 3415 { "name": "isGenerator", "type": "boolean", "description": " Whether this is a generator function." },
3401 { "name": "scopeChain", "type": "array", "optional": true, " items": { "$ref": "Scope" }, "description": "Scope chain for this closure." } 3416 { "name": "scopeChain", "type": "array", "optional": true, " items": { "$ref": "Scope" }, "description": "Scope chain for this closure." }
3402 ], 3417 ],
3403 "description": "Information about the function." 3418 "description": "Information about the function."
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
3783 }, 3798 },
3784 { 3799 {
3785 "name": "removeAsyncOperationBreakpoint", 3800 "name": "removeAsyncOperationBreakpoint",
3786 "parameters": [ 3801 "parameters": [
3787 { "name": "operationId", "type": "integer", "description": " ID of the async operation to remove breakpoint for." } 3802 { "name": "operationId", "type": "integer", "description": " ID of the async operation to remove breakpoint for." }
3788 ], 3803 ],
3789 "hidden": true, 3804 "hidden": true,
3790 "description": "Removes AsyncOperation breakpoint." 3805 "description": "Removes AsyncOperation breakpoint."
3791 }, 3806 },
3792 { 3807 {
3793 "name": "setBlackboxedRanges", 3808 "name": "addBlackboxRanges",
3794 "parameters": [ 3809 "parameters": [
3795 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Id of the script." }, 3810 { "name": "hash", "$ref": "ScriptHash", "description": "Hash of the script." },
3796 { "name": "positions", "type": "array", "items": { "$ref": " ScriptPosition" } } 3811 { "name": "positions", "type": "array", "items": { "$ref": " ScriptPosition" } }
3797 ], 3812 ],
3798 "hidden": true, 3813 "hidden": true,
3799 "description": "Makes backend skip steps in the script in blackb oxed ranges. VM will try leave blacklisted scripts by performing 'step in' sever al times, finally resorting to 'step out' if unsuccessful. Positions array conta ins positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted." 3814 "description": "Makes backend skip steps in the script in blackb oxed ranges. VM will try leave blacklisted scripts by performing 'step in' sever al times, finally resorting to 'step out' if unsuccessful. Positions array conta ins positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted."
3815 },
3816 {
3817 "name": "editBlackboxPatterns",
pfeldman 2016/03/04 20:22:39 To recap: setBlackboxPatterns receives array of ei
kozy 2016/03/06 01:13:09 I will add hash support for breakpoints in separat
3818 "parameters": [
3819 { "name": "patterns", "type": "array", "items": { "$ref": "B lackboxPattern"} }
3820 ],
3821 "hidden": true,
3822 "description": "Makes backend skip steps in the script in blackb oxed ranges. VM will try leave blacklisted scripts by performing 'step in' sever al times, finally resorting to 'step out' if unsuccessful. Pattern can be one of the type: RegExp or script's hash. RegExp patterns will be replaced with passed , hashes will be added to current."
3800 } 3823 }
3801 ], 3824 ],
3802 "events": [ 3825 "events": [
3803 { 3826 {
3804 "name": "globalObjectCleared", 3827 "name": "globalObjectCleared",
3805 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload." 3828 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload."
3806 }, 3829 },
3807 { 3830 {
3808 "name": "scriptParsed", 3831 "name": "scriptParsed",
3809 "parameters": [ 3832 "parameters": [
3810 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." }, 3833 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." },
3811 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." }, 3834 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." },
3812 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , 3835 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
3813 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, 3836 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
3814 { "name": "endLine", "type": "integer", "description": "Last line of the script." }, 3837 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
3815 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." }, 3838 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
3816 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true }, 3839 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true },
3817 { "name": "hash", "type": "string", "hidden": true, "descrip tion": "Content hash of the script."}, 3840 { "name": "hash", "$ref": "ScriptHash", "hidden": true, "des cription": "Content hash of the script."},
3818 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " }, 3841 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " },
3819 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true }, 3842 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true },
3820 { "name": "isLiveEdit", "type": "boolean", "optional": true, "description": "True, if this script is generated as a result of the live edit operation.", "hidden": true }, 3843 { "name": "isLiveEdit", "type": "boolean", "optional": true, "description": "True, if this script is generated as a result of the live edit operation.", "hidden": true },
3821 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." }, 3844 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
3822 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true }, 3845 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true },
3823 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."} 3846 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."}
3824 ], 3847 ],
3825 "description": "Fired when virtual machine parses script. This e vent is also fired for all known and uncollected scripts upon enabling debugger. " 3848 "description": "Fired when virtual machine parses script. This e vent is also fired for all known and uncollected scripts upon enabling debugger. "
3826 }, 3849 },
3827 { 3850 {
3828 "name": "scriptFailedToParse", 3851 "name": "scriptFailedToParse",
3829 "parameters": [ 3852 "parameters": [
3830 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." }, 3853 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." },
3831 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." }, 3854 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." },
3832 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , 3855 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
3833 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, 3856 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
3834 { "name": "endLine", "type": "integer", "description": "Last line of the script." }, 3857 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
3835 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." }, 3858 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
3836 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true }, 3859 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true },
3837 { "name": "hash", "type": "string", "hidden": true, "descrip tion": "Content hash of the script."}, 3860 { "name": "hash", "$ref": "ScriptHash", "hidden": true, "des cription": "Content hash of the script."},
3838 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " }, 3861 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " },
3839 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true }, 3862 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true },
3840 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." }, 3863 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
3841 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true }, 3864 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true },
3842 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."} 3865 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."}
3843 ], 3866 ],
3844 "description": "Fired when virtual machine fails to parse the sc ript." 3867 "description": "Fired when virtual machine fails to parse the sc ript."
3845 }, 3868 },
3846 { 3869 {
3847 "name": "breakpointResolved", 3870 "name": "breakpointResolved",
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
5184 ], 5207 ],
5185 "returns": [ 5208 "returns": [
5186 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5209 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5187 ], 5210 ],
5188 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5211 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5189 "hidden": true 5212 "hidden": true
5190 } 5213 }
5191 ] 5214 ]
5192 }] 5215 }]
5193 } 5216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698