@@ -101,6 +101,8 @@ experimental domain NodeWorker
|
101 | 101 | # Partial support for Network domain of ChromeDevTools Protocol. |
102 | 102 | # https://chromedevtools.github.io/devtools-protocol/tot/Network |
103 | 103 | experimental domain Network |
| 104 | + depends on Runtime |
| 105 | + |
104 | 106 | # Resource type as it was perceived by the rendering engine. |
105 | 107 | type ResourceType extends string |
106 | 108 | enum |
@@ -132,6 +134,31 @@ experimental domain Network
|
132 | 134 | # Monotonically increasing time in seconds since an arbitrary point in the past. |
133 | 135 | type MonotonicTime extends number |
134 | 136 | |
| 137 | + # Information about the request initiator. |
| 138 | + type Initiator extends object |
| 139 | + properties |
| 140 | + # Type of this initiator. |
| 141 | + enum type |
| 142 | + parser |
| 143 | + script |
| 144 | + preload |
| 145 | + SignedExchange |
| 146 | + preflight |
| 147 | + other |
| 148 | + # Initiator JavaScript stack trace, set for Script only. |
| 149 | + # Requires the Debugger domain to be enabled. |
| 150 | + optional Runtime.StackTrace stack |
| 151 | + # Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type. |
| 152 | + optional string url |
| 153 | + # Initiator line number, set for Parser type or for Script type (when script is importing |
| 154 | + # module) (0-based). |
| 155 | + optional number lineNumber |
| 156 | + # Initiator column number, set for Parser type or for Script type (when script is importing |
| 157 | + # module) (0-based). |
| 158 | + optional number columnNumber |
| 159 | + # Set if another request triggered this request (e.g. preflight). |
| 160 | + optional RequestId requestId |
| 161 | + |
135 | 162 | # HTTP request data. |
136 | 163 | type Request extends object |
137 | 164 | properties |
@@ -163,6 +190,8 @@ experimental domain Network
|
163 | 190 | RequestId requestId |
164 | 191 | # Request data. |
165 | 192 | Request request |
| 193 | + # Request initiator. |
| 194 | + Initiator initiator |
166 | 195 | # Timestamp. |
167 | 196 | MonotonicTime timestamp |
168 | 197 | # Timestamp. |
|