chrome-devtools-frontend 1.0.1679060 → 1.0.1681091

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 (166) hide show
  1. package/AUTHORS +1 -0
  2. package/front_end/core/platform/TypescriptUtilities.ts +0 -9
  3. package/front_end/core/platform/platform.ts +1 -1
  4. package/front_end/core/root/Runtime.ts +5 -0
  5. package/front_end/core/sdk/CSSMetadata.ts +1 -6
  6. package/front_end/core/sdk/ConsoleModel.ts +6 -3
  7. package/front_end/core/sdk/DOMModel.ts +146 -3
  8. package/front_end/core/sdk/EmulationModel.ts +22 -11
  9. package/front_end/core/sdk/NetworkManager.ts +7 -6
  10. package/front_end/core/sdk/PageResourceLoader.ts +4 -3
  11. package/front_end/core/sdk/RuntimeModel.ts +5 -3
  12. package/front_end/core/sdk/SDKSettings.ts +113 -0
  13. package/front_end/core/sdk/sdk-meta.ts +0 -568
  14. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +23 -19
  15. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +417 -0
  16. package/front_end/entrypoints/main/MainImpl.ts +1 -1
  17. package/front_end/generated/InspectorBackendCommands.ts +4 -2
  18. package/front_end/generated/SupportedCSSProperties.ts +20 -0
  19. package/front_end/generated/protocol-mapping.d.ts +7 -0
  20. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  21. package/front_end/generated/protocol.ts +16 -3
  22. package/front_end/models/emulation/DeviceModeModel.ts +9 -2
  23. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +48 -0
  24. package/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
  25. package/front_end/models/issues_manager/descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
  26. package/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
  27. package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
  28. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  29. package/front_end/models/javascript_metadata/NativeFunctions.js +4 -0
  30. package/front_end/panels/console/ConsoleView.ts +2 -1
  31. package/front_end/panels/console/ConsoleViewMessage.ts +56 -20
  32. package/front_end/panels/console/console-meta.ts +10 -5
  33. package/front_end/panels/console/consoleView.css +4 -2
  34. package/front_end/panels/elements/DOMTreeContextMenu.ts +541 -0
  35. package/front_end/panels/elements/ElementsTreeElement.ts +27 -494
  36. package/front_end/panels/elements/ElementsTreeOutline.ts +173 -287
  37. package/front_end/panels/elements/StylesSidebarPane.ts +2 -1
  38. package/front_end/panels/elements/elements.ts +3 -0
  39. package/front_end/panels/emulation/DeviceModeView.ts +11 -2
  40. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +0 -10
  41. package/front_end/panels/issues/AffectedBlockedByResponseView.ts +6 -6
  42. package/front_end/panels/issues/AffectedCookiesView.ts +8 -8
  43. package/front_end/panels/issues/AffectedDescendantsWithinSelectElementView.ts +2 -2
  44. package/front_end/panels/issues/AffectedDirectivesView.ts +11 -12
  45. package/front_end/panels/issues/AffectedDocumentsInQuirksModeView.ts +4 -4
  46. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  47. package/front_end/panels/issues/AffectedHeavyAdView.ts +10 -14
  48. package/front_end/panels/issues/AffectedLazyLoadImagesView.ts +1 -1
  49. package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +1 -5
  50. package/front_end/panels/issues/AffectedPartitioningBlobURLView.ts +4 -4
  51. package/front_end/panels/issues/AffectedPermissionElementsView.ts +1 -1
  52. package/front_end/panels/issues/AffectedResourcesView.ts +5 -5
  53. package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +9 -9
  54. package/front_end/panels/issues/AffectedSharedArrayBufferIssueDetailsView.ts +15 -14
  55. package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
  56. package/front_end/panels/issues/AffectedTrackingSitesView.ts +1 -5
  57. package/front_end/panels/issues/CorsIssueDetailsView.ts +60 -56
  58. package/front_end/panels/issues/GenericIssueDetailsView.ts +3 -3
  59. package/front_end/panels/issues/HiddenIssuesRow.ts +2 -2
  60. package/front_end/panels/issues/IssueKindView.ts +6 -6
  61. package/front_end/panels/issues/IssueView.ts +15 -16
  62. package/front_end/panels/issues/IssuesPane.ts +32 -37
  63. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  64. package/front_end/panels/issues/issues-meta.ts +2 -2
  65. package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +3 -1
  66. package/front_end/panels/network/NetworkConfigView.ts +2 -1
  67. package/front_end/panels/network/NetworkPanel.ts +1 -1
  68. package/front_end/panels/network/network-meta.ts +60 -0
  69. package/front_end/panels/profiler/HeapDetachedElementsDataGrid.ts +107 -91
  70. package/front_end/panels/profiler/HeapDetachedElementsView.ts +4 -7
  71. package/front_end/panels/profiler/ProfileLauncherView.ts +19 -16
  72. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  73. package/front_end/panels/profiler/heapDetachedElementsDataGrid.css +14 -0
  74. package/front_end/panels/security/security.ts +6 -0
  75. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +38 -29
  76. package/front_end/panels/sources/SourcesView.ts +24 -119
  77. package/front_end/panels/sources/TabbedEditorContainer.ts +110 -7
  78. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +214 -51
  79. package/front_end/panels/sources/sources-meta.ts +16 -0
  80. package/front_end/panels/timeline/TimelineLoader.ts +1 -1
  81. package/front_end/panels/timeline/TimelineUIUtils.ts +6 -0
  82. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +4 -3
  83. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
  84. package/front_end/panels/timeline/components/MetricCard.ts +4 -3
  85. package/front_end/panels/timeline/components/NetworkRequestDetails.ts +5 -2
  86. package/front_end/panels/timeline/components/TimelineRangeSummaryView.ts +1 -1
  87. package/front_end/panels/timeline/components/TimelineSummary.ts +8 -5
  88. package/front_end/panels/whats_new/ReleaseNoteText.ts +9 -15
  89. package/front_end/panels/whats_new/resources/WNDT.md +5 -8
  90. package/front_end/third_party/chromium/README.chromium +1 -1
  91. package/front_end/third_party/puppeteer/README.chromium +2 -2
  92. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +8 -0
  93. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +33 -18
  94. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Frame.js +2 -2
  95. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Frame.js.map +1 -1
  96. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +11 -4
  98. package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
  100. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +1 -2
  101. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
  102. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/BrowserConnector.js.map +1 -1
  104. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.d.ts +16 -2
  107. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.d.ts.map +1 -1
  108. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.js +16 -3
  109. package/front_end/third_party/puppeteer/package/lib/puppeteer/environment.js.map +1 -1
  110. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +5 -0
  112. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  114. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +1 -2
  115. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
  116. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/FirefoxLauncher.js +0 -1
  118. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/FirefoxLauncher.js.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.d.ts +8 -0
  120. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
  121. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.js +11 -0
  122. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/PuppeteerNode.js.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +1 -3
  124. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +1 -10
  126. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/util/fs.d.ts.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/util/fs.js +2 -1
  129. package/front_end/third_party/puppeteer/package/lib/puppeteer/node/util/fs.js.map +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/puppeteer/node-env-setup.js +69 -1
  131. package/front_end/third_party/puppeteer/package/lib/puppeteer/node-env-setup.js.map +1 -1
  132. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  134. package/front_end/third_party/puppeteer/package/lib/types.d.ts +8 -0
  135. package/front_end/third_party/puppeteer/package/package.json +2 -2
  136. package/front_end/third_party/puppeteer/package/src/api/Frame.ts +2 -2
  137. package/front_end/third_party/puppeteer/package/src/api/Page.ts +15 -4
  138. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +1 -2
  139. package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +1 -4
  140. package/front_end/third_party/puppeteer/package/src/common/util.ts +1 -1
  141. package/front_end/third_party/puppeteer/package/src/environment.ts +35 -5
  142. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +5 -0
  143. package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +7 -5
  144. package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +0 -1
  145. package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +12 -0
  146. package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +0 -14
  147. package/front_end/third_party/puppeteer/package/src/node/util/fs.ts +2 -1
  148. package/front_end/third_party/puppeteer/package/src/node-env-setup.ts +97 -1
  149. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  150. package/front_end/ui/comments/CommentAnchorResolver.ts +1 -2
  151. package/front_end/ui/comments/CommentOverlayManager.ts +30 -9
  152. package/front_end/ui/legacy/TabbedPane.ts +34 -2
  153. package/front_end/ui/legacy/TextPrompt.ts +1 -1
  154. package/front_end/ui/legacy/Treeoutline.ts +22 -10
  155. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +5 -6
  156. package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
  157. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +9 -4
  158. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -43
  159. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +5 -5
  160. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +7 -7
  161. package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +1 -1
  162. package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -2
  163. package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +2 -2
  164. package/front_end/ui/visual_logging/KnownContextValues.ts +29 -0
  165. package/mcp/mcp.ts +2 -0
  166. package/package.json +1 -1
@@ -6,211 +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
- /**
165
- * @description Title of a setting that disables WebP format.
166
- */
167
- disableWebpFormat: 'Disable `WebP` format',
168
- /**
169
- * @description Title of a setting that enables WebP format.
170
- */
171
- enableWebpFormat: 'Enable `WebP` format',
172
- /**
173
- * @description Title of a setting under the Console category in Settings.
174
- */
175
- customFormatters: 'Custom formatters',
176
- /**
177
- * @description Title of a setting under the Network category.
178
- */
179
- networkRequestBlocking: 'Network request blocking',
180
- /**
181
- * @description Title of a setting under the Network category that can be invoked through the Command Menu.
182
- */
183
- enableNetworkRequestBlocking: 'Enable network request blocking',
184
- /**
185
- * @description Title of a setting under the Network category that can be invoked through the Command Menu.
186
- */
187
- disableNetworkRequestBlocking: 'Disable network request blocking',
188
- /**
189
- * @description Title of a setting under the Network category that can be invoked through the Command Menu.
190
- */
191
- enableCache: 'Enable cache',
192
- /**
193
- * @description Title of a setting under the Network category that can be invoked through the Command Menu.
194
- */
195
- disableCache: 'Disable cache while DevTools is open',
196
- /**
197
- * @description The name of a checkbox setting in the Rendering tool. This setting
198
- * emulates that the webpage is in auto dark mode.
199
- */
200
- emulateAutoDarkMode: 'Emulate auto dark mode',
201
- /**
202
- * @description Label of a checkbox in the DevTools settings UI.
203
- */
204
- enableRemoteFileLoading: 'Allow loading remote file path resources in DevTools',
205
- /**
206
- * @description Tooltip text for a setting that controls whether external resource can be loaded in DevTools.
207
- */
208
- remoteFileLoadingInfo: 'Example resources are source maps. Disabled by default for security reasons.',
209
- /**
210
- * @description Tooltip text for a setting that controls the network cache. Disabling the network cache can simulate the network connections of users that are visiting a page for the first time.
211
- */
212
- networkCacheExplanation:
213
- 'Disabling the network cache will simulate a network experience similar to a first time visitor.',
214
9
  /**
215
10
  * @description Title of a setting under the Console category in Settings.
216
11
  */
@@ -226,369 +21,6 @@ const UIStrings = {
226
21
  const str_ = i18n.i18n.registerUIStrings('core/sdk/sdk-meta.ts', UIStrings);
227
22
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
228
23
 
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
- Common.Settings.registerSettingExtension({
505
- category: Common.Settings.SettingCategory.RENDERING,
506
- settingName: 'webp-format-disabled',
507
- settingType: Common.Settings.SettingType.BOOLEAN,
508
- storageType: Common.Settings.SettingStorageType.SESSION,
509
- options: [
510
- {
511
- value: true,
512
- title: i18nLazyString(UIStrings.disableWebpFormat),
513
- },
514
- {
515
- value: false,
516
- title: i18nLazyString(UIStrings.enableWebpFormat),
517
- },
518
- ],
519
- defaultValue: false,
520
- });
521
-
522
- Common.Settings.registerSettingExtension({
523
- category: Common.Settings.SettingCategory.CONSOLE,
524
- title: i18nLazyString(UIStrings.customFormatters),
525
- settingName: 'custom-formatters',
526
- settingType: Common.Settings.SettingType.BOOLEAN,
527
- defaultValue: false,
528
- });
529
-
530
- Common.Settings.registerSettingExtension({
531
- category: Common.Settings.SettingCategory.NETWORK,
532
- title: i18nLazyString(UIStrings.networkRequestBlocking),
533
- settingName: 'request-blocking-enabled',
534
- settingType: Common.Settings.SettingType.BOOLEAN,
535
- storageType: Common.Settings.SettingStorageType.LOCAL,
536
- defaultValue: false,
537
- options: [
538
- {
539
- value: true,
540
- title: i18nLazyString(UIStrings.enableNetworkRequestBlocking),
541
- },
542
- {
543
- value: false,
544
- title: i18nLazyString(UIStrings.disableNetworkRequestBlocking),
545
- },
546
- ],
547
- });
548
-
549
- Common.Settings.registerSettingExtension({
550
- category: Common.Settings.SettingCategory.NETWORK,
551
- title: i18nLazyString(UIStrings.disableCache),
552
- settingName: 'cache-disabled',
553
- settingType: Common.Settings.SettingType.BOOLEAN,
554
- order: 0,
555
- defaultValue: false,
556
- options: [
557
- {
558
- value: true,
559
- title: i18nLazyString(UIStrings.disableCache),
560
- },
561
- {
562
- value: false,
563
- title: i18nLazyString(UIStrings.enableCache),
564
- },
565
- ],
566
- learnMore: {
567
- tooltip: i18nLazyString(UIStrings.networkCacheExplanation),
568
- },
569
- });
570
-
571
- Common.Settings.registerSettingExtension({
572
- category: Common.Settings.SettingCategory.RENDERING,
573
- title: i18nLazyString(UIStrings.emulateAutoDarkMode),
574
- settingName: 'emulate-auto-dark-mode',
575
- settingType: Common.Settings.SettingType.BOOLEAN,
576
- storageType: Common.Settings.SettingStorageType.SESSION,
577
- defaultValue: false,
578
- });
579
-
580
- Common.Settings.registerSettingExtension({
581
- category: Common.Settings.SettingCategory.SOURCES,
582
- storageType: Common.Settings.SettingStorageType.SYNCED,
583
- title: i18nLazyString(UIStrings.enableRemoteFileLoading),
584
- settingName: 'network.enable-remote-file-loading',
585
- settingType: Common.Settings.SettingType.BOOLEAN,
586
- defaultValue: false,
587
- learnMore: {
588
- tooltip: i18nLazyString(UIStrings.remoteFileLoadingInfo),
589
- },
590
- });
591
-
592
24
  Common.Settings.registerSettingExtension({
593
25
  category: Common.Settings.SettingCategory.CONSOLE,
594
26
  storageType: Common.Settings.SettingStorageType.SYNCED,
@@ -226,11 +226,12 @@ 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});
233
- const autoDarkModeSetting = Common.Settings.Settings.instance().moduleSetting('emulate-auto-dark-mode');
233
+ const autoDarkModeSetting =
234
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulateAutoDarkModeSettingDescriptor);
234
235
  this.#appendCheckbox(i18nString(UIStrings.emulateAutoDarkMode), i18nString(UIStrings.emulatesAutoDarkMode),
235
236
  autoDarkModeSetting);
236
237
 
@@ -246,43 +247,46 @@ export class RenderingOptionsView extends UI.Widget.VBox {
246
247
  Common.Settings.Settings.instance().resolve(
247
248
  SDK.SDKSettings.emulatedCSSMediaFeatureForcedColorsSettingDescriptor));
248
249
  if (supportsPrefersContrast()) {
249
- this.#appendSelect(
250
- i18nString(UIStrings.forcesCssPreferscontrastMedia),
251
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-prefers-contrast'));
250
+ this.#appendSelect(i18nString(UIStrings.forcesCssPreferscontrastMedia),
251
+ Common.Settings.Settings.instance().resolve(
252
+ SDK.SDKSettings.emulatedCSSMediaFeaturePrefersContrastSettingDescriptor));
252
253
  }
253
254
  this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreducedmotion),
254
255
  Common.Settings.Settings.instance().resolve(
255
256
  SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedMotionSettingDescriptor));
256
257
  if (supportsPrefersReducedData()) {
257
- this.#appendSelect(
258
- i18nString(UIStrings.forcesCssPrefersreduceddataMedia),
259
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-prefers-reduced-data'));
258
+ this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreduceddataMedia),
259
+ Common.Settings.Settings.instance().resolve(
260
+ SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedDataSettingDescriptor));
260
261
  }
261
262
  if (supportsPrefersReducedTransparency()) {
262
- this.#appendSelect(
263
- i18nString(UIStrings.forcesCssPrefersreducedtransparencyMedia),
264
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-prefers-reduced-transparency'));
263
+ this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreducedtransparencyMedia),
264
+ Common.Settings.Settings.instance().resolve(
265
+ SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedTransparencySettingDescriptor));
265
266
  }
266
- this.#appendSelect(
267
- i18nString(UIStrings.forcesCssColorgamutMediaFeature),
268
- Common.Settings.Settings.instance().moduleSetting('emulated-css-media-feature-color-gamut'));
267
+ this.#appendSelect(i18nString(UIStrings.forcesCssColorgamutMediaFeature),
268
+ Common.Settings.Settings.instance().resolve(
269
+ SDK.SDKSettings.emulatedCSSMediaFeatureColorGamutSettingDescriptor));
269
270
  this.contentElement.createChild('div').classList.add('panel-section-separator');
270
271
 
271
272
  this.#appendSelect(
272
273
  i18nString(UIStrings.forcesVisionDeficiencyEmulation),
273
- Common.Settings.Settings.instance().moduleSetting('emulated-vision-deficiency'));
274
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatedVisionDeficiencySettingDescriptor));
274
275
 
275
276
  this.contentElement.createChild('div').classList.add('panel-section-separator');
276
277
 
277
278
  this.#appendSelect(
278
279
  i18nString(UIStrings.forcesOsTextScaleEmulation),
279
- Common.Settings.Settings.instance().moduleSetting('emulated-os-text-scale'));
280
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatedOSTextScaleSettingDescriptor));
280
281
 
281
282
  this.contentElement.createChild('div').classList.add('panel-section-separator');
282
283
 
283
- const avifFormatDisabledSetting = Common.Settings.Settings.instance().moduleSetting('avif-format-disabled');
284
- const jpegXlFormatDisabledSetting = Common.Settings.Settings.instance().moduleSetting('jpeg-xl-format-disabled');
285
- const webpFormatDisabledSetting = Common.Settings.Settings.instance().moduleSetting('webp-format-disabled');
284
+ const avifFormatDisabledSetting =
285
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.avifFormatDisabledSettingDescriptor);
286
+ const jpegXlFormatDisabledSetting =
287
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.jpegXlFormatDisabledSettingDescriptor);
288
+ const webpFormatDisabledSetting =
289
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.webpFormatDisabledSettingDescriptor);
286
290
 
287
291
  this.#appendCheckbox(
288
292
  i18nString(UIStrings.disableAvifImageFormat), i18nString(UIStrings.requiresAPageReloadToApplyAnd),