Skip to content

Commit fca5397

Browse files
szuendDevtools-frontend LUCI CQ
authored andcommitted
Roll browser-protocol
This roll requires a manual review. See http://go/reviewed-rolls for guidance. In case of failures or errors, reach out to someone from config/owner/COMMON_OWNERS. Roll created at https://cr-buildbucket.appspot.com/build/8719188589721198481 [email protected] Bug: none Change-Id: I4a2bb839b39222597520735b1ce5cb808363c1dd Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6406914 Commit-Queue: Simon Zünd <[email protected]> Reviewed-by: Danil Somsikov <[email protected]> Reviewed-by: Ergün Erdoğmuş <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]> Reviewed-by: Yang Guo <[email protected]>
1 parent 1814397 commit fca5397

File tree

10 files changed

+122
-20
lines changed

10 files changed

+122
-20
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ vars = {
2424
'inspector_protocol_revision': '940abfc668be2591483f7132145593c6a047f3cf',
2525

2626
# Keeping track of the last time we rollerd the browser protocol files.
27-
'chromium_browser_protocol_revision' : 'f48cf88d48c0fe95eb1ac055befdfc9cbecd5a4c',
27+
'chromium_browser_protocol_revision' : '51380cf3d6bc09bbef70739e7e25fcd6937770c8',
2828

2929
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
3030
'clang_format_revision': '37f6e68a107df43b7d7e044fd36a13cbae3413f2',

front_end/generated/InspectorBackendCommands.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/generated/protocol-mapping.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4743,6 +4743,20 @@ export namespace ProtocolMapping {
47434743
paramsType: [Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest];
47444744
returnType: void;
47454745
};
4746+
/**
4747+
* Adds a service with |uuid| to the peripheral with |address|.
4748+
*/
4749+
'BluetoothEmulation.addService': {
4750+
paramsType: [Protocol.BluetoothEmulation.AddServiceRequest];
4751+
returnType: Protocol.BluetoothEmulation.AddServiceResponse;
4752+
};
4753+
/**
4754+
* Removes the service respresented by |id| from the peripheral with |address|.
4755+
*/
4756+
'BluetoothEmulation.removeService': {
4757+
paramsType: [Protocol.BluetoothEmulation.RemoveServiceRequest];
4758+
returnType: void;
4759+
};
47464760
/**
47474761
* Continues execution until specific location is reached.
47484762
*/

front_end/generated/protocol-proxy-api.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,6 +4218,16 @@ declare namespace ProtocolProxyApi {
42184218
*/
42194219
invoke_simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<Protocol.ProtocolResponseWithError>;
42204220

4221+
/**
4222+
* Adds a service with |uuid| to the peripheral with |address|.
4223+
*/
4224+
invoke_addService(params: Protocol.BluetoothEmulation.AddServiceRequest): Promise<Protocol.BluetoothEmulation.AddServiceResponse>;
4225+
4226+
/**
4227+
* Removes the service respresented by |id| from the peripheral with |address|.
4228+
*/
4229+
invoke_removeService(params: Protocol.BluetoothEmulation.RemoveServiceRequest): Promise<Protocol.ProtocolResponseWithError>;
4230+
42214231
}
42224232
export interface BluetoothEmulationDispatcher {
42234233
/**

front_end/generated/protocol.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,7 @@ export namespace Audits {
10991099
ValidationFailedSignatureExpired = 'ValidationFailedSignatureExpired',
11001100
ValidationFailedInvalidLength = 'ValidationFailedInvalidLength',
11011101
ValidationFailedSignatureMismatch = 'ValidationFailedSignatureMismatch',
1102+
ValidationFailedIntegrityMismatch = 'ValidationFailedIntegrityMismatch',
11021103
}
11031104

11041105
/**
@@ -1141,6 +1142,7 @@ export namespace Audits {
11411142
export interface SRIMessageSignatureIssueDetails {
11421143
error: SRIMessageSignatureError;
11431144
signatureBase: string;
1145+
integrityAssertions: string[];
11441146
request: AffectedRequest;
11451147
}
11461148

@@ -9363,6 +9365,7 @@ export namespace Network {
93639365
NameValuePairExceedsMaxSize = 'NameValuePairExceedsMaxSize',
93649366
PortMismatch = 'PortMismatch',
93659367
SchemeMismatch = 'SchemeMismatch',
9368+
AnonymousContext = 'AnonymousContext',
93669369
}
93679370

93689371
/**
@@ -18392,6 +18395,23 @@ export namespace BluetoothEmulation {
1839218395
code: integer;
1839318396
}
1839418397

18398+
export interface AddServiceRequest {
18399+
address: string;
18400+
serviceUuid: string;
18401+
}
18402+
18403+
export interface AddServiceResponse extends ProtocolResponseWithError {
18404+
/**
18405+
* An identifier that uniquely represents this service.
18406+
*/
18407+
id: string;
18408+
}
18409+
18410+
export interface RemoveServiceRequest {
18411+
address: string;
18412+
id: string;
18413+
}
18414+
1839518415
/**
1839618416
* Event for when a GATT operation of |type| to the peripheral with |address|
1839718417
* happened.

front_end/models/issues_manager/SRIMessageSignatureIssue.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ describeWithLocale('SRIMessageSignatureIssue', () => {
5050
url: 'https://example.com/',
5151
},
5252
signatureBase: 'test-signature-base',
53+
integrityAssertions: [],
5354
};
5455
const issue = createProtocolIssue(issueDetails);
5556
const sriMessageSignatureIssues =

front_end/models/issues_manager/SRIMessageSignatureIssue.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const enum IssueCode {
6161
VALIDATION_FAILED_SIGNATURE_EXPIRED = 'SRIMessageSignatureIssue::ValidationFailedSignatureExpired',
6262
VALIDATION_FAILED_INVALID_LENGTH = 'SRIMessageSignatureIssue::ValidationFailedInvalidLength',
6363
VALIDATION_FAILED_SIGNATURE_MISMATCH = 'SRIMessageSignatureIssue::ValidationFailedSignatureMismatch',
64+
VALIDATION_FAILED_INTEGRITY_MISMATCH = 'SRIMessageSignatureIssue::ValidationFailedIntegrityMismatch',
6465
}
6566

6667
function getIssueCode(details: Protocol.Audits.SRIMessageSignatureIssueDetails): IssueCode {
@@ -105,6 +106,8 @@ function getIssueCode(details: Protocol.Audits.SRIMessageSignatureIssueDetails):
105106
return IssueCode.VALIDATION_FAILED_INVALID_LENGTH;
106107
case Protocol.Audits.SRIMessageSignatureError.ValidationFailedSignatureMismatch:
107108
return IssueCode.VALIDATION_FAILED_SIGNATURE_MISMATCH;
109+
case Protocol.Audits.SRIMessageSignatureError.ValidationFailedIntegrityMismatch:
110+
return IssueCode.VALIDATION_FAILED_INTEGRITY_MISMATCH;
108111
}
109112
}
110113

front_end/models/javascript_metadata/NativeFunctions.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,7 @@ export const NativeFunctions = [
225225
{
226226
name: "create",
227227
signatures: [["?options"]],
228-
receivers: ["CredentialsContainer","AILanguageModelFactory","AIRewriterFactory","AISummarizerFactory","AIWriterFactory","AILanguageDetectorFactory"]
229-
},
230-
{
231-
name: "create",
232-
signatures: [["options"]],
233-
receivers: ["AITranslatorFactory"]
228+
receivers: ["CredentialsContainer","AILanguageModelFactory"]
234229
},
235230
{
236231
name: "defineProperty",
@@ -6794,7 +6789,7 @@ export const NativeFunctions = [
67946789
{
67956790
name: "redirect",
67966791
signatures: [["url"]],
6797-
receivers: ["NavigateEvent"]
6792+
receivers: ["NavigationPrecommitController"]
67986793
},
67996794
{
68006795
name: "Blob",
@@ -7317,13 +7312,7 @@ export const NativeFunctions = [
73177312
},
73187313
{
73197314
name: "availability",
7320-
signatures: [["?options"]],
7321-
receivers: ["AILanguageModelFactory","AIRewriterFactory","AISummarizerFactory","AIWriterFactory"]
7322-
},
7323-
{
7324-
name: "availability",
7325-
signatures: [["options"]],
7326-
receivers: ["AITranslatorFactory"]
7315+
signatures: [["?options"]]
73277316
},
73287317
{
73297318
name: "registerAnimator",

third_party/blink/public/devtools_protocol/browser_protocol.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,8 @@
15831583
"SignatureInputHeaderMissingRequiredParameters",
15841584
"ValidationFailedSignatureExpired",
15851585
"ValidationFailedInvalidLength",
1586-
"ValidationFailedSignatureMismatch"
1586+
"ValidationFailedSignatureMismatch",
1587+
"ValidationFailedIntegrityMismatch"
15871588
]
15881589
},
15891590
{
@@ -1682,6 +1683,13 @@
16821683
"name": "signatureBase",
16831684
"type": "string"
16841685
},
1686+
{
1687+
"name": "integrityAssertions",
1688+
"type": "array",
1689+
"items": {
1690+
"type": "string"
1691+
}
1692+
},
16851693
{
16861694
"name": "request",
16871695
"$ref": "AffectedRequest"
@@ -14022,7 +14030,8 @@
1402214030
"SamePartyFromCrossPartyContext",
1402314031
"NameValuePairExceedsMaxSize",
1402414032
"PortMismatch",
14025-
"SchemeMismatch"
14033+
"SchemeMismatch",
14034+
"AnonymousContext"
1402614035
]
1402714036
},
1402814037
{
@@ -28002,6 +28011,41 @@
2800228011
"type": "integer"
2800328012
}
2800428013
]
28014+
},
28015+
{
28016+
"name": "addService",
28017+
"description": "Adds a service with |uuid| to the peripheral with |address|.",
28018+
"parameters": [
28019+
{
28020+
"name": "address",
28021+
"type": "string"
28022+
},
28023+
{
28024+
"name": "serviceUuid",
28025+
"type": "string"
28026+
}
28027+
],
28028+
"returns": [
28029+
{
28030+
"name": "id",
28031+
"description": "An identifier that uniquely represents this service.",
28032+
"type": "string"
28033+
}
28034+
]
28035+
},
28036+
{
28037+
"name": "removeService",
28038+
"description": "Removes the service respresented by |id| from the peripheral with |address|.",
28039+
"parameters": [
28040+
{
28041+
"name": "address",
28042+
"type": "string"
28043+
},
28044+
{
28045+
"name": "id",
28046+
"type": "string"
28047+
}
28048+
]
2800528049
}
2800628050
],
2800728051
"events": [

third_party/blink/public/devtools_protocol/browser_protocol.pdl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ experimental domain Audits
823823
ValidationFailedSignatureExpired
824824
ValidationFailedInvalidLength
825825
ValidationFailedSignatureMismatch
826+
ValidationFailedIntegrityMismatch
826827

827828
# Details for issues around "Attribution Reporting API" usage.
828829
# Explainer: https://github.com/WICG/attribution-reporting-api
@@ -859,6 +860,7 @@ experimental domain Audits
859860
properties
860861
SRIMessageSignatureError error
861862
string signatureBase
863+
array of string integrityAssertions
862864
AffectedRequest request
863865

864866
type GenericIssueErrorType extends string
@@ -6640,6 +6642,8 @@ domain Network
66406642
PortMismatch
66416643
# The cookie's source scheme value does not match the request origin's scheme.
66426644
SchemeMismatch
6645+
# Unpartitioned cookie access from an anonymous context was blocked.
6646+
AnonymousContext
66436647

66446648
# Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
66456649
experimental type CookieExemptionReason extends string
@@ -13303,6 +13307,21 @@ experimental domain BluetoothEmulation
1330313307
GATTOperationType type
1330413308
integer code
1330513309

13310+
# Adds a service with |uuid| to the peripheral with |address|.
13311+
command addService
13312+
parameters
13313+
string address
13314+
string serviceUuid
13315+
returns
13316+
# An identifier that uniquely represents this service.
13317+
string id
13318+
13319+
# Removes the service respresented by |id| from the peripheral with |address|.
13320+
command removeService
13321+
parameters
13322+
string address
13323+
string id
13324+
1330613325
# Event for when a GATT operation of |type| to the peripheral with |address|
1330713326
# happened.
1330813327
event gattOperationReceived

0 commit comments

Comments
 (0)