chrome-devtools-frontend 1.0.1679060 → 1.0.1679704

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 (125) hide show
  1. package/front_end/core/root/Runtime.ts +5 -0
  2. package/front_end/core/sdk/CSSMetadata.ts +1 -6
  3. package/front_end/core/sdk/DOMModel.ts +44 -3
  4. package/front_end/core/sdk/EmulationModel.ts +18 -9
  5. package/front_end/core/sdk/SDKSettings.ts +66 -0
  6. package/front_end/core/sdk/sdk-meta.ts +0 -430
  7. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +19 -17
  8. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +385 -0
  9. package/front_end/generated/InspectorBackendCommands.ts +1 -1
  10. package/front_end/generated/protocol.ts +1 -0
  11. package/front_end/models/emulation/DeviceModeModel.ts +9 -2
  12. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +48 -0
  13. package/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
  14. package/front_end/models/issues_manager/descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
  15. package/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
  16. package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
  17. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  18. package/front_end/models/javascript_metadata/NativeFunctions.js +4 -0
  19. package/front_end/panels/console/ConsoleViewMessage.ts +56 -20
  20. package/front_end/panels/console/consoleView.css +4 -2
  21. package/front_end/panels/emulation/DeviceModeView.ts +11 -2
  22. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +0 -10
  23. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +6 -6
  24. package/front_end/panels/issues/AffectedCookiesView.ts +8 -8
  25. package/front_end/panels/issues/AffectedDescendantsWithinSelectElementView.ts +2 -2
  26. package/front_end/panels/issues/AffectedDirectivesView.ts +11 -12
  27. package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +4 -4
  28. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  29. package/front_end/panels/issues/AffectedHeavyAdView.ts +10 -14
  30. package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
  31. package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +1 -5
  32. package/front_end/panels/issues/AffectedPartitioningBlobURLView.ts +4 -4
  33. package/front_end/panels/issues/AffectedPermissionElementsView.ts +1 -1
  34. package/front_end/panels/issues/AffectedResourcesView.ts +5 -5
  35. package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +9 -9
  36. package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +15 -14
  37. package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
  38. package/front_end/panels/issues/AffectedTrackingSitesView.ts +1 -5
  39. package/front_end/panels/issues/CorsIssueDetailsView.ts +47 -47
  40. package/front_end/panels/issues/GenericIssueDetailsView.ts +3 -3
  41. package/front_end/panels/issues/HiddenIssuesRow.ts +2 -2
  42. package/front_end/panels/issues/IssueKindView.ts +6 -6
  43. package/front_end/panels/issues/IssueView.ts +15 -16
  44. package/front_end/panels/issues/IssuesPane.ts +32 -37
  45. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  46. package/front_end/panels/issues/issues-meta.ts +2 -2
  47. package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +106 -91
  48. package/front_end/panels/profiler/HeapDetachedElementsView.ts +4 -7
  49. package/front_end/panels/profiler/heapDetachedElementsDataGrid.css +14 -0
  50. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +38 -29
  51. package/front_end/panels/sources/SourcesView.ts +16 -12
  52. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +214 -51
  53. package/front_end/panels/whats_new/ReleaseNoteText.ts +9 -15
  54. package/front_end/panels/whats_new/resources/WNDT.md +5 -8
  55. package/front_end/third_party/chromium/README.chromium +1 -1
  56. package/front_end/third_party/puppeteer/README.chromium +2 -2
  57. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +8 -0
  58. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +33 -18
  59. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Frame.js +2 -2
  60. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Frame.js.map +1 -1
  61. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
  62. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +11 -4
  63. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
  64. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
  65. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +1 -2
  66. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
  67. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js +1 -1
  68. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js.map +1 -1
  69. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
  71. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.d.ts +16 -2
  72. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.d.ts.map +1 -1
  73. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.js +16 -3
  74. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.js.map +1 -1
  75. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +5 -0
  77. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  79. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +1 -2
  80. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
  81. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/FirefoxLauncher.js +0 -1
  83. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/FirefoxLauncher.js.map +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.d.ts +8 -0
  85. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  86. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.js +11 -0
  87. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.js.map +1 -1
  88. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +1 -3
  89. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
  90. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +1 -10
  91. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
  92. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/util/fs.d.ts.map +1 -1
  93. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/util/fs.js +2 -1
  94. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/util/fs.js.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/puppeteer/node-env-setup.js +69 -1
  96. package/front_end/third_party/puppeteer/package/lib/puppeteer/node-env-setup.js.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  98. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/types.d.ts +8 -0
  100. package/front_end/third_party/puppeteer/package/package.json +2 -2
  101. package/front_end/third_party/puppeteer/package/src/api/Frame.ts +2 -2
  102. package/front_end/third_party/puppeteer/package/src/api/Page.ts +15 -4
  103. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +1 -2
  104. package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +1 -4
  105. package/front_end/third_party/puppeteer/package/src/common/util.ts +1 -1
  106. package/front_end/third_party/puppeteer/package/src/environment.ts +35 -5
  107. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +5 -0
  108. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +7 -5
  109. package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +0 -1
  110. package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +12 -0
  111. package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +0 -14
  112. package/front_end/third_party/puppeteer/package/src/node/util/fs.ts +2 -1
  113. package/front_end/third_party/puppeteer/package/src/node-env-setup.ts +97 -1
  114. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  115. package/front_end/ui/comments/CommentAnchorResolver.ts +1 -2
  116. package/front_end/ui/comments/CommentOverlayManager.ts +30 -9
  117. package/front_end/ui/legacy/TextPrompt.ts +1 -1
  118. package/front_end/ui/legacy/Treeoutline.ts +22 -10
  119. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +5 -6
  120. package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
  121. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +9 -4
  122. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -43
  123. package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +2 -2
  124. package/mcp/mcp.ts +2 -0
  125. package/package.json +1 -1
@@ -164,6 +164,138 @@ const UIStrings = {
164
164
  * when the user wants to find settings related to color vision deficiency/color blindness.
165
165
  */
166
166
  colorVisionDeficiency: 'color vision deficiency',
167
+ /**
168
+ * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
169
+ */
170
+ doNotEmulateAnyVisionDeficiency: 'Do not emulate any vision deficiency',
171
+ /**
172
+ * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
173
+ */
174
+ emulateBlurredVision: 'Emulate blurred vision',
175
+ /**
176
+ * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
177
+ */
178
+ emulateReducedContrast: 'Emulate reduced contrast',
179
+ /**
180
+ * @description Name of a vision deficiency that can be emulated via the Rendering drawer.
181
+ */
182
+ blurredVision: 'Blurred vision',
183
+ /**
184
+ * @description Name of a vision deficiency that can be emulated via the Rendering drawer.
185
+ */
186
+ reducedContrast: 'Reduced contrast',
187
+ /**
188
+ * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
189
+ */
190
+ emulateProtanopia: 'Emulate protanopia (no red)',
191
+ /**
192
+ * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
193
+ */
194
+ protanopia: 'Protanopia (no red)',
195
+ /**
196
+ * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
197
+ */
198
+ emulateDeuteranopia: 'Emulate deuteranopia (no green)',
199
+ /**
200
+ * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
201
+ */
202
+ deuteranopia: 'Deuteranopia (no green)',
203
+ /**
204
+ * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
205
+ */
206
+ emulateTritanopia: 'Emulate tritanopia (no blue)',
207
+ /**
208
+ * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
209
+ */
210
+ tritanopia: 'Tritanopia (no blue)',
211
+ /**
212
+ * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
213
+ */
214
+ emulateAchromatopsia: 'Emulate achromatopsia (no color)',
215
+ /**
216
+ * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
217
+ */
218
+ achromatopsia: 'Achromatopsia (no color)',
219
+ /**
220
+ * @description Title of a setting under the Rendering drawer.
221
+ */
222
+ emulateVisionDeficiencies: 'Emulate vision deficiencies',
223
+ /**
224
+ * @description Title of a setting under the Rendering drawer.
225
+ */
226
+ emulateOsTextScale: 'Emulate OS text scale',
227
+ /**
228
+ * @description Title of a setting under the Rendering category that can be invoked through the Command Menu.
229
+ */
230
+ doNotEmulateOsTextScale: 'Do not emulate OS text scale',
231
+ /**
232
+ * @description A drop-down menu option to not emulate OS text scale.
233
+ */
234
+ osTextScaleEmulationNone: 'No emulation',
235
+ /**
236
+ * @description A drop-down menu option to emulate an OS text scale 85%.
237
+ */
238
+ osTextScaleEmulation85: '85%',
239
+ /**
240
+ * @description A drop-down menu option to emulate an OS text scale of 100%.
241
+ */
242
+ osTextScaleEmulation100: '100% (default)',
243
+ /**
244
+ * @description A drop-down menu option to emulate an OS text scale of 115%.
245
+ */
246
+ osTextScaleEmulation115: '115%',
247
+ /**
248
+ * @description A drop-down menu option to emulate an OS text scale of 130%.
249
+ */
250
+ osTextScaleEmulation130: '130%',
251
+ /**
252
+ * @description A drop-down menu option to emulate an OS text scale of 150%.
253
+ */
254
+ osTextScaleEmulation150: '150%',
255
+ /**
256
+ * @description A drop-down menu option to emulate an OS text scale of 180%.
257
+ */
258
+ osTextScaleEmulation180: '180%',
259
+ /**
260
+ * @description A drop-down menu option to emulate an OS text scale of 200%.
261
+ */
262
+ osTextScaleEmulation200: '200%',
263
+ /**
264
+ * @description A drop-down menu option to emulate an OS text scale of 250%.
265
+ */
266
+ osTextScaleEmulation250: '250%',
267
+ /**
268
+ * @description A drop-down menu option to emulate an OS text scale of 300%.
269
+ */
270
+ osTextScaleEmulation300: '300%',
271
+ /**
272
+ * @description A drop-down menu option to emulate an OS text scale of 350%.
273
+ */
274
+ osTextScaleEmulation350: '350%',
275
+ /**
276
+ * @description Text that refers to disabling local fonts.
277
+ */
278
+ disableLocalFonts: 'Disable local fonts',
279
+ /**
280
+ * @description Text that refers to enabling local fonts.
281
+ */
282
+ enableLocalFonts: 'Enable local fonts',
283
+ /**
284
+ * @description Title of a setting that disables AVIF format.
285
+ */
286
+ disableAvifFormat: 'Disable `AVIF` format',
287
+ /**
288
+ * @description Title of a setting that enables AVIF format.
289
+ */
290
+ enableAvifFormat: 'Enable `AVIF` format',
291
+ /**
292
+ * @description Title of a setting that disables JPEG XL format.
293
+ */
294
+ disableJpegXlFormat: 'Disable `JPEG XL` format',
295
+ /**
296
+ * @description Title of a setting that enables JPEG XL format.
297
+ */
298
+ enableJpegXlFormat: 'Enable `JPEG XL` format',
167
299
  /**
168
300
  * @description Title of an action that reloads the inspected page.
169
301
  */
@@ -553,3 +685,256 @@ SettingsUI.SettingUIRegistration.register(
553
685
  ],
554
686
  title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-reduced-motion'}),
555
687
  });
688
+
689
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.emulatedCSSMediaFeaturePrefersContrastSettingDescriptor, {
690
+ category: Common.Settings.SettingCategory.RENDERING,
691
+ options: [
692
+ {
693
+ title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'prefers-contrast'}),
694
+ text: i18nLazyString(UIStrings.noEmulation),
695
+ value: '',
696
+ },
697
+ {
698
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-contrast: more'}),
699
+ text: i18n.i18n.lockedLazyString('prefers-contrast: more'),
700
+ value: 'more',
701
+ },
702
+ {
703
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-contrast: less'}),
704
+ text: i18n.i18n.lockedLazyString('prefers-contrast: less'),
705
+ value: 'less',
706
+ },
707
+ {
708
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-contrast: custom'}),
709
+ text: i18n.i18n.lockedLazyString('prefers-contrast: custom'),
710
+ value: 'custom',
711
+ },
712
+ ],
713
+ tags: [
714
+ i18nLazyString(UIStrings.query),
715
+ ],
716
+ title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-contrast'}),
717
+ });
718
+
719
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedDataSettingDescriptor, {
720
+ category: Common.Settings.SettingCategory.RENDERING,
721
+ options: [
722
+ {
723
+ title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'prefers-reduced-data'}),
724
+ text: i18nLazyString(UIStrings.noEmulation),
725
+ value: '',
726
+ },
727
+ {
728
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-reduced-data: reduce'}),
729
+ text: i18n.i18n.lockedLazyString('prefers-reduced-data: reduce'),
730
+ value: 'reduce',
731
+ },
732
+ ],
733
+ tags: [
734
+ i18nLazyString(UIStrings.query),
735
+ ],
736
+ title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-reduced-data'}),
737
+ });
738
+
739
+ SettingsUI.SettingUIRegistration.register(
740
+ SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedTransparencySettingDescriptor, {
741
+ category: Common.Settings.SettingCategory.RENDERING,
742
+ options: [
743
+ {
744
+ title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'prefers-reduced-transparency'}),
745
+ text: i18nLazyString(UIStrings.noEmulation),
746
+ value: '',
747
+ },
748
+ {
749
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-reduced-transparency: reduce'}),
750
+ text: i18n.i18n.lockedLazyString('prefers-reduced-transparency: reduce'),
751
+ value: 'reduce',
752
+ },
753
+ ],
754
+ tags: [
755
+ i18nLazyString(UIStrings.query),
756
+ ],
757
+ title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-reduced-transparency'}),
758
+ });
759
+
760
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.emulatedCSSMediaFeatureColorGamutSettingDescriptor, {
761
+ category: Common.Settings.SettingCategory.RENDERING,
762
+ options: [
763
+ {
764
+ title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'color-gamut'}),
765
+ text: i18nLazyString(UIStrings.noEmulation),
766
+ value: '',
767
+ },
768
+ {
769
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'color-gamut: srgb'}),
770
+ text: i18n.i18n.lockedLazyString('color-gamut: srgb'),
771
+ value: 'srgb',
772
+ },
773
+ {
774
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'color-gamut: p3'}),
775
+ text: i18n.i18n.lockedLazyString('color-gamut: p3'),
776
+ value: 'p3',
777
+ },
778
+ {
779
+ title: i18nLazyString(UIStrings.emulateCss, {PH1: 'color-gamut: rec2020'}),
780
+ text: i18n.i18n.lockedLazyString('color-gamut: rec2020'),
781
+ value: 'rec2020',
782
+ },
783
+ ],
784
+ tags: [
785
+ i18nLazyString(UIStrings.query),
786
+ ],
787
+ title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'color-gamut'}),
788
+ });
789
+
790
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.emulatedVisionDeficiencySettingDescriptor, {
791
+ category: Common.Settings.SettingCategory.RENDERING,
792
+ options: [
793
+ {
794
+ title: i18nLazyString(UIStrings.doNotEmulateAnyVisionDeficiency),
795
+ text: i18nLazyString(UIStrings.noEmulation),
796
+ value: 'none',
797
+ },
798
+ {
799
+ title: i18nLazyString(UIStrings.emulateBlurredVision),
800
+ text: i18nLazyString(UIStrings.blurredVision),
801
+ value: 'blurredVision',
802
+ },
803
+ {
804
+ title: i18nLazyString(UIStrings.emulateReducedContrast),
805
+ text: i18nLazyString(UIStrings.reducedContrast),
806
+ value: 'reducedContrast',
807
+ },
808
+ {
809
+ title: i18nLazyString(UIStrings.emulateProtanopia),
810
+ text: i18nLazyString(UIStrings.protanopia),
811
+ value: 'protanopia',
812
+ },
813
+ {
814
+ title: i18nLazyString(UIStrings.emulateDeuteranopia),
815
+ text: i18nLazyString(UIStrings.deuteranopia),
816
+ value: 'deuteranopia',
817
+ },
818
+ {
819
+ title: i18nLazyString(UIStrings.emulateTritanopia),
820
+ text: i18nLazyString(UIStrings.tritanopia),
821
+ value: 'tritanopia',
822
+ },
823
+ {
824
+ title: i18nLazyString(UIStrings.emulateAchromatopsia),
825
+ text: i18nLazyString(UIStrings.achromatopsia),
826
+ value: 'achromatopsia',
827
+ },
828
+ ],
829
+ tags: [
830
+ i18nLazyString(UIStrings.query),
831
+ ],
832
+ title: i18nLazyString(UIStrings.emulateVisionDeficiencies),
833
+ });
834
+
835
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.emulatedOSTextScaleSettingDescriptor, {
836
+ category: Common.Settings.SettingCategory.RENDERING,
837
+ options: [
838
+ {
839
+ title: i18nLazyString(UIStrings.doNotEmulateOsTextScale),
840
+ text: i18nLazyString(UIStrings.osTextScaleEmulationNone),
841
+ value: '',
842
+ },
843
+ {
844
+ title: i18nLazyString(UIStrings.osTextScaleEmulation85),
845
+ text: i18nLazyString(UIStrings.osTextScaleEmulation85),
846
+ value: '0.85',
847
+ },
848
+ {
849
+ title: i18nLazyString(UIStrings.osTextScaleEmulation100),
850
+ text: i18nLazyString(UIStrings.osTextScaleEmulation100),
851
+ value: '1',
852
+ },
853
+ {
854
+ title: i18nLazyString(UIStrings.osTextScaleEmulation115),
855
+ text: i18nLazyString(UIStrings.osTextScaleEmulation115),
856
+ value: '1.15',
857
+ },
858
+ {
859
+ title: i18nLazyString(UIStrings.osTextScaleEmulation130),
860
+ text: i18nLazyString(UIStrings.osTextScaleEmulation130),
861
+ value: '1.3',
862
+ },
863
+ {
864
+ title: i18nLazyString(UIStrings.osTextScaleEmulation150),
865
+ text: i18nLazyString(UIStrings.osTextScaleEmulation150),
866
+ value: '1.5',
867
+ },
868
+ {
869
+ title: i18nLazyString(UIStrings.osTextScaleEmulation180),
870
+ text: i18nLazyString(UIStrings.osTextScaleEmulation180),
871
+ value: '1.8',
872
+ },
873
+ {
874
+ title: i18nLazyString(UIStrings.osTextScaleEmulation200),
875
+ text: i18nLazyString(UIStrings.osTextScaleEmulation200),
876
+ value: '2',
877
+ },
878
+ {
879
+ title: i18nLazyString(UIStrings.osTextScaleEmulation250),
880
+ text: i18nLazyString(UIStrings.osTextScaleEmulation250),
881
+ value: '2.5',
882
+ },
883
+ {
884
+ title: i18nLazyString(UIStrings.osTextScaleEmulation300),
885
+ text: i18nLazyString(UIStrings.osTextScaleEmulation300),
886
+ value: '3',
887
+ },
888
+ {
889
+ title: i18nLazyString(UIStrings.osTextScaleEmulation350),
890
+ text: i18nLazyString(UIStrings.osTextScaleEmulation350),
891
+ value: '3.5',
892
+ },
893
+ ],
894
+ tags: [
895
+ i18nLazyString(UIStrings.query),
896
+ ],
897
+ title: i18nLazyString(UIStrings.emulateOsTextScale),
898
+ });
899
+
900
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.localFontsDisabledSettingDescriptor, {
901
+ category: Common.Settings.SettingCategory.RENDERING,
902
+ options: [
903
+ {
904
+ value: true,
905
+ title: i18nLazyString(UIStrings.disableLocalFonts),
906
+ },
907
+ {
908
+ value: false,
909
+ title: i18nLazyString(UIStrings.enableLocalFonts),
910
+ },
911
+ ],
912
+ });
913
+
914
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.avifFormatDisabledSettingDescriptor, {
915
+ category: Common.Settings.SettingCategory.RENDERING,
916
+ options: [
917
+ {
918
+ value: true,
919
+ title: i18nLazyString(UIStrings.disableAvifFormat),
920
+ },
921
+ {
922
+ value: false,
923
+ title: i18nLazyString(UIStrings.enableAvifFormat),
924
+ },
925
+ ],
926
+ });
927
+
928
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.jpegXlFormatDisabledSettingDescriptor, {
929
+ category: Common.Settings.SettingCategory.RENDERING,
930
+ options: [
931
+ {
932
+ value: true,
933
+ title: i18nLazyString(UIStrings.disableJpegXlFormat),
934
+ },
935
+ {
936
+ value: false,
937
+ title: i18nLazyString(UIStrings.enableJpegXlFormat),
938
+ },
939
+ ],
940
+ });
@@ -1456,7 +1456,7 @@ inspectorBackend.registerCommand("WebAudio.enable", [], [], "Enables the WebAudi
1456
1456
  inspectorBackend.registerCommand("WebAudio.disable", [], [], "Disables the WebAudio domain.");
1457
1457
  inspectorBackend.registerCommand("WebAudio.getRealtimeData", [{"name": "contextId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}], ["realtimeData"], "Fetch the realtime data from the registered contexts.");
1458
1458
  inspectorBackend.registerType("WebAudio.ContextRealtimeData", [{"name": "currentTime", "type": "number", "optional": false, "description": "The current context time in second in BaseAudioContext.", "typeRef": null}, {"name": "renderCapacity", "type": "number", "optional": false, "description": "The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur.", "typeRef": null}, {"name": "callbackIntervalMean", "type": "number", "optional": false, "description": "A running mean of callback interval.", "typeRef": null}, {"name": "callbackIntervalVariance", "type": "number", "optional": false, "description": "A running variance of callback interval.", "typeRef": null}]);
1459
- inspectorBackend.registerType("WebAudio.BaseAudioContext", [{"name": "contextId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "contextType", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.ContextType"}, {"name": "contextState", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.ContextState"}, {"name": "realtimeData", "type": "object", "optional": true, "description": "", "typeRef": "WebAudio.ContextRealtimeData"}, {"name": "callbackBufferSize", "type": "number", "optional": false, "description": "Platform-dependent callback buffer size.", "typeRef": null}, {"name": "maxOutputChannelCount", "type": "number", "optional": false, "description": "Number of output channels supported by audio hardware in use.", "typeRef": null}, {"name": "sampleRate", "type": "number", "optional": false, "description": "Context sample rate.", "typeRef": null}]);
1459
+ inspectorBackend.registerType("WebAudio.BaseAudioContext", [{"name": "contextId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "contextType", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.ContextType"}, {"name": "contextState", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.ContextState"}, {"name": "realtimeData", "type": "object", "optional": true, "description": "", "typeRef": "WebAudio.ContextRealtimeData"}, {"name": "callbackBufferSize", "type": "number", "optional": false, "description": "Platform-dependent callback buffer size.", "typeRef": null}, {"name": "maxOutputChannelCount", "type": "number", "optional": false, "description": "Number of output channels supported by audio hardware in use.", "typeRef": null}, {"name": "sampleRate", "type": "number", "optional": false, "description": "Context sample rate.", "typeRef": null}, {"name": "renderQuantumSize", "type": "number", "optional": false, "description": "", "typeRef": null}]);
1460
1460
  inspectorBackend.registerType("WebAudio.AudioListener", [{"name": "listenerId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "contextId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}]);
1461
1461
  inspectorBackend.registerType("WebAudio.AudioNode", [{"name": "nodeId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "contextId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "nodeType", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.NodeType"}, {"name": "numberOfInputs", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "numberOfOutputs", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "channelCount", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "channelCountMode", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.ChannelCountMode"}, {"name": "channelInterpretation", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.ChannelInterpretation"}]);
1462
1462
  inspectorBackend.registerType("WebAudio.AudioParam", [{"name": "paramId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "nodeId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "contextId", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.GraphObjectId"}, {"name": "paramType", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.ParamType"}, {"name": "rate", "type": "string", "optional": false, "description": "", "typeRef": "WebAudio.AutomationRate"}, {"name": "defaultValue", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "minValue", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "maxValue", "type": "number", "optional": false, "description": "", "typeRef": null}]);
@@ -19917,6 +19917,7 @@ export namespace WebAudio {
19917
19917
  * Context sample rate.
19918
19918
  */
19919
19919
  sampleRate: number;
19920
+ renderQuantumSize: number;
19920
19921
  }
19921
19922
 
19922
19923
  /**
@@ -603,6 +603,9 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
603
603
  }
604
604
 
605
605
  private currentSafeAreaInsets(): Insets|null {
606
+ if (!Root.Runtime.hostConfig.devToolsMobileSafeAreaEmulation?.enabled) {
607
+ return null;
608
+ }
606
609
  if (this.#type !== Type.Device || !this.#mode) {
607
610
  return null;
608
611
  }
@@ -613,7 +616,7 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
613
616
  if (!this.#emulationModel) {
614
617
  return;
615
618
  }
616
- if (insets) {
619
+ if (insets && Root.Runtime.hostConfig.devToolsMobileSafeAreaEmulation?.enabled) {
617
620
  void this.#emulationModel.setSafeAreaInsets(
618
621
  {top: insets.top, left: insets.left, bottom: insets.bottom, right: insets.right});
619
622
  } else {
@@ -1008,10 +1011,14 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
1008
1011
  overlayModel.showHingeForDualScreen(null);
1009
1012
  }
1010
1013
 
1011
- overlayModel.showDisplayCutout(this.currentDisplayCutout());
1014
+ overlayModel.showDisplayCutout(
1015
+ Root.Runtime.hostConfig.devToolsMobileSafeAreaEmulation?.enabled ? this.currentDisplayCutout() : null);
1012
1016
  }
1013
1017
 
1014
1018
  private currentDisplayCutout(): SDK.OverlayModel.DisplayCutout|null {
1019
+ if (!Root.Runtime.hostConfig.devToolsMobileSafeAreaEmulation?.enabled) {
1020
+ return null;
1021
+ }
1015
1022
  const device = this.#device;
1016
1023
  const mode = this.#mode;
1017
1024
  if (!device || !mode || !device.modes.includes(mode)) {
@@ -18,6 +18,10 @@ const UIStrings = {
18
18
  * @description Title for Federated Credential Management API specification URL link.
19
19
  */
20
20
  fedCm: 'Federated Credential Management API',
21
+ /**
22
+ * @description Title for Connection Allowlists API specification URL link.
23
+ */
24
+ connectionAllowlist: 'Connection Allowlists API',
21
25
  } as const;
22
26
  const str_ = i18n.i18n.registerUIStrings('models/issues_manager/FederatedAuthRequestIssue.ts', UIStrings);
23
27
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
@@ -79,6 +83,17 @@ const issueDescriptions = new Map<Protocol.Audits.FederatedAuthRequestIssueReaso
79
83
  }],
80
84
  },
81
85
  ],
86
+ [
87
+ Protocol.Audits.FederatedAuthRequestIssueReason.WellKnownBlockedByConnectionAllowlist,
88
+ {
89
+ file: 'federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md',
90
+ links: [{
91
+ // TODO(crbug.com/543660447): Update this link once connection allowlist is moved out of WICG repo.
92
+ link: 'https://github.com/WICG/connection-allowlists',
93
+ linkTitle: i18nLazyString(UIStrings.connectionAllowlist),
94
+ }],
95
+ },
96
+ ],
82
97
  [
83
98
  Protocol.Audits.FederatedAuthRequestIssueReason.ConfigHttpNotFound,
84
99
  {
@@ -99,6 +114,17 @@ const issueDescriptions = new Map<Protocol.Audits.FederatedAuthRequestIssueReaso
99
114
  }],
100
115
  },
101
116
  ],
117
+ [
118
+ Protocol.Audits.FederatedAuthRequestIssueReason.ConfigBlockedByConnectionAllowlist,
119
+ {
120
+ file: 'federatedAuthRequestConfigBlockedByConnectionAllowlist.md',
121
+ links: [{
122
+ // TODO(crbug.com/543660447): Update this link once connection allowlist is moved out of WICG repo.
123
+ link: 'https://github.com/WICG/connection-allowlists',
124
+ linkTitle: i18nLazyString(UIStrings.connectionAllowlist),
125
+ }],
126
+ },
127
+ ],
102
128
  [
103
129
  Protocol.Audits.FederatedAuthRequestIssueReason.ConfigInvalidResponse,
104
130
  {
@@ -149,6 +175,17 @@ const issueDescriptions = new Map<Protocol.Audits.FederatedAuthRequestIssueReaso
149
175
  }],
150
176
  },
151
177
  ],
178
+ [
179
+ Protocol.Audits.FederatedAuthRequestIssueReason.AccountsBlockedByConnectionAllowlist,
180
+ {
181
+ file: 'federatedAuthRequestAccountsBlockedByConnectionAllowlist.md',
182
+ links: [{
183
+ // TODO(crbug.com/543660447): Update this link once connection allowlist is moved out of WICG repo.
184
+ link: 'https://github.com/WICG/connection-allowlists',
185
+ linkTitle: i18nLazyString(UIStrings.connectionAllowlist),
186
+ }],
187
+ },
188
+ ],
152
189
  [
153
190
  Protocol.Audits.FederatedAuthRequestIssueReason.AccountsInvalidResponse,
154
191
  {
@@ -179,6 +216,17 @@ const issueDescriptions = new Map<Protocol.Audits.FederatedAuthRequestIssueReaso
179
216
  }],
180
217
  },
181
218
  ],
219
+ [
220
+ Protocol.Audits.FederatedAuthRequestIssueReason.IdTokenBlockedByConnectionAllowlist,
221
+ {
222
+ file: 'federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md',
223
+ links: [{
224
+ // TODO(crbug.com/543660447): Update this link once connection allowlist is moved out of WICG repo.
225
+ link: 'https://github.com/WICG/connection-allowlists',
226
+ linkTitle: i18nLazyString(UIStrings.connectionAllowlist),
227
+ }],
228
+ },
229
+ ],
182
230
  [
183
231
  Protocol.Audits.FederatedAuthRequestIssueReason.IdTokenInvalidResponse,
184
232
  {
@@ -0,0 +1 @@
1
+ # Fetching the provider's accounts list was blocked by the request's initiator's connection allowlists.
@@ -0,0 +1 @@
1
+ # Fetching the provider's FedCM manifest configuration was blocked by the request's initiator's connection allowlists.
@@ -0,0 +1 @@
1
+ # Fetching the provider's token was blocked by the request's initiator's connection allowlists.
@@ -0,0 +1 @@
1
+ # Fetching the provider's well-known file was blocked by the request's initiator's connection allowlists.
@@ -12,6 +12,7 @@ import * as CrossOriginEmbedderPolicyIssue from './CrossOriginEmbedderPolicyIssu
12
12
  import * as DeprecationIssue from './DeprecationIssue.js';
13
13
  import * as ElementAccessibilityIssue from './ElementAccessibilityIssue.js';
14
14
  import * as EmailVerificationRequestIssue from './EmailVerificationRequestIssue.js';
15
+ import * as FederatedAuthRequestIssue from './FederatedAuthRequestIssue.js';
15
16
  import * as FederatedAuthUserInfoRequestIssue from './FederatedAuthUserInfoRequestIssue.js';
16
17
  import * as GenericIssue from './GenericIssue.js';
17
18
  import * as HeavyAdIssue from './HeavyAdIssue.js';
@@ -46,6 +47,7 @@ export {
46
47
  DeprecationIssue,
47
48
  ElementAccessibilityIssue,
48
49
  EmailVerificationRequestIssue,
50
+ FederatedAuthRequestIssue,
49
51
  FederatedAuthUserInfoRequestIssue,
50
52
  GenericIssue,
51
53
  HeavyAdIssue,
@@ -7142,6 +7142,10 @@ export const NativeFunctions = [
7142
7142
  name: "FaceDetector",
7143
7143
  signatures: [["?faceDetectorOptions"]]
7144
7144
  },
7145
+ {
7146
+ name: "setShape",
7147
+ signatures: [["rects"]]
7148
+ },
7145
7149
  {
7146
7150
  name: "ExtendableEvent",
7147
7151
  signatures: [["type","?eventInitDict"]]