@@ -1082,8 +1082,10 @@ export namespace Audits {
10821082 WriteErrorInsufficientResources = 'WriteErrorInsufficientResources',
10831083 WriteErrorInvalidMatchField = 'WriteErrorInvalidMatchField',
10841084 WriteErrorInvalidStructuredHeader = 'WriteErrorInvalidStructuredHeader',
1085+ WriteErrorInvalidTTLField = 'WriteErrorInvalidTTLField',
10851086 WriteErrorNavigationRequest = 'WriteErrorNavigationRequest',
10861087 WriteErrorNoMatchField = 'WriteErrorNoMatchField',
1088+ WriteErrorNonIntegerTTLField = 'WriteErrorNonIntegerTTLField',
10871089 WriteErrorNonListMatchDestField = 'WriteErrorNonListMatchDestField',
10881090 WriteErrorNonSecureContext = 'WriteErrorNonSecureContext',
10891091 WriteErrorNonStringIdField = 'WriteErrorNonStringIdField',
@@ -9962,6 +9964,10 @@ export namespace Network {
99629964 * request corresponding to the main frame.
99639965 */
99649966 isSameSite?: boolean;
9967+ /**
9968+ * True when the resource request is ad-related.
9969+ */
9970+ isAdRelated?: boolean;
99659971 }
99669972
99679973 /**
@@ -10999,6 +11005,43 @@ export namespace Network {
1099911005 Zstd = 'zstd',
1100011006 }
1100111007
11008+ export interface NetworkConditions {
11009+ /**
11010+ * Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string
11011+ * syntax (https://urlpattern.spec.whatwg.org/). If the pattern is empty, all requests are matched (including p2p
11012+ * connections).
11013+ */
11014+ urlPattern: string;
11015+ /**
11016+ * Minimum latency from request sent to response headers received (ms).
11017+ */
11018+ latency: number;
11019+ /**
11020+ * Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
11021+ */
11022+ downloadThroughput: number;
11023+ /**
11024+ * Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
11025+ */
11026+ uploadThroughput: number;
11027+ /**
11028+ * Connection type if known.
11029+ */
11030+ connectionType?: ConnectionType;
11031+ /**
11032+ * WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
11033+ */
11034+ packetLoss?: number;
11035+ /**
11036+ * WebRTC packet queue length (packet). 0 removes any queue length limitations.
11037+ */
11038+ packetQueueLength?: integer;
11039+ /**
11040+ * WebRTC packetReordering feature.
11041+ */
11042+ packetReordering?: boolean;
11043+ }
11044+
1100211045 export const enum DirectSocketDnsQueryType {
1100311046 Ipv4 = 'ipv4',
1100411047 Ipv6 = 'ipv6',
@@ -11364,6 +11407,50 @@ export namespace Network {
1136411407 packetReordering?: boolean;
1136511408 }
1136611409
11410+ export interface EmulateNetworkConditionsByRuleRequest {
11411+ /**
11412+ * True to emulate internet disconnection.
11413+ */
11414+ offline: boolean;
11415+ /**
11416+ * Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global
11417+ * conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are
11418+ * also applied for throttling of p2p connections.
11419+ */
11420+ matchedNetworkConditions: NetworkConditions[];
11421+ }
11422+
11423+ export interface EmulateNetworkConditionsByRuleResponse extends ProtocolResponseWithError {
11424+ /**
11425+ * An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for
11426+ * requests affected by a rule.
11427+ */
11428+ ruleIds: string[];
11429+ }
11430+
11431+ export interface OverrideNetworkStateRequest {
11432+ /**
11433+ * True to emulate internet disconnection.
11434+ */
11435+ offline: boolean;
11436+ /**
11437+ * Minimum latency from request sent to response headers received (ms).
11438+ */
11439+ latency: number;
11440+ /**
11441+ * Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
11442+ */
11443+ downloadThroughput: number;
11444+ /**
11445+ * Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
11446+ */
11447+ uploadThroughput: number;
11448+ /**
11449+ * Connection type if known.
11450+ */
11451+ connectionType?: ConnectionType;
11452+ }
11453+
1136711454 export interface EnableRequest {
1136811455 /**
1136911456 * Buffer size in bytes to use when preserving network payloads (XHRs, etc).
@@ -12358,6 +12445,11 @@ export namespace Network {
1235812445 * Whether the site has partitioned cookies stored in a partition different than the current one.
1235912446 */
1236012447 siteHasCookieInOtherPartition?: boolean;
12448+ /**
12449+ * The network conditions id if this request was affected by network conditions configured via
12450+ * emulateNetworkConditionsByRule.
12451+ */
12452+ appliedNetworkConditionsId?: string;
1236112453 }
1236212454
1236312455 /**
@@ -15350,6 +15442,10 @@ export namespace Page {
1535015442 isAllowed: boolean;
1535115443 }
1535215444
15445+ export interface SetPrewarmingAllowedRequest {
15446+ isAllowed: boolean;
15447+ }
15448+
1535315449 export interface DomContentEventFiredEvent {
1535415450 timestamp: Network.MonotonicTime;
1535515451 }
@@ -20896,6 +20992,7 @@ export namespace Runtime {
2089620992 Dataview = 'dataview',
2089720993 Webassemblymemory = 'webassemblymemory',
2089820994 Wasmvalue = 'wasmvalue',
20995+ Trustedtype = 'trustedtype',
2089920996 }
2090020997
2090120998 /**
@@ -20989,6 +21086,7 @@ export namespace Runtime {
2098921086 Dataview = 'dataview',
2099021087 Webassemblymemory = 'webassemblymemory',
2099121088 Wasmvalue = 'wasmvalue',
21089+ Trustedtype = 'trustedtype',
2099221090 }
2099321091
2099421092 /**
@@ -21053,6 +21151,7 @@ export namespace Runtime {
2105321151 Dataview = 'dataview',
2105421152 Webassemblymemory = 'webassemblymemory',
2105521153 Wasmvalue = 'wasmvalue',
21154+ Trustedtype = 'trustedtype',
2105621155 }
2105721156
2105821157 export interface PropertyPreview {
0 commit comments