chrome-devtools-frontend 1.0.1640841 → 1.0.1642246

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.
Files changed (46) hide show
  1. package/front_end/core/host/AidaGcaTranslation.ts +17 -1
  2. package/front_end/core/sdk/sdk-meta.ts +27 -0
  3. package/front_end/generated/Deprecation.ts +16 -0
  4. package/front_end/generated/InspectorBackendCommands.ts +1 -1
  5. package/front_end/generated/protocol.ts +1 -0
  6. package/front_end/models/issues_manager/EmailVerificationRequestIssue.ts +340 -0
  7. package/front_end/models/issues_manager/descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
  8. package/front_end/models/issues_manager/descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
  9. package/front_end/models/issues_manager/descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
  10. package/front_end/models/issues_manager/descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
  11. package/front_end/models/issues_manager/descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
  12. package/front_end/models/issues_manager/descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
  13. package/front_end/models/issues_manager/descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
  14. package/front_end/models/issues_manager/descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
  15. package/front_end/models/issues_manager/descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
  16. package/front_end/models/issues_manager/descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
  17. package/front_end/models/issues_manager/descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
  18. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
  19. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
  20. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
  21. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
  22. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
  23. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
  24. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
  25. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
  26. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
  27. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
  28. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
  29. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
  30. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
  31. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
  32. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
  33. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
  34. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
  35. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
  36. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
  37. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
  38. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
  39. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
  40. package/front_end/models/issues_manager/descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
  41. package/front_end/models/javascript_metadata/NativeFunctions.js +10 -1
  42. package/front_end/services/puppeteer/PuppeteerConnection.ts +16 -2
  43. package/front_end/third_party/chromium/README.chromium +1 -1
  44. package/front_end/ui/components/buttons/button.css +0 -6
  45. package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
  46. package/package.json +1 -1
@@ -231,6 +231,18 @@ function inFileEditRequestToSourceFile(request: AIDA.CompletionRequest): GCA.Sou
231
231
  return sourceFile;
232
232
  }
233
233
 
234
+ /**
235
+ * Sanitizes a label value to conform to the GCP label value regex constraint:
236
+ * `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
237
+ *
238
+ * This converts the value to lowercase, replaces any character that is not a
239
+ * lowercase letter, digit, underscore, or hyphen with an underscore, and
240
+ * truncates the value to 63 characters.
241
+ */
242
+ function sanitizeLabelValue(value: string): string {
243
+ return value.toLowerCase().replace(/[^\p{Ll}\p{Lo}\p{N}_-]/gu, '_').substring(0, 63);
244
+ }
245
+
234
246
  /* eslint-disable @typescript-eslint/naming-convention */
235
247
  function buildLabels(request: AidaRequest, gcaRequest: GCA.GenerateContentRequest): void {
236
248
  const labels: Record<string, string> = {};
@@ -270,7 +282,11 @@ function buildLabels(request: AidaRequest, gcaRequest: GCA.GenerateContentReques
270
282
  }
271
283
 
272
284
  if (Object.keys(labels).length > 0) {
273
- gcaRequest.labels = labels;
285
+ const sanitizedLabels: Record<string, string> = {};
286
+ for (const [key, value] of Object.entries(labels)) {
287
+ sanitizedLabels[key] = sanitizeLabelValue(value);
288
+ }
289
+ gcaRequest.labels = sanitizedLabels;
274
290
  }
275
291
  }
276
292
  /* eslint-enable @typescript-eslint/naming-convention */
@@ -301,6 +301,18 @@ const UIStrings = {
301
301
  * @description A drop-down menu option to emulate an OS text scale of 200%
302
302
  */
303
303
  osTextScaleEmulation200: '200%',
304
+ /**
305
+ * @description A drop-down menu option to emulate an OS text scale of 250%
306
+ */
307
+ osTextScaleEmulation250: '250%',
308
+ /**
309
+ * @description A drop-down menu option to emulate an OS text scale of 300%
310
+ */
311
+ osTextScaleEmulation300: '300%',
312
+ /**
313
+ * @description A drop-down menu option to emulate an OS text scale of 350%
314
+ */
315
+ osTextScaleEmulation350: '350%',
304
316
  /**
305
317
  * @description Text that refers to disabling local fonts
306
318
  */
@@ -1054,6 +1066,21 @@ Common.Settings.registerSettingExtension({
1054
1066
  text: i18nLazyString(UIStrings.osTextScaleEmulation200),
1055
1067
  value: '2',
1056
1068
  },
1069
+ {
1070
+ title: i18nLazyString(UIStrings.osTextScaleEmulation250),
1071
+ text: i18nLazyString(UIStrings.osTextScaleEmulation250),
1072
+ value: '2.5',
1073
+ },
1074
+ {
1075
+ title: i18nLazyString(UIStrings.osTextScaleEmulation300),
1076
+ text: i18nLazyString(UIStrings.osTextScaleEmulation300),
1077
+ value: '3',
1078
+ },
1079
+ {
1080
+ title: i18nLazyString(UIStrings.osTextScaleEmulation350),
1081
+ text: i18nLazyString(UIStrings.osTextScaleEmulation350),
1082
+ value: '3.5',
1083
+ },
1057
1084
  ],
1058
1085
  tags: [
1059
1086
  i18nLazyString(UIStrings.query),
@@ -274,6 +274,14 @@ export const UIStrings = {
274
274
  * @description This warning occurs when the deprecated `BluetoothRemoteGATTCharacteristic.writeValue()` method is used. Developers should use `writeValueWithResponse()` or `writeValueWithoutResponse()` instead.
275
275
  */
276
276
  WebBluetoothRemoteCharacteristicWriteValue: "`BluetoothRemoteGATTCharacteristic.writeValue()` is deprecated. Use `writeValueWithResponse()` or `writeValueWithoutResponse()` instead.",
277
+ /**
278
+ * @description Warning for using the deprecated 'incomingHighWaterMark' attribute on WebTransportDatagramDuplexStream. Developers should use 'incomingMaxBufferedDatagrams' instead.
279
+ */
280
+ WebTransportDatagramDuplexStreamIncomingHighWaterMark: "WebTransportDatagramDuplexStream.incomingHighWaterMark has been renamed to incomingMaxBufferedDatagrams. incomingHighWaterMark will be removed in a future version of Chrome.",
281
+ /**
282
+ * @description Warning for using the deprecated 'outgoingHighWaterMark' attribute on WebTransportDatagramDuplexStream. Developers should use 'outgoingMaxBufferedDatagrams' instead.
283
+ */
284
+ WebTransportDatagramDuplexStreamOutgoingHighWaterMark: "WebTransportDatagramDuplexStream.outgoingHighWaterMark has been renamed to outgoingMaxBufferedDatagrams. outgoingHighWaterMark will be removed in a future version of Chrome.",
277
285
  /**
278
286
  * @description Warning displayed to developers that they are using `XMLHttpRequest` API in a way that they expect an unsupported character encoding `UTF-16` could be used in the server reply.
279
287
  */
@@ -439,6 +447,14 @@ export const DEPRECATIONS_METADATA: Partial<Record<string, DeprecationDescriptor
439
447
  "WebBluetoothRemoteCharacteristicWriteValue": {
440
448
  "chromeStatusFeature": 5088568590598144
441
449
  },
450
+ "WebTransportDatagramDuplexStreamIncomingHighWaterMark": {
451
+ "chromeStatusFeature": 5143839699501056,
452
+ "milestone": 156
453
+ },
454
+ "WebTransportDatagramDuplexStreamOutgoingHighWaterMark": {
455
+ "chromeStatusFeature": 5143839699501056,
456
+ "milestone": 156
457
+ },
442
458
  "XHRJSONEncodingDetection": {
443
459
  "milestone": 93
444
460
  },
@@ -1038,7 +1038,7 @@ inspectorBackend.registerEnum("Page.AdFrameExplanation", {ParentIsAd: "ParentIsA
1038
1038
  inspectorBackend.registerEnum("Page.SecureContextType", {Secure: "Secure", SecureLocalhost: "SecureLocalhost", InsecureScheme: "InsecureScheme", InsecureAncestor: "InsecureAncestor"});
1039
1039
  inspectorBackend.registerEnum("Page.CrossOriginIsolatedContextType", {Isolated: "Isolated", NotIsolated: "NotIsolated", NotIsolatedFeatureDisabled: "NotIsolatedFeatureDisabled"});
1040
1040
  inspectorBackend.registerEnum("Page.GatedAPIFeatures", {SharedArrayBuffers: "SharedArrayBuffers", SharedArrayBuffersTransferAllowed: "SharedArrayBuffersTransferAllowed", PerformanceMeasureMemory: "PerformanceMeasureMemory", PerformanceProfile: "PerformanceProfile"});
1041
- inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AllScreensCapture: "all-screens-capture", AmbientLightSensor: "ambient-light-sensor", AriaNotify: "aria-notify", AttributionReporting: "attribution-reporting", Autofill: "autofill", Autoplay: "autoplay", Bluetooth: "bluetooth", BrowsingTopics: "browsing-topics", Camera: "camera", CapturedSurfaceControl: "captured-surface-control", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaHighEntropyValues: "ch-ua-high-entropy-values", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactors: "ch-ua-form-factors", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", ControlledFrame: "controlled-frame", CrossOriginIsolated: "cross-origin-isolated", DeferredFetch: "deferred-fetch", DeferredFetchMinimal: "deferred-fetch-minimal", DeviceAttributes: "device-attributes", DigitalCredentialsCreate: "digital-credentials-create", DigitalCredentialsGet: "digital-credentials-get", DirectSockets: "direct-sockets", DirectSocketsMulticast: "direct-sockets-multicast", DirectSocketsPrivate: "direct-sockets-private", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", InterestCohort: "interest-cohort", JoinAdInterestGroup: "join-ad-interest-group", KeyboardMap: "keyboard-map", LanguageDetector: "language-detector", LanguageModel: "language-model", LocalFonts: "local-fonts", LocalNetwork: "local-network", LocalNetworkAccess: "local-network-access", LoopbackNetwork: "loopback-network", Magnetometer: "magnetometer", ManualText: "manual-text", MediaPlaybackWhileNotVisible: "media-playback-while-not-visible", Microphone: "microphone", Midi: "midi", OnDeviceSpeechRecognition: "on-device-speech-recognition", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateAggregation: "private-aggregation", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsCreate: "publickey-credentials-create", PublickeyCredentialsGet: "publickey-credentials-get", RecordAdAuctionEvents: "record-ad-auction-events", Rewriter: "rewriter", RunAdAuction: "run-ad-auction", ScreenWakeLock: "screen-wake-lock", Serial: "serial", SharedStorage: "shared-storage", SharedStorageSelectUrl: "shared-storage-select-url", SmartCard: "smart-card", SpeakerSelection: "speaker-selection", StorageAccess: "storage-access", SubApps: "sub-apps", Summarizer: "summarizer", SyncXhr: "sync-xhr", Tools: "tools", Translator: "translator", Unload: "unload", Usb: "usb", UsbUnrestricted: "usb-unrestricted", VerticalScroll: "vertical-scroll", WebAppInstallation: "web-app-installation", WebPrinting: "web-printing", WebShare: "web-share", WindowManagement: "window-management", Writer: "writer", XrSpatialTracking: "xr-spatial-tracking"});
1041
+ inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AllScreensCapture: "all-screens-capture", AmbientLightSensor: "ambient-light-sensor", AriaNotify: "aria-notify", AttributionReporting: "attribution-reporting", Autofill: "autofill", Autoplay: "autoplay", Bluetooth: "bluetooth", BrowsingTopics: "browsing-topics", Camera: "camera", CapturedSurfaceControl: "captured-surface-control", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaHighEntropyValues: "ch-ua-high-entropy-values", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactors: "ch-ua-form-factors", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", ControlledFrame: "controlled-frame", CrossOriginIsolated: "cross-origin-isolated", DeferredFetch: "deferred-fetch", DeferredFetchMinimal: "deferred-fetch-minimal", DeviceAttributes: "device-attributes", DigitalCredentialsCreate: "digital-credentials-create", DigitalCredentialsGet: "digital-credentials-get", DirectSockets: "direct-sockets", DirectSocketsMulticast: "direct-sockets-multicast", DirectSocketsPrivate: "direct-sockets-private", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", InterestCohort: "interest-cohort", JoinAdInterestGroup: "join-ad-interest-group", KeyboardMap: "keyboard-map", LanguageDetector: "language-detector", LanguageModel: "language-model", LocalFonts: "local-fonts", LocalNetwork: "local-network", LocalNetworkAccess: "local-network-access", LoopbackNetwork: "loopback-network", Magnetometer: "magnetometer", ManualText: "manual-text", MediaPlaybackWhileNotVisible: "media-playback-while-not-visible", Microphone: "microphone", Midi: "midi", OnDeviceSpeechRecognition: "on-device-speech-recognition", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateAggregation: "private-aggregation", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsCreate: "publickey-credentials-create", PublickeyCredentialsGet: "publickey-credentials-get", RecordAdAuctionEvents: "record-ad-auction-events", Rewriter: "rewriter", RunAdAuction: "run-ad-auction", ScreenWakeLock: "screen-wake-lock", Serial: "serial", SharedStorage: "shared-storage", SharedStorageSelectUrl: "shared-storage-select-url", SmartCard: "smart-card", SpeakerSelection: "speaker-selection", StorageAccess: "storage-access", SubApps: "sub-apps", Summarizer: "summarizer", SyncXhr: "sync-xhr", Tools: "tools", Translator: "translator", Unload: "unload", Usb: "usb", UsbUnrestricted: "usb-unrestricted", VerticalScroll: "vertical-scroll", WebAppInstallation: "web-app-installation", Webnn: "webnn", WebPrinting: "web-printing", WebShare: "web-share", WindowManagement: "window-management", Writer: "writer", XrSpatialTracking: "xr-spatial-tracking"});
1042
1042
  inspectorBackend.registerEnum("Page.PermissionsPolicyBlockReason", {Header: "Header", IframeAttribute: "IframeAttribute", InFencedFrameTree: "InFencedFrameTree", InIsolatedApp: "InIsolatedApp"});
1043
1043
  inspectorBackend.registerEnum("Page.OriginTrialTokenStatus", {Success: "Success", NotSupported: "NotSupported", Insecure: "Insecure", Expired: "Expired", WrongOrigin: "WrongOrigin", InvalidSignature: "InvalidSignature", Malformed: "Malformed", WrongVersion: "WrongVersion", FeatureDisabled: "FeatureDisabled", TokenDisabled: "TokenDisabled", FeatureDisabledForUser: "FeatureDisabledForUser", UnknownTrial: "UnknownTrial"});
1044
1044
  inspectorBackend.registerEnum("Page.OriginTrialStatus", {Enabled: "Enabled", ValidTokenNotProvided: "ValidTokenNotProvided", OSNotSupported: "OSNotSupported", TrialNotAllowed: "TrialNotAllowed"});
@@ -14655,6 +14655,7 @@ export namespace Page {
14655
14655
  UsbUnrestricted = 'usb-unrestricted',
14656
14656
  VerticalScroll = 'vertical-scroll',
14657
14657
  WebAppInstallation = 'web-app-installation',
14658
+ Webnn = 'webnn',
14658
14659
  WebPrinting = 'web-printing',
14659
14660
  WebShare = 'web-share',
14660
14661
  WindowManagement = 'window-management',
@@ -290,4 +290,344 @@ const issueDescriptions = new Map<Protocol.Audits.EmailVerificationRequestIssueR
290
290
  }],
291
291
  },
292
292
  ],
293
+ [
294
+ Protocol.Audits.EmailVerificationRequestIssueReason.AccountsHttpNotFound,
295
+ {
296
+ file: 'emailVerificationRequestAccountsHttpNotFound.md',
297
+ links: [{
298
+ link: 'https://github.com/WICG/email-verification-protocol',
299
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
300
+ }],
301
+ },
302
+ ],
303
+ [
304
+ Protocol.Audits.EmailVerificationRequestIssueReason.AccountsNoResponse,
305
+ {
306
+ file: 'emailVerificationRequestAccountsNoResponse.md',
307
+ links: [{
308
+ link: 'https://github.com/WICG/email-verification-protocol',
309
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
310
+ }],
311
+ },
312
+ ],
313
+ [
314
+ Protocol.Audits.EmailVerificationRequestIssueReason.AccountsInvalidResponse,
315
+ {
316
+ file: 'emailVerificationRequestAccountsInvalidResponse.md',
317
+ links: [{
318
+ link: 'https://github.com/WICG/email-verification-protocol',
319
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
320
+ }],
321
+ },
322
+ ],
323
+ [
324
+ Protocol.Audits.EmailVerificationRequestIssueReason.AccountsInvalidContentType,
325
+ {
326
+ file: 'emailVerificationRequestAccountsInvalidContentType.md',
327
+ links: [{
328
+ link: 'https://github.com/WICG/email-verification-protocol',
329
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
330
+ }],
331
+ },
332
+ ],
333
+ [
334
+ Protocol.Audits.EmailVerificationRequestIssueReason.AccountsEmptyList,
335
+ {
336
+ file: 'emailVerificationRequestAccountsEmptyList.md',
337
+ links: [{
338
+ link: 'https://github.com/WICG/email-verification-protocol',
339
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
340
+ }],
341
+ },
342
+ ],
343
+ [
344
+ Protocol.Audits.EmailVerificationRequestIssueReason.EmailVerificationWellKnownHttpNotFound,
345
+ {
346
+ file: 'emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md',
347
+ links: [{
348
+ link: 'https://github.com/WICG/email-verification-protocol',
349
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
350
+ }],
351
+ },
352
+ ],
353
+ [
354
+ Protocol.Audits.EmailVerificationRequestIssueReason.EmailVerificationWellKnownNoResponse,
355
+ {
356
+ file: 'emailVerificationRequestEmailVerificationWellKnownNoResponse.md',
357
+ links: [{
358
+ link: 'https://github.com/WICG/email-verification-protocol',
359
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
360
+ }],
361
+ },
362
+ ],
363
+ [
364
+ Protocol.Audits.EmailVerificationRequestIssueReason.EmailVerificationWellKnownInvalidResponse,
365
+ {
366
+ file: 'emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md',
367
+ links: [{
368
+ link: 'https://github.com/WICG/email-verification-protocol',
369
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
370
+ }],
371
+ },
372
+ ],
373
+ [
374
+ Protocol.Audits.EmailVerificationRequestIssueReason.EmailVerificationWellKnownInvalidContentType,
375
+ {
376
+ file: 'emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md',
377
+ links: [{
378
+ link: 'https://github.com/WICG/email-verification-protocol',
379
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
380
+ }],
381
+ },
382
+ ],
383
+ [
384
+ Protocol.Audits.EmailVerificationRequestIssueReason.JwksHttpNotFound,
385
+ {
386
+ file: 'emailVerificationRequestJwksHttpNotFound.md',
387
+ links: [{
388
+ link: 'https://github.com/WICG/email-verification-protocol',
389
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
390
+ }],
391
+ },
392
+ ],
393
+ [
394
+ Protocol.Audits.EmailVerificationRequestIssueReason.JwksInvalidResponse,
395
+ {
396
+ file: 'emailVerificationRequestJwksInvalidResponse.md',
397
+ links: [{
398
+ link: 'https://github.com/WICG/email-verification-protocol',
399
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
400
+ }],
401
+ },
402
+ ],
403
+ [
404
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtUnsupportedHeaderAlg,
405
+ {
406
+ file: 'emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md',
407
+ links: [{
408
+ link: 'https://github.com/WICG/email-verification-protocol',
409
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
410
+ }],
411
+ },
412
+ ],
413
+ [
414
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtMissingIss,
415
+ {
416
+ file: 'emailVerificationRequestTokenVerificationSdJwtMissingIss.md',
417
+ links: [{
418
+ link: 'https://github.com/WICG/email-verification-protocol',
419
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
420
+ }],
421
+ },
422
+ ],
423
+ [
424
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtMissingIat,
425
+ {
426
+ file: 'emailVerificationRequestTokenVerificationSdJwtMissingIat.md',
427
+ links: [{
428
+ link: 'https://github.com/WICG/email-verification-protocol',
429
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
430
+ }],
431
+ },
432
+ ],
433
+ [
434
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtMissingCnf,
435
+ {
436
+ file: 'emailVerificationRequestTokenVerificationSdJwtMissingCnf.md',
437
+ links: [{
438
+ link: 'https://github.com/WICG/email-verification-protocol',
439
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
440
+ }],
441
+ },
442
+ ],
443
+ [
444
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtMissingEmail,
445
+ {
446
+ file: 'emailVerificationRequestTokenVerificationSdJwtMissingEmail.md',
447
+ links: [{
448
+ link: 'https://github.com/WICG/email-verification-protocol',
449
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
450
+ }],
451
+ },
452
+ ],
453
+ [
454
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtInvalidIssuedAt,
455
+ {
456
+ file: 'emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md',
457
+ links: [{
458
+ link: 'https://github.com/WICG/email-verification-protocol',
459
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
460
+ }],
461
+ },
462
+ ],
463
+ [
464
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtInvalidIssuer,
465
+ {
466
+ file: 'emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md',
467
+ links: [{
468
+ link: 'https://github.com/WICG/email-verification-protocol',
469
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
470
+ }],
471
+ },
472
+ ],
473
+ [
474
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtJwksMissingKeys,
475
+ {
476
+ file: 'emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md',
477
+ links: [{
478
+ link: 'https://github.com/WICG/email-verification-protocol',
479
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
480
+ }],
481
+ },
482
+ ],
483
+ [
484
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtSignatureFailed,
485
+ {
486
+ file: 'emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md',
487
+ links: [{
488
+ link: 'https://github.com/WICG/email-verification-protocol',
489
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
490
+ }],
491
+ },
492
+ ],
493
+ [
494
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtInvalidEmailVerified,
495
+ {
496
+ file: 'emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md',
497
+ links: [{
498
+ link: 'https://github.com/WICG/email-verification-protocol',
499
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
500
+ }],
501
+ },
502
+ ],
503
+ [
504
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtInvalidEmail,
505
+ {
506
+ file: 'emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md',
507
+ links: [{
508
+ link: 'https://github.com/WICG/email-verification-protocol',
509
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
510
+ }],
511
+ },
512
+ ],
513
+ [
514
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationSdJwtInvalidHolderKey,
515
+ {
516
+ file: 'emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md',
517
+ links: [{
518
+ link: 'https://github.com/WICG/email-verification-protocol',
519
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
520
+ }],
521
+ },
522
+ ],
523
+ [
524
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbInvalidTyp,
525
+ {
526
+ file: 'emailVerificationRequestTokenVerificationKbInvalidTyp.md',
527
+ links: [{
528
+ link: 'https://github.com/WICG/email-verification-protocol',
529
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
530
+ }],
531
+ },
532
+ ],
533
+ [
534
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbMissingAud,
535
+ {
536
+ file: 'emailVerificationRequestTokenVerificationKbMissingAud.md',
537
+ links: [{
538
+ link: 'https://github.com/WICG/email-verification-protocol',
539
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
540
+ }],
541
+ },
542
+ ],
543
+ [
544
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbMissingNonce,
545
+ {
546
+ file: 'emailVerificationRequestTokenVerificationKbMissingNonce.md',
547
+ links: [{
548
+ link: 'https://github.com/WICG/email-verification-protocol',
549
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
550
+ }],
551
+ },
552
+ ],
553
+ [
554
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbMissingIat,
555
+ {
556
+ file: 'emailVerificationRequestTokenVerificationKbMissingIat.md',
557
+ links: [{
558
+ link: 'https://github.com/WICG/email-verification-protocol',
559
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
560
+ }],
561
+ },
562
+ ],
563
+ [
564
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbMissingSdHash,
565
+ {
566
+ file: 'emailVerificationRequestTokenVerificationKbMissingSdHash.md',
567
+ links: [{
568
+ link: 'https://github.com/WICG/email-verification-protocol',
569
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
570
+ }],
571
+ },
572
+ ],
573
+ [
574
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbInvalidIssuedAt,
575
+ {
576
+ file: 'emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md',
577
+ links: [{
578
+ link: 'https://github.com/WICG/email-verification-protocol',
579
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
580
+ }],
581
+ },
582
+ ],
583
+ [
584
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbInvalidAudience,
585
+ {
586
+ file: 'emailVerificationRequestTokenVerificationKbInvalidAudience.md',
587
+ links: [{
588
+ link: 'https://github.com/WICG/email-verification-protocol',
589
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
590
+ }],
591
+ },
592
+ ],
593
+ [
594
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbInvalidNonce,
595
+ {
596
+ file: 'emailVerificationRequestTokenVerificationKbInvalidNonce.md',
597
+ links: [{
598
+ link: 'https://github.com/WICG/email-verification-protocol',
599
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
600
+ }],
601
+ },
602
+ ],
603
+ [
604
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbInvalidSdHash,
605
+ {
606
+ file: 'emailVerificationRequestTokenVerificationKbInvalidSdHash.md',
607
+ links: [{
608
+ link: 'https://github.com/WICG/email-verification-protocol',
609
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
610
+ }],
611
+ },
612
+ ],
613
+ [
614
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbMissingCnf,
615
+ {
616
+ file: 'emailVerificationRequestTokenVerificationKbMissingCnf.md',
617
+ links: [{
618
+ link: 'https://github.com/WICG/email-verification-protocol',
619
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
620
+ }],
621
+ },
622
+ ],
623
+ [
624
+ Protocol.Audits.EmailVerificationRequestIssueReason.TokenVerificationKbSignatureFailed,
625
+ {
626
+ file: 'emailVerificationRequestTokenVerificationKbSignatureFailed.md',
627
+ links: [{
628
+ link: 'https://github.com/WICG/email-verification-protocol',
629
+ linkTitle: i18nLazyString(UIStrings.emailVerification),
630
+ }],
631
+ },
632
+ ],
293
633
  ]);
@@ -0,0 +1 @@
1
+ # Email verification request failed because the accounts endpoint returned an empty list of accounts.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the accounts endpoint was not found (HTTP 404).
@@ -0,0 +1 @@
1
+ # Email verification request failed because the accounts endpoint returned an invalid Content-Type.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the accounts endpoint returned an invalid response.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the accounts endpoint did not respond.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the email verification well-known file was not found (HTTP 404).
@@ -0,0 +1 @@
1
+ # Email verification request failed because the email verification well-known file returned an invalid Content-Type.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the email verification well-known file returned an invalid response.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the email verification well-known file did not respond.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the JWKS endpoint was not found (HTTP 404).
@@ -0,0 +1 @@
1
+ # Email verification request failed because the JWKS endpoint returned an invalid response.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding audience claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding issued at claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding nonce claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding SD hash claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding type header is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding audience claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding confirmation claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding issued at claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding nonce claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding SD hash claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the key binding signature verification failed.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT email claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT email verified claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT holder key is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT issued at claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT issuer claim is invalid.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT JWKS is missing keys.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT confirmation claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT email claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT issued at claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT issuer claim is missing.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT signature verification failed.
@@ -0,0 +1 @@
1
+ # Email verification request failed because the SD-JWT signature header algorithm is unsupported.
@@ -226,7 +226,7 @@ export const NativeFunctions = [
226
226
  {
227
227
  name: "create",
228
228
  signatures: [["?options"]],
229
- receivers: ["CredentialsContainer","Classifier"]
229
+ receivers: ["CredentialsContainer","Classifier","SemanticEmbedder"]
230
230
  },
231
231
  {
232
232
  name: "defineProperty",
@@ -8241,6 +8241,11 @@ export const NativeFunctions = [
8241
8241
  name: "WorkletAnimation",
8242
8242
  signatures: [["animatorName","effects","?timeline","?options"]]
8243
8243
  },
8244
+ {
8245
+ name: "availability",
8246
+ signatures: [["?options"]],
8247
+ receivers: ["SemanticEmbedder"]
8248
+ },
8244
8249
  {
8245
8250
  name: "classify",
8246
8251
  signatures: [["input","?options"]]
@@ -8257,6 +8262,10 @@ export const NativeFunctions = [
8257
8262
  name: "LanguageModelToolError",
8258
8263
  signatures: [["init"]]
8259
8264
  },
8265
+ {
8266
+ name: "embed",
8267
+ signatures: [["input","?options"]]
8268
+ },
8260
8269
  {
8261
8270
  name: "queryFeatureSupport",
8262
8271
  signatures: [["feature"]]
@@ -7,6 +7,14 @@ import type {ProtocolMapping} from '../../generated/protocol-mapping.js';
7
7
  import type * as Protocol from '../../generated/protocol.js';
8
8
  import * as puppeteer from '../../third_party/puppeteer/puppeteer.js';
9
9
 
10
+ // Matches the ProtocolError found in node_modules/puppeteer-core/src/common/Errors.ts
11
+ class ProtocolError extends Error {
12
+ constructor(message: string, public code?: number, public data?: string) {
13
+ super(message);
14
+ this.name = 'ProtocolError';
15
+ }
16
+ }
17
+
10
18
  /**
11
19
  * This class serves as a puppeteer.Connection while sending/receiving CDP messages
12
20
  * over DevTools' own SessionRouter.
@@ -16,7 +24,7 @@ import * as puppeteer from '../../third_party/puppeteer/puppeteer.js';
16
24
  *
17
25
  * Since we see all CDPEvents, we filter out the ones whose session we don't know about.
18
26
  */
19
- class PuppeteerConnectionAdapter extends puppeteer.Connection implements
27
+ export class PuppeteerConnectionAdapter extends puppeteer.Connection implements
20
28
  ProtocolClient.CDPConnection.CDPConnectionObserver {
21
29
  readonly #connection: ProtocolClient.CDPConnection.CDPConnection;
22
30
  readonly #sessionId: Protocol.Target.SessionID;
@@ -41,7 +49,13 @@ class PuppeteerConnectionAdapter extends puppeteer.Connection implements
41
49
  method as ProtocolClient.CDPConnection.Command,
42
50
  params as ProtocolClient.CDPConnection.CommandParams<ProtocolClient.CDPConnection.Command>,
43
51
  sessionId ?? this.#sessionId)
44
- .then(response => 'result' in response ? response.result : {});
52
+ .then(response => {
53
+ if ('error' in response) {
54
+ throw new ProtocolError(response.error.message, response.error.code, response.error.data);
55
+ }
56
+
57
+ return response.result;
58
+ });
45
59
  }
46
60
 
47
61
  onEvent<T extends keyof ProtocolMapping.Events>(event: ProtocolClient.CDPConnection.CDPEvent<T>): void {
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: d56b17376efe8dc18fbf38aee20fe155821dd910
4
+ Revision: 3b896e6bd479ace00cb8f591bd5b8905a94459a1
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -358,9 +358,3 @@ button {
358
358
  transform: rotate(360deg);
359
359
  }
360
360
  }
361
-
362
- @media(forced-colors: active) {
363
- .toggled devtools-icon {
364
- background-color: canvas;
365
- }
366
- }
@@ -214,9 +214,11 @@ export const knownContextValues = new Set([
214
214
  '18',
215
215
  '19',
216
216
  '2',
217
+ '2.5',
217
218
  '20',
218
219
  '200%',
219
220
  '3',
221
+ '3.5',
220
222
  '3g',
221
223
  '4',
222
224
  '42',
package/package.json CHANGED
@@ -92,5 +92,5 @@
92
92
  "webidl2": "24.5.0",
93
93
  "yargs": "17.7.2"
94
94
  },
95
- "version": "1.0.1640841"
95
+ "version": "1.0.1642246"
96
96
  }