devtools-protocol 0.0.1681094 → 0.0.1682007
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4183,6 +4183,34 @@
|
|
|
4183
4183
|
"type": "string"
|
|
4184
4184
|
}
|
|
4185
4185
|
]
|
|
4186
|
+
},
|
|
4187
|
+
{
|
|
4188
|
+
"name": "getGlobalPrivacyControl",
|
|
4189
|
+
"description": "Gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#get-global-privacy-control",
|
|
4190
|
+
"experimental": true,
|
|
4191
|
+
"returns": [
|
|
4192
|
+
{
|
|
4193
|
+
"name": "gpc",
|
|
4194
|
+
"type": "boolean"
|
|
4195
|
+
}
|
|
4196
|
+
]
|
|
4197
|
+
},
|
|
4198
|
+
{
|
|
4199
|
+
"name": "setGlobalPrivacyControl",
|
|
4200
|
+
"description": "Sets and then gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#set-global-privacy-control",
|
|
4201
|
+
"experimental": true,
|
|
4202
|
+
"parameters": [
|
|
4203
|
+
{
|
|
4204
|
+
"name": "gpc",
|
|
4205
|
+
"type": "boolean"
|
|
4206
|
+
}
|
|
4207
|
+
],
|
|
4208
|
+
"returns": [
|
|
4209
|
+
{
|
|
4210
|
+
"name": "gpc",
|
|
4211
|
+
"type": "boolean"
|
|
4212
|
+
}
|
|
4213
|
+
]
|
|
4186
4214
|
}
|
|
4187
4215
|
],
|
|
4188
4216
|
"events": [
|
package/package.json
CHANGED
package/pdl/domains/Browser.pdl
CHANGED
|
@@ -332,3 +332,17 @@ domain Browser
|
|
|
332
332
|
command addPrivacySandboxEnrollmentOverride
|
|
333
333
|
parameters
|
|
334
334
|
string url
|
|
335
|
+
|
|
336
|
+
# Gets the current globally-applied privacy control status
|
|
337
|
+
# See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
338
|
+
experimental command getGlobalPrivacyControl
|
|
339
|
+
returns
|
|
340
|
+
boolean gpc
|
|
341
|
+
|
|
342
|
+
# Sets and then gets the current globally-applied privacy control status
|
|
343
|
+
# See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
344
|
+
experimental command setGlobalPrivacyControl
|
|
345
|
+
parameters
|
|
346
|
+
boolean gpc
|
|
347
|
+
returns
|
|
348
|
+
boolean gpc
|
|
@@ -2186,6 +2186,24 @@ export namespace ProtocolMapping {
|
|
|
2186
2186
|
paramsType: [Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest];
|
|
2187
2187
|
returnType: void;
|
|
2188
2188
|
};
|
|
2189
|
+
/**
|
|
2190
|
+
* Gets the current globally-applied privacy control status
|
|
2191
|
+
* See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
2192
|
+
* @experimental
|
|
2193
|
+
*/
|
|
2194
|
+
'Browser.getGlobalPrivacyControl': {
|
|
2195
|
+
paramsType: [];
|
|
2196
|
+
returnType: Protocol.Browser.GetGlobalPrivacyControlResponse;
|
|
2197
|
+
};
|
|
2198
|
+
/**
|
|
2199
|
+
* Sets and then gets the current globally-applied privacy control status
|
|
2200
|
+
* See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
2201
|
+
* @experimental
|
|
2202
|
+
*/
|
|
2203
|
+
'Browser.setGlobalPrivacyControl': {
|
|
2204
|
+
paramsType: [Protocol.Browser.SetGlobalPrivacyControlRequest];
|
|
2205
|
+
returnType: Protocol.Browser.SetGlobalPrivacyControlResponse;
|
|
2206
|
+
};
|
|
2189
2207
|
/**
|
|
2190
2208
|
* Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
|
|
2191
2209
|
* position specified by `location`.
|
|
@@ -1155,6 +1155,20 @@ export namespace ProtocolProxyApi {
|
|
|
1155
1155
|
*/
|
|
1156
1156
|
addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<void>;
|
|
1157
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* Gets the current globally-applied privacy control status
|
|
1160
|
+
* See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
1161
|
+
* @experimental
|
|
1162
|
+
*/
|
|
1163
|
+
getGlobalPrivacyControl(): Promise<Protocol.Browser.GetGlobalPrivacyControlResponse>;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Sets and then gets the current globally-applied privacy control status
|
|
1167
|
+
* See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
1168
|
+
* @experimental
|
|
1169
|
+
*/
|
|
1170
|
+
setGlobalPrivacyControl(params: Protocol.Browser.SetGlobalPrivacyControlRequest): Promise<Protocol.Browser.SetGlobalPrivacyControlResponse>;
|
|
1171
|
+
|
|
1158
1172
|
/**
|
|
1159
1173
|
* Fired when page is about to start a download.
|
|
1160
1174
|
* @experimental
|
|
@@ -1225,6 +1225,20 @@ export namespace ProtocolTestsProxyApi {
|
|
|
1225
1225
|
*/
|
|
1226
1226
|
addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
1227
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* Gets the current globally-applied privacy control status
|
|
1230
|
+
* See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
1231
|
+
* @experimental
|
|
1232
|
+
*/
|
|
1233
|
+
getGlobalPrivacyControl(): Promise<{id: number, result: Protocol.Browser.GetGlobalPrivacyControlResponse, sessionId: string}>;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Sets and then gets the current globally-applied privacy control status
|
|
1237
|
+
* See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
1238
|
+
* @experimental
|
|
1239
|
+
*/
|
|
1240
|
+
setGlobalPrivacyControl(params: Protocol.Browser.SetGlobalPrivacyControlRequest): Promise<{id: number, result: Protocol.Browser.SetGlobalPrivacyControlResponse, sessionId: string}>;
|
|
1241
|
+
|
|
1228
1242
|
/**
|
|
1229
1243
|
* Fired when page is about to start a download.
|
|
1230
1244
|
* @experimental
|
package/types/protocol.d.ts
CHANGED
|
@@ -4997,6 +4997,18 @@ export namespace Protocol {
|
|
|
4997
4997
|
url: string;
|
|
4998
4998
|
}
|
|
4999
4999
|
|
|
5000
|
+
export interface GetGlobalPrivacyControlResponse {
|
|
5001
|
+
gpc: boolean;
|
|
5002
|
+
}
|
|
5003
|
+
|
|
5004
|
+
export interface SetGlobalPrivacyControlRequest {
|
|
5005
|
+
gpc: boolean;
|
|
5006
|
+
}
|
|
5007
|
+
|
|
5008
|
+
export interface SetGlobalPrivacyControlResponse {
|
|
5009
|
+
gpc: boolean;
|
|
5010
|
+
}
|
|
5011
|
+
|
|
5000
5012
|
/**
|
|
5001
5013
|
* Fired when page is about to start a download.
|
|
5002
5014
|
* @experimental
|