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

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 3373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3384 "id": "ScriptPosition", 3384 "id": "ScriptPosition",
3385 "hidden": true, 3385 "hidden": true,
3386 "type": "object", 3386 "type": "object",
3387 "properties": [ 3387 "properties": [
3388 { "name": "line", "type": "integer" }, 3388 { "name": "line", "type": "integer" },
3389 { "name": "column", "type": "integer" } 3389 { "name": "column", "type": "integer" }
3390 ], 3390 ],
3391 "description": "Location in the source code." 3391 "description": "Location in the source code."
3392 }, 3392 },
3393 { 3393 {
3394 "id": "BlackboxPatternType",
pfeldman 2016/03/03 01:20:52 drop this.
kozy 2016/03/03 20:14:18 Done.
3395 "hidden": true,
3396 "type": "string",
3397 "enum": [ "RegExp", "Hash" ],
3398 "description": "Blackbox pattern type. RegExp is used for script s url."
3399 },
3400 {
3401 "id": "BlackboxPattern",
3402 "hidden": true,
3403 "type": "object",
3404 "properties": [
3405 { "name": "type", "$ref": "BlackboxPatternType" },
pfeldman 2016/03/03 01:20:52 You should instead have two optional properties he
kozy 2016/03/03 20:14:18 Done.
3406 { "name": "value", "type": "string" }
3407 ],
3408 "description": "Blackbox pattern."
3409 },
3410 {
3394 "id": "FunctionDetails", 3411 "id": "FunctionDetails",
3395 "hidden": true, 3412 "hidden": true,
3396 "type": "object", 3413 "type": "object",
3397 "properties": [ 3414 "properties": [
3398 { "name": "location", "$ref": "Location", "optional": true, "description": "Location of the function, none for native functions." }, 3415 { "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." }, 3416 { "name": "functionName", "type": "string", "description": " Name of the function." },
3400 { "name": "isGenerator", "type": "boolean", "description": " Whether this is a generator function." }, 3417 { "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." } 3418 { "name": "scopeChain", "type": "array", "optional": true, " items": { "$ref": "Scope" }, "description": "Scope chain for this closure." }
3402 ], 3419 ],
3403 "description": "Information about the function." 3420 "description": "Information about the function."
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
3792 }, 3809 },
3793 { 3810 {
3794 "name": "removeAsyncOperationBreakpoint", 3811 "name": "removeAsyncOperationBreakpoint",
3795 "parameters": [ 3812 "parameters": [
3796 { "name": "operationId", "type": "integer", "description": " ID of the async operation to remove breakpoint for." } 3813 { "name": "operationId", "type": "integer", "description": " ID of the async operation to remove breakpoint for." }
3797 ], 3814 ],
3798 "hidden": true, 3815 "hidden": true,
3799 "description": "Removes AsyncOperation breakpoint." 3816 "description": "Removes AsyncOperation breakpoint."
3800 }, 3817 },
3801 { 3818 {
3802 "name": "setBlackboxedRanges", 3819 "name": "setBlackboxRanges",
3803 "parameters": [ 3820 "parameters": [
3804 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Id of the script." }, 3821 { "name": "hash", "type": "string", "description": "Hash of the script." },
pfeldman 2016/03/03 01:20:52 Introduce type for the hash?
kozy 2016/03/03 20:14:18 Done.
3805 { "name": "positions", "type": "array", "items": { "$ref": " ScriptPosition" } } 3822 { "name": "positions", "type": "array", "items": { "$ref": " ScriptPosition" } }
3806 ], 3823 ],
3807 "hidden": true, 3824 "hidden": true,
3808 "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." 3825 "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."
3826 },
3827 {
3828 "name": "setBlackboxPatterns",
3829 "parameters": [
3830 { "name": "patterns", "type": "array", "items": { "$ref": "B lackboxPattern"} }
pfeldman 2016/03/03 01:25:39 After looking at the code, it seems more like you
kozy 2016/03/03 20:14:18 Done.
3831 ],
3832 "hidden": true,
3833 "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 for url, url, script's hash."
pfeldman 2016/03/03 01:20:52 Comment is wrong.
kozy 2016/03/03 20:14:18 Done.
3809 } 3834 }
3810 ], 3835 ],
3811 "events": [ 3836 "events": [
3812 { 3837 {
3813 "name": "globalObjectCleared", 3838 "name": "globalObjectCleared",
3814 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload." 3839 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload."
3815 }, 3840 },
3816 { 3841 {
3817 "name": "scriptParsed", 3842 "name": "scriptParsed",
3818 "parameters": [ 3843 "parameters": [
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after
5193 ], 5218 ],
5194 "returns": [ 5219 "returns": [
5195 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5220 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5196 ], 5221 ],
5197 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5222 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5198 "hidden": true 5223 "hidden": true
5199 } 5224 }
5200 ] 5225 ]
5201 }] 5226 }]
5202 } 5227 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698