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
@@ -6,161 +6,6 @@ import * as Common from '../common/common.js';
6
6
  import * as i18n from '../i18n/i18n.js';
7
7
 
8
8
  const UIStrings = {
9
- /**
10
- * @description A drop-down menu option to do not emulate css media type.
11
- */
12
- noEmulation: 'No emulation',
13
- /**
14
- * @description A tag of Emulate CSS screen media type setting that can be searched in the command menu.
15
- */
16
- query: 'query',
17
- /**
18
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
19
- * @example {prefers-color-scheme} PH1
20
- */
21
- doNotEmulateCss: 'Do not emulate CSS {PH1}',
22
- /**
23
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
24
- * @example {prefers-color-scheme: light} PH1
25
- */
26
- emulateCss: 'Emulate CSS {PH1}',
27
- /**
28
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
29
- * @example {prefers-color-scheme} PH1
30
- */
31
- emulateCssMediaFeature: 'Emulate CSS media feature {PH1}',
32
- /**
33
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
34
- */
35
- doNotEmulateAnyVisionDeficiency: 'Do not emulate any vision deficiency',
36
- /**
37
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
38
- */
39
- emulateBlurredVision: 'Emulate blurred vision',
40
- /**
41
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
42
- */
43
- emulateReducedContrast: 'Emulate reduced contrast',
44
- /**
45
- * @description Name of a vision deficiency that can be emulated via the Rendering drawer.
46
- */
47
- blurredVision: 'Blurred vision',
48
- /**
49
- * @description Name of a vision deficiency that can be emulated via the Rendering drawer.
50
- */
51
- reducedContrast: 'Reduced contrast',
52
- /**
53
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
54
- */
55
- emulateProtanopia: 'Emulate protanopia (no red)',
56
- /**
57
- * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
58
- */
59
- protanopia: 'Protanopia (no red)',
60
- /**
61
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
62
- */
63
- emulateDeuteranopia: 'Emulate deuteranopia (no green)',
64
- /**
65
- * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
66
- */
67
- deuteranopia: 'Deuteranopia (no green)',
68
- /**
69
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
70
- */
71
- emulateTritanopia: 'Emulate tritanopia (no blue)',
72
- /**
73
- * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
74
- */
75
- tritanopia: 'Tritanopia (no blue)',
76
- /**
77
- * @description Title of a setting under the Rendering drawer that can be invoked through the Command Menu.
78
- */
79
- emulateAchromatopsia: 'Emulate achromatopsia (no color)',
80
- /**
81
- * @description Name of a color vision deficiency that can be emulated via the Rendering drawer.
82
- */
83
- achromatopsia: 'Achromatopsia (no color)',
84
- /**
85
- * @description Title of a setting under the Rendering drawer.
86
- */
87
- emulateVisionDeficiencies: 'Emulate vision deficiencies',
88
- /**
89
- * @description Title of a setting under the Rendering drawer.
90
- */
91
- emulateOsTextScale: 'Emulate OS text scale',
92
- /**
93
- * @description Title of a setting under the Rendering category that can be invoked through the Command Menu.
94
- */
95
- doNotEmulateOsTextScale: 'Do not emulate OS text scale',
96
- /**
97
- * @description A drop-down menu option to not emulate OS text scale.
98
- */
99
- osTextScaleEmulationNone: 'No emulation',
100
- /**
101
- * @description A drop-down menu option to emulate an OS text scale 85%.
102
- */
103
- osTextScaleEmulation85: '85%',
104
- /**
105
- * @description A drop-down menu option to emulate an OS text scale of 100%.
106
- */
107
- osTextScaleEmulation100: '100% (default)',
108
- /**
109
- * @description A drop-down menu option to emulate an OS text scale of 115%.
110
- */
111
- osTextScaleEmulation115: '115%',
112
- /**
113
- * @description A drop-down menu option to emulate an OS text scale of 130%.
114
- */
115
- osTextScaleEmulation130: '130%',
116
- /**
117
- * @description A drop-down menu option to emulate an OS text scale of 150%.
118
- */
119
- osTextScaleEmulation150: '150%',
120
- /**
121
- * @description A drop-down menu option to emulate an OS text scale of 180%.
122
- */
123
- osTextScaleEmulation180: '180%',
124
- /**
125
- * @description A drop-down menu option to emulate an OS text scale of 200%.
126
- */
127
- osTextScaleEmulation200: '200%',
128
- /**
129
- * @description A drop-down menu option to emulate an OS text scale of 250%.
130
- */
131
- osTextScaleEmulation250: '250%',
132
- /**
133
- * @description A drop-down menu option to emulate an OS text scale of 300%.
134
- */
135
- osTextScaleEmulation300: '300%',
136
- /**
137
- * @description A drop-down menu option to emulate an OS text scale of 350%.
138
- */
139
- osTextScaleEmulation350: '350%',
140
- /**
141
- * @description Text that refers to disabling local fonts.
142
- */
143
- disableLocalFonts: 'Disable local fonts',
144
- /**
145
- * @description Text that refers to enabling local fonts.
146
- */
147
- enableLocalFonts: 'Enable local fonts',
148
- /**
149
- * @description Title of a setting that disables AVIF format.
150
- */
151
- disableAvifFormat: 'Disable `AVIF` format',
152
- /**
153
- * @description Title of a setting that enables AVIF format.
154
- */
155
- enableAvifFormat: 'Enable `AVIF` format',
156
- /**
157
- * @description Title of a setting that disables JPEG XL format.
158
- */
159
- disableJpegXlFormat: 'Disable `JPEG XL` format',
160
- /**
161
- * @description Title of a setting that enables JPEG XL format.
162
- */
163
- enableJpegXlFormat: 'Enable `JPEG XL` format',
164
9
  /**
165
10
  * @description Title of a setting that disables WebP format.
166
11
  */
@@ -226,281 +71,6 @@ const UIStrings = {
226
71
  const str_ = i18n.i18n.registerUIStrings('core/sdk/sdk-meta.ts', UIStrings);
227
72
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
228
73
 
229
- Common.Settings.registerSettingExtension({
230
- settingName: 'emulated-css-media-feature-prefers-contrast',
231
- settingType: Common.Settings.SettingType.ENUM,
232
- storageType: Common.Settings.SettingStorageType.SESSION,
233
- defaultValue: '',
234
- options: [
235
- {
236
- title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'prefers-contrast'}),
237
- text: i18nLazyString(UIStrings.noEmulation),
238
- value: '',
239
- },
240
- {
241
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-contrast: more'}),
242
- text: i18n.i18n.lockedLazyString('prefers-contrast: more'),
243
- value: 'more',
244
- },
245
- {
246
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-contrast: less'}),
247
- text: i18n.i18n.lockedLazyString('prefers-contrast: less'),
248
- value: 'less',
249
- },
250
- {
251
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-contrast: custom'}),
252
- text: i18n.i18n.lockedLazyString('prefers-contrast: custom'),
253
- value: 'custom',
254
- },
255
- ],
256
- tags: [
257
- i18nLazyString(UIStrings.query),
258
- ],
259
- title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-contrast'}),
260
- });
261
-
262
- Common.Settings.registerSettingExtension({
263
- settingName: 'emulated-css-media-feature-prefers-reduced-data',
264
- settingType: Common.Settings.SettingType.ENUM,
265
- storageType: Common.Settings.SettingStorageType.SESSION,
266
- defaultValue: '',
267
- options: [
268
- {
269
- title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'prefers-reduced-data'}),
270
- text: i18nLazyString(UIStrings.noEmulation),
271
- value: '',
272
- },
273
- {
274
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-reduced-data: reduce'}),
275
- text: i18n.i18n.lockedLazyString('prefers-reduced-data: reduce'),
276
- value: 'reduce',
277
- },
278
- ],
279
- title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-reduced-data'}),
280
- });
281
-
282
- Common.Settings.registerSettingExtension({
283
- settingName: 'emulated-css-media-feature-prefers-reduced-transparency',
284
- settingType: Common.Settings.SettingType.ENUM,
285
- storageType: Common.Settings.SettingStorageType.SESSION,
286
- defaultValue: '',
287
- options: [
288
- {
289
- title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'prefers-reduced-transparency'}),
290
- text: i18nLazyString(UIStrings.noEmulation),
291
- value: '',
292
- },
293
- {
294
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'prefers-reduced-transparency: reduce'}),
295
- text: i18n.i18n.lockedLazyString('prefers-reduced-transparency: reduce'),
296
- value: 'reduce',
297
- },
298
- ],
299
- title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'prefers-reduced-transparency'}),
300
- });
301
-
302
- Common.Settings.registerSettingExtension({
303
- settingName: 'emulated-css-media-feature-color-gamut',
304
- settingType: Common.Settings.SettingType.ENUM,
305
- storageType: Common.Settings.SettingStorageType.SESSION,
306
- defaultValue: '',
307
- options: [
308
- {
309
- title: i18nLazyString(UIStrings.doNotEmulateCss, {PH1: 'color-gamut'}),
310
- text: i18nLazyString(UIStrings.noEmulation),
311
- value: '',
312
- },
313
- {
314
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'color-gamut: srgb'}),
315
- text: i18n.i18n.lockedLazyString('color-gamut: srgb'),
316
- value: 'srgb',
317
- },
318
- {
319
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'color-gamut: p3'}),
320
- text: i18n.i18n.lockedLazyString('color-gamut: p3'),
321
- value: 'p3',
322
- },
323
- {
324
- title: i18nLazyString(UIStrings.emulateCss, {PH1: 'color-gamut: rec2020'}),
325
- text: i18n.i18n.lockedLazyString('color-gamut: rec2020'),
326
- value: 'rec2020',
327
- },
328
- ],
329
- title: i18nLazyString(UIStrings.emulateCssMediaFeature, {PH1: 'color-gamut'}),
330
- });
331
-
332
- Common.Settings.registerSettingExtension({
333
- category: Common.Settings.SettingCategory.RENDERING,
334
- settingName: 'emulated-vision-deficiency',
335
- settingType: Common.Settings.SettingType.ENUM,
336
- storageType: Common.Settings.SettingStorageType.SESSION,
337
- defaultValue: 'none',
338
- options: [
339
- {
340
- title: i18nLazyString(UIStrings.doNotEmulateAnyVisionDeficiency),
341
- text: i18nLazyString(UIStrings.noEmulation),
342
- value: 'none',
343
- },
344
- {
345
- title: i18nLazyString(UIStrings.emulateBlurredVision),
346
- text: i18nLazyString(UIStrings.blurredVision),
347
- value: 'blurredVision',
348
- },
349
- {
350
- title: i18nLazyString(UIStrings.emulateReducedContrast),
351
- text: i18nLazyString(UIStrings.reducedContrast),
352
- value: 'reducedContrast',
353
- },
354
- {
355
- title: i18nLazyString(UIStrings.emulateProtanopia),
356
- text: i18nLazyString(UIStrings.protanopia),
357
- value: 'protanopia',
358
- },
359
- {
360
- title: i18nLazyString(UIStrings.emulateDeuteranopia),
361
- text: i18nLazyString(UIStrings.deuteranopia),
362
- value: 'deuteranopia',
363
- },
364
- {
365
- title: i18nLazyString(UIStrings.emulateTritanopia),
366
- text: i18nLazyString(UIStrings.tritanopia),
367
- value: 'tritanopia',
368
- },
369
- {
370
- title: i18nLazyString(UIStrings.emulateAchromatopsia),
371
- text: i18nLazyString(UIStrings.achromatopsia),
372
- value: 'achromatopsia',
373
- },
374
- ],
375
- tags: [
376
- i18nLazyString(UIStrings.query),
377
- ],
378
- title: i18nLazyString(UIStrings.emulateVisionDeficiencies),
379
- });
380
-
381
- Common.Settings.registerSettingExtension({
382
- category: Common.Settings.SettingCategory.RENDERING,
383
- settingName: 'emulated-os-text-scale',
384
- settingType: Common.Settings.SettingType.ENUM,
385
- storageType: Common.Settings.SettingStorageType.SESSION,
386
- defaultValue: '',
387
- options: [
388
- {
389
- title: i18nLazyString(UIStrings.doNotEmulateOsTextScale),
390
- text: i18nLazyString(UIStrings.osTextScaleEmulationNone),
391
- value: '',
392
- },
393
- {
394
- title: i18nLazyString(UIStrings.osTextScaleEmulation85),
395
- text: i18nLazyString(UIStrings.osTextScaleEmulation85),
396
- value: '0.85',
397
- },
398
- {
399
- title: i18nLazyString(UIStrings.osTextScaleEmulation100),
400
- text: i18nLazyString(UIStrings.osTextScaleEmulation100),
401
- value: '1',
402
- },
403
- {
404
- title: i18nLazyString(UIStrings.osTextScaleEmulation115),
405
- text: i18nLazyString(UIStrings.osTextScaleEmulation115),
406
- value: '1.15',
407
- },
408
- {
409
- title: i18nLazyString(UIStrings.osTextScaleEmulation130),
410
- text: i18nLazyString(UIStrings.osTextScaleEmulation130),
411
- value: '1.3',
412
- },
413
- {
414
- title: i18nLazyString(UIStrings.osTextScaleEmulation150),
415
- text: i18nLazyString(UIStrings.osTextScaleEmulation150),
416
- value: '1.5',
417
- },
418
- {
419
- title: i18nLazyString(UIStrings.osTextScaleEmulation180),
420
- text: i18nLazyString(UIStrings.osTextScaleEmulation180),
421
- value: '1.8',
422
- },
423
- {
424
- title: i18nLazyString(UIStrings.osTextScaleEmulation200),
425
- text: i18nLazyString(UIStrings.osTextScaleEmulation200),
426
- value: '2',
427
- },
428
- {
429
- title: i18nLazyString(UIStrings.osTextScaleEmulation250),
430
- text: i18nLazyString(UIStrings.osTextScaleEmulation250),
431
- value: '2.5',
432
- },
433
- {
434
- title: i18nLazyString(UIStrings.osTextScaleEmulation300),
435
- text: i18nLazyString(UIStrings.osTextScaleEmulation300),
436
- value: '3',
437
- },
438
- {
439
- title: i18nLazyString(UIStrings.osTextScaleEmulation350),
440
- text: i18nLazyString(UIStrings.osTextScaleEmulation350),
441
- value: '3.5',
442
- },
443
- ],
444
- tags: [
445
- i18nLazyString(UIStrings.query),
446
- ],
447
- title: i18nLazyString(UIStrings.emulateOsTextScale),
448
- });
449
-
450
- Common.Settings.registerSettingExtension({
451
- category: Common.Settings.SettingCategory.RENDERING,
452
- settingName: 'local-fonts-disabled',
453
- settingType: Common.Settings.SettingType.BOOLEAN,
454
- storageType: Common.Settings.SettingStorageType.SESSION,
455
- options: [
456
- {
457
- value: true,
458
- title: i18nLazyString(UIStrings.disableLocalFonts),
459
- },
460
- {
461
- value: false,
462
- title: i18nLazyString(UIStrings.enableLocalFonts),
463
- },
464
- ],
465
- defaultValue: false,
466
- });
467
-
468
- Common.Settings.registerSettingExtension({
469
- category: Common.Settings.SettingCategory.RENDERING,
470
- settingName: 'avif-format-disabled',
471
- settingType: Common.Settings.SettingType.BOOLEAN,
472
- storageType: Common.Settings.SettingStorageType.SESSION,
473
- options: [
474
- {
475
- value: true,
476
- title: i18nLazyString(UIStrings.disableAvifFormat),
477
- },
478
- {
479
- value: false,
480
- title: i18nLazyString(UIStrings.enableAvifFormat),
481
- },
482
- ],
483
- defaultValue: false,
484
- });
485
-
486
- Common.Settings.registerSettingExtension({
487
- category: Common.Settings.SettingCategory.RENDERING,
488
- settingName: 'jpeg-xl-format-disabled',
489
- settingType: Common.Settings.SettingType.BOOLEAN,
490
- storageType: Common.Settings.SettingStorageType.SESSION,
491
- options: [
492
- {
493
- value: true,
494
- title: i18nLazyString(UIStrings.disableJpegXlFormat),
495
- },
496
- {
497
- value: false,
498
- title: i18nLazyString(UIStrings.enableJpegXlFormat),
499
- },
500
- ],
501
- defaultValue: false,
502
- });
503
-
504
74
  Common.Settings.registerSettingExtension({
505
75
  category: Common.Settings.SettingCategory.RENDERING,
506
76
  settingName: 'webp-format-disabled',
@@ -226,7 +226,7 @@ export class RenderingOptionsView extends UI.Widget.VBox {
226
226
 
227
227
  this.#appendCheckbox(
228
228
  i18nString(UIStrings.disableLocalFonts), i18nString(UIStrings.disablesLocalSourcesInFontface),
229
- Common.Settings.Settings.instance().moduleSetting('local-fonts-disabled'));
229
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.localFontsDisabledSettingDescriptor));
230
230
  this.#appendCheckbox(i18nString(UIStrings.emulateAFocusedPage), i18nString(UIStrings.emulatesAFocusedPage),
231
231
  Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatePageFocusSettingDescriptor),
232
232
  {toggle: Host.UserMetrics.Action.ToggleEmulateFocusedPageFromRenderingTab});
@@ -246,42 +246,44 @@ export class RenderingOptionsView extends UI.Widget.VBox {
246
246
  Common.Settings.Settings.instance().resolve(
247
247
  SDK.SDKSettings.emulatedCSSMediaFeatureForcedColorsSettingDescriptor));
248
248
  if (supportsPrefersContrast()) {
249
- this.#appendSelect(
250
- i18nString(UIStrings.forcesCssPreferscontrastMedia),
251
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-prefers-contrast'));
249
+ this.#appendSelect(i18nString(UIStrings.forcesCssPreferscontrastMedia),
250
+ Common.Settings.Settings.instance().resolve(
251
+ SDK.SDKSettings.emulatedCSSMediaFeaturePrefersContrastSettingDescriptor));
252
252
  }
253
253
  this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreducedmotion),
254
254
  Common.Settings.Settings.instance().resolve(
255
255
  SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedMotionSettingDescriptor));
256
256
  if (supportsPrefersReducedData()) {
257
- this.#appendSelect(
258
- i18nString(UIStrings.forcesCssPrefersreduceddataMedia),
259
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-prefers-reduced-data'));
257
+ this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreduceddataMedia),
258
+ Common.Settings.Settings.instance().resolve(
259
+ SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedDataSettingDescriptor));
260
260
  }
261
261
  if (supportsPrefersReducedTransparency()) {
262
- this.#appendSelect(
263
- i18nString(UIStrings.forcesCssPrefersreducedtransparencyMedia),
264
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-prefers-reduced-transparency'));
262
+ this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreducedtransparencyMedia),
263
+ Common.Settings.Settings.instance().resolve(
264
+ SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedTransparencySettingDescriptor));
265
265
  }
266
- this.#appendSelect(
267
- i18nString(UIStrings.forcesCssColorgamutMediaFeature),
268
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-color-gamut'));
266
+ this.#appendSelect(i18nString(UIStrings.forcesCssColorgamutMediaFeature),
267
+ Common.Settings.Settings.instance().resolve(
268
+ SDK.SDKSettings.emulatedCSSMediaFeatureColorGamutSettingDescriptor));
269
269
  this.contentElement.createChild('div').classList.add('panel-section-separator');
270
270
 
271
271
  this.#appendSelect(
272
272
  i18nString(UIStrings.forcesVisionDeficiencyEmulation),
273
- Common.Settings.Settings.instance().moduleSetting('emulated-vision-deficiency'));
273
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatedVisionDeficiencySettingDescriptor));
274
274
 
275
275
  this.contentElement.createChild('div').classList.add('panel-section-separator');
276
276
 
277
277
  this.#appendSelect(
278
278
  i18nString(UIStrings.forcesOsTextScaleEmulation),
279
- Common.Settings.Settings.instance().moduleSetting('emulated-os-text-scale'));
279
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatedOSTextScaleSettingDescriptor));
280
280
 
281
281
  this.contentElement.createChild('div').classList.add('panel-section-separator');
282
282
 
283
- const avifFormatDisabledSetting = Common.Settings.Settings.instance().moduleSetting('avif-format-disabled');
284
- const jpegXlFormatDisabledSetting = Common.Settings.Settings.instance().moduleSetting('jpeg-xl-format-disabled');
283
+ const avifFormatDisabledSetting =
284
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.avifFormatDisabledSettingDescriptor);
285
+ const jpegXlFormatDisabledSetting =
286
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.jpegXlFormatDisabledSettingDescriptor);
285
287
  const webpFormatDisabledSetting = Common.Settings.Settings.instance().moduleSetting('webp-format-disabled');
286
288
 
287
289
  this.#appendCheckbox(