Web Inspector: Restrict domains at the target level instead of only at the window...
[WebKit-https.git] / Source / JavaScriptCore / inspector / protocol / Worker.json
1 {
2     "domain": "Worker",
3     "availability": ["web"],
4     "commands": [
5         {
6             "name": "enable",
7             "description": "Enable Worker domain events."
8         },
9         {
10             "name": "disable",
11             "description": "Disable Worker domain events."
12         },
13         {
14             "name": "initialized",
15             "description": "Sent after the frontend has sent all initialization messages and can resume this worker. This command is required to allow execution in the worker.",
16             "parameters": [
17                 { "name": "workerId", "type": "string" }
18             ]            
19         },
20         {
21             "name": "sendMessageToWorker",
22             "description": "Send an Inspector Protocol message to be dispatched to a Worker's agents.",
23             "parameters": [
24                 { "name": "workerId", "type": "string" },
25                 { "name": "message", "type": "string", "description": "JSON Inspector Protocol message (command) to be dispatched on the backend." }
26             ]
27         }
28     ],
29     "events": [
30         {
31             "name": "workerCreated",
32             "parameters": [
33                 { "name": "workerId", "type": "string" },
34                 { "name": "url", "type": "string" }
35             ]
36         },
37         {
38             "name": "workerTerminated",
39             "parameters": [
40                 { "name": "workerId", "type": "string" }
41             ]
42         },
43         {
44             "name": "dispatchMessageFromWorker",
45             "parameters": [
46                 { "name": "workerId", "type": "string" },
47                 { "name": "message", "type": "string", "description": "JSON Inspector Protocol message (response or event) to be dispatched on the frontend." }
48             ]
49         }
50     ]
51 }