chrome-devtools-frontend 1.0.1681091 → 1.0.1681498

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 (86) hide show
  1. package/front_end/core/sdk/DOMModel.ts +8 -0
  2. package/front_end/core/sdk/NetworkManager.ts +9 -4
  3. package/front_end/core/sdk/OverlayModel.ts +3 -2
  4. package/front_end/core/sdk/SDKSettings.ts +19 -0
  5. package/front_end/entrypoints/main/main-meta.ts +82 -0
  6. package/front_end/entrypoints/shell/shell.ts +0 -3
  7. package/front_end/entrypoints/trace_app/trace_app.ts +0 -3
  8. package/front_end/models/ai_code_completion/debug.ts +6 -3
  9. package/front_end/models/ai_code_generation/debug.ts +6 -3
  10. package/front_end/models/badges/UserBadges.ts +9 -2
  11. package/front_end/models/emulation/DeviceModeModel.ts +16 -27
  12. package/front_end/models/emulation/EmulatedDevices.ts +30 -125
  13. package/front_end/models/extensions/ExtensionAPI.ts +34 -23
  14. package/front_end/models/logs/NetworkLog.ts +3 -3
  15. package/front_end/models/logs/logs-meta.ts +0 -60
  16. package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -1
  17. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  18. package/front_end/panels/application/StorageView.ts +2 -0
  19. package/front_end/panels/common/BadgeNotification.ts +1 -1
  20. package/front_end/panels/common/ExtensionPanel.ts +12 -7
  21. package/front_end/panels/common/ExtensionServer.ts +76 -16
  22. package/front_end/panels/common/GdpSignUpDialog.ts +1 -1
  23. package/front_end/panels/console/ConsoleView.ts +2 -1
  24. package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
  25. package/front_end/panels/console/console-meta.ts +9 -0
  26. package/front_end/panels/elements/CSSRuleValidator.ts +12 -12
  27. package/front_end/panels/elements/CSSSpecificityBreakdown.ts +1 -1
  28. package/front_end/panels/elements/ClassesPaneWidget.ts +6 -6
  29. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
  30. package/front_end/panels/elements/ComputedStyleWidget.ts +4 -5
  31. package/front_end/panels/elements/DOMTreeContextMenu.ts +3 -6
  32. package/front_end/panels/elements/ElementIssueUtils.ts +20 -20
  33. package/front_end/panels/elements/ElementStatePaneWidget.ts +6 -6
  34. package/front_end/panels/elements/ElementsPanel.ts +10 -10
  35. package/front_end/panels/elements/ElementsTreeElement.ts +28 -28
  36. package/front_end/panels/elements/ElementsTreeOutline.ts +5 -20
  37. package/front_end/panels/elements/EventListenersWidget.ts +8 -8
  38. package/front_end/panels/elements/LayersWidget.ts +4 -4
  39. package/front_end/panels/elements/LayoutPane.ts +11 -11
  40. package/front_end/panels/elements/MarkerDecorator.ts +3 -3
  41. package/front_end/panels/elements/PlatformFontsWidget.ts +8 -8
  42. package/front_end/panels/elements/PropertiesWidget.ts +4 -4
  43. package/front_end/panels/elements/PropertyRenderer.ts +2 -2
  44. package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
  45. package/front_end/panels/elements/StylePropertiesSection.ts +14 -14
  46. package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -21
  47. package/front_end/panels/elements/StylesSidebarPane.ts +12 -13
  48. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  49. package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -1
  50. package/front_end/panels/elements/components/CSSVariableValueView.ts +3 -3
  51. package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +2 -2
  52. package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
  53. package/front_end/panels/elements/elements-meta.ts +13 -13
  54. package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
  55. package/front_end/panels/issues/AffectedElementsView.ts +5 -0
  56. package/front_end/panels/issues/IssueView.ts +7 -2
  57. package/front_end/panels/layer_viewer/LayerDetailsView.ts +11 -7
  58. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +2 -0
  59. package/front_end/panels/network/NetworkLogView.ts +5 -2
  60. package/front_end/panels/network/NetworkOverview.ts +11 -5
  61. package/front_end/panels/network/NetworkPanel.ts +2 -1
  62. package/front_end/panels/network/NetworkWaterfallColumn.ts +16 -3
  63. package/front_end/panels/network/RequestHeadersView.ts +4 -4
  64. package/front_end/panels/network/components/ResponseHeaderSection.ts +6 -2
  65. package/front_end/panels/network/network-meta.ts +57 -0
  66. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  67. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +0 -3
  68. package/front_end/panels/sources/NavigatorView.ts +6 -2
  69. package/front_end/panels/sources/SourcesNavigator.ts +8 -4
  70. package/front_end/panels/sources/SourcesPanel.ts +4 -2
  71. package/front_end/panels/sources/SourcesSearchScope.ts +3 -1
  72. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  73. package/front_end/panels/web_audio/WebAudioView.ts +8 -0
  74. package/front_end/third_party/chromium/README.chromium +1 -1
  75. package/front_end/third_party/web-vitals/rebuild.sh +1 -1
  76. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -11
  77. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -1
  78. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +19 -20
  79. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +2 -2
  80. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +164 -325
  81. package/front_end/ui/visual_logging/KnownContextValues.ts +11 -0
  82. package/mcp/mcp.ts +0 -3
  83. package/package.json +1 -1
  84. package/front_end/core/sdk/sdk-meta.ts +0 -40
  85. package/front_end/models/badges/badges-meta.ts +0 -27
  86. package/front_end/models/persistence/persistence-meta.ts +0 -69
@@ -156,10 +156,10 @@ export class NetworkOverview extends PerfUI.TimelineOverviewPane.TimelineOvervie
156
156
  }
157
157
 
158
158
  const context = this.context();
159
- const linesByType = new Map<string, number[]>();
159
+ const linesByType = new Map<NetworkTimeCalculator.RequestTimeRangeNames, number[]>();
160
160
  const paddingTop = PADDING;
161
161
 
162
- function drawLines(type: string): void {
162
+ function drawLines(type: NetworkTimeCalculator.RequestTimeRangeNames): void {
163
163
  const lines = linesByType.get(type);
164
164
  if (!lines) {
165
165
  return;
@@ -183,7 +183,7 @@ export class NetworkOverview extends PerfUI.TimelineOverviewPane.TimelineOvervie
183
183
  }
184
184
  }
185
185
 
186
- function addLine(type: string, y: number, start: number, end: number): void {
186
+ function addLine(type: NetworkTimeCalculator.RequestTimeRangeNames, y: number, start: number, end: number): void {
187
187
  let lines = linesByType.get(type);
188
188
  if (!lines) {
189
189
  lines = [];
@@ -217,6 +217,8 @@ export class NetworkOverview extends PerfUI.TimelineOverviewPane.TimelineOvervie
217
217
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER);
218
218
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_PREPARATION);
219
219
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_RESPOND_WITH);
220
+ drawLines(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_ROUTER_EVALUATION);
221
+ drawLines(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_CACHE_LOOKUP);
220
222
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.PUSH);
221
223
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.PROXY);
222
224
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.DNS);
@@ -224,6 +226,7 @@ export class NetworkOverview extends PerfUI.TimelineOverviewPane.TimelineOvervie
224
226
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.SENDING);
225
227
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.WAITING);
226
228
  drawLines(NetworkTimeCalculator.RequestTimeRangeNames.RECEIVING);
229
+ drawLines(NetworkTimeCalculator.RequestTimeRangeNames.RECEIVING_PUSH);
227
230
 
228
231
  if (this.highlightedRequest) {
229
232
  const size = 5;
@@ -297,7 +300,7 @@ export class NetworkOverview extends PerfUI.TimelineOverviewPane.TimelineOvervie
297
300
  }
298
301
  }
299
302
 
300
- export const RequestTimeRangeNameToColor = {
303
+ export const RequestTimeRangeNameToColor: Record<NetworkTimeCalculator.RequestTimeRangeNames, string> = {
301
304
  [NetworkTimeCalculator.RequestTimeRangeNames.TOTAL]: '--network-overview-total',
302
305
  [NetworkTimeCalculator.RequestTimeRangeNames.BLOCKING]: '--network-overview-blocking',
303
306
  [NetworkTimeCalculator.RequestTimeRangeNames.CONNECTING]: '--network-overview-connecting',
@@ -305,6 +308,8 @@ export const RequestTimeRangeNameToColor = {
305
308
  [NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_PREPARATION]: '--network-overview-service-worker',
306
309
  [NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_RESPOND_WITH]:
307
310
  '--network-overview-service-worker-respond-with',
311
+ [NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_ROUTER_EVALUATION]: '--network-overview-service-worker',
312
+ [NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_CACHE_LOOKUP]: '--network-overview-service-worker',
308
313
  [NetworkTimeCalculator.RequestTimeRangeNames.PUSH]: '--network-overview-push',
309
314
  [NetworkTimeCalculator.RequestTimeRangeNames.PROXY]: '--override-network-overview-proxy',
310
315
  [NetworkTimeCalculator.RequestTimeRangeNames.DNS]: '--network-overview-dns',
@@ -312,8 +317,9 @@ export const RequestTimeRangeNameToColor = {
312
317
  [NetworkTimeCalculator.RequestTimeRangeNames.SENDING]: '--override-network-overview-sending',
313
318
  [NetworkTimeCalculator.RequestTimeRangeNames.WAITING]: '--network-overview-waiting',
314
319
  [NetworkTimeCalculator.RequestTimeRangeNames.RECEIVING]: '--network-overview-receiving',
320
+ [NetworkTimeCalculator.RequestTimeRangeNames.RECEIVING_PUSH]: '--network-overview-receiving',
315
321
  [NetworkTimeCalculator.RequestTimeRangeNames.QUEUEING]: '--network-overview-queueing',
316
- } as Record<string, string>;
322
+ };
317
323
 
318
324
  const BAND_HEIGHT = 3;
319
325
  const PADDING = 5;
@@ -354,7 +354,8 @@ export class NetworkPanel extends UI.Panel.Panel implements
354
354
  this.networkLogLargeRowsSetting.addChangeListener(this.toggleLargerRequests, this);
355
355
  this.networkRecordFilmStripSetting.addChangeListener(this.toggleRecordFilmStrip, this);
356
356
 
357
- this.preserveLogSetting = Common.Settings.Settings.instance().moduleSetting('network-log.preserve-log');
357
+ this.preserveLogSetting =
358
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.preserveNetworkLogSettingDescriptor);
358
359
  this.recordLogSetting = Common.Settings.Settings.instance().moduleSetting('network-log.record-log');
359
360
  this.recordLogSetting.addChangeListener(({data}) => this.toggleRecord(data));
360
361
 
@@ -98,7 +98,7 @@ export class NetworkWaterfallColumn extends UI.Widget.VBox {
98
98
  this.textLayers = [];
99
99
  }
100
100
 
101
- private static buildRequestTimeRangeStyle(): Map<NetworkTimeCalculator.RequestTimeRangeNames, LayerStyle> {
101
+ static buildRequestTimeRangeStyle(): Map<NetworkTimeCalculator.RequestTimeRangeNames, LayerStyle> {
102
102
  const styleMap = new Map<NetworkTimeCalculator.RequestTimeRangeNames, LayerStyle>();
103
103
  styleMap.set(
104
104
  NetworkTimeCalculator.RequestTimeRangeNames.CONNECTING,
@@ -142,6 +142,13 @@ export class NetworkWaterfallColumn extends UI.Widget.VBox {
142
142
  styleMap.set(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_RESPOND_WITH, {
143
143
  fillStyle: RequestTimeRangeNameToColor[NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_RESPOND_WITH],
144
144
  });
145
+ styleMap.set(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_ROUTER_EVALUATION, {
146
+ fillStyle:
147
+ RequestTimeRangeNameToColor[NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_ROUTER_EVALUATION],
148
+ });
149
+ styleMap.set(NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_CACHE_LOOKUP, {
150
+ fillStyle: RequestTimeRangeNameToColor[NetworkTimeCalculator.RequestTimeRangeNames.SERVICE_WORKER_CACHE_LOOKUP],
151
+ });
145
152
  return styleMap;
146
153
  }
147
154
 
@@ -610,8 +617,14 @@ export class NetworkWaterfallColumn extends UI.Widget.VBox {
610
617
  continue;
611
618
  }
612
619
 
613
- const style = (this.styleForTimeRangeName.get(range.name) as LayerStyle);
614
- const path = (this.pathForStyle.get(style) as Path2D);
620
+ const style = this.styleForTimeRangeName.get(range.name);
621
+ if (!style) {
622
+ continue;
623
+ }
624
+ const path = this.pathForStyle.get(style);
625
+ if (!path) {
626
+ continue;
627
+ }
615
628
  const lineWidth = style.lineWidth || 0;
616
629
  const height = this.getBarHeight(range.name);
617
630
  const middleBarY = y + Math.floor(this.rowHeight / 2 - height / 2) + lineWidth / 2;
@@ -290,7 +290,7 @@ export class RequestHeadersView extends UI.Widget.Widget {
290
290
  this.#workspace.addEventListener(
291
291
  Workspace.Workspace.Events.UISourceCodeRemoved, this.#uiSourceCodeAddedOrRemoved, this);
292
292
  Common.Settings.Settings.instance()
293
- .moduleSetting('persistence-network-overrides-enabled')
293
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
294
294
  .addChangeListener(this.requestUpdate, this);
295
295
  }
296
296
 
@@ -319,7 +319,7 @@ export class RequestHeadersView extends UI.Widget.Widget {
319
319
  this.#workspace.removeEventListener(
320
320
  Workspace.Workspace.Events.UISourceCodeRemoved, this.#uiSourceCodeAddedOrRemoved, this);
321
321
  Common.Settings.Settings.instance()
322
- .moduleSetting('persistence-network-overrides-enabled')
322
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
323
323
  .removeChangeListener(this.requestUpdate, this);
324
324
  }
325
325
 
@@ -395,8 +395,8 @@ function renderHeaderOverridesLink(input: ViewInput): Lit.LitTemplate {
395
395
  event.preventDefault();
396
396
  input.revealHeadersFile?.();
397
397
  };
398
- const overridesSetting: Common.Settings.Setting<boolean> =
399
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled');
398
+ const overridesSetting: Common.Settings.Setting<boolean> = Common.Settings.Settings.instance().resolve(
399
+ Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor);
400
400
  // Disabled until https://crbug.com/1079231 is fixed.
401
401
  // clang-format off
402
402
  const fileIcon = html`
@@ -281,7 +281,9 @@ export class ResponseHeaderSection extends ResponseHeaderSectionBase {
281
281
  if (!this.#overrides.every(Persistence.NetworkPersistenceManager.isHeaderOverride)) {
282
282
  throw new Error('Type mismatch after parsing');
283
283
  }
284
- if (Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').get() &&
284
+ if (Common.Settings.Settings.instance()
285
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
286
+ .get() &&
285
287
  this.#isEditingAllowed === EditingAllowedStatus.DISABLED) {
286
288
  this.#isEditingAllowed = EditingAllowedStatus.ENABLED;
287
289
  }
@@ -566,7 +568,9 @@ export class ResponseHeaderSection extends ResponseHeaderSectionBase {
566
568
  const requestUrl = this.#request.url();
567
569
  const networkPersistenceManager = Persistence.NetworkPersistenceManager.NetworkPersistenceManager.instance();
568
570
  if (networkPersistenceManager.project()) {
569
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').set(true);
571
+ Common.Settings.Settings.instance()
572
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
573
+ .set(true);
570
574
  await networkPersistenceManager.getOrCreateHeadersUISourceCodeFromUrl(requestUrl);
571
575
  } else { // If folder for local overrides has not been provided yet
572
576
  UI.InspectorView.InspectorView.instance().displaySelectOverrideFolderInfobar(async () => {
@@ -16,6 +16,42 @@ import * as NetworkForward from './forward/forward.js';
16
16
  import type * as Network from './network.js';
17
17
 
18
18
  const UIStrings = {
19
+ /**
20
+ * @description Text to keep the log after refreshing.
21
+ */
22
+ keepLog: 'Keep log',
23
+ /**
24
+ * @description A term that can be used to search in the command menu, and will find the search
25
+ * result 'Keep log on page reload / navigation'. This is an additional search term to help
26
+ * the user find the setting even when they don't know the exact name of it.
27
+ */
28
+ keep: 'keep',
29
+ /**
30
+ * @description A term that can be used to search in the command menu, and will find the search
31
+ * result 'Keep log on page reload / navigation'. This is an additional search term to help
32
+ * the user find the setting even when they don't know the exact name of it.
33
+ */
34
+ preserve: 'preserve',
35
+ /**
36
+ * @description A term that can be used to search in the command menu, and will find the search
37
+ * result 'Keep log on page reload / navigation'. This is an additional search term to help
38
+ * the user find the setting even when they don't know the exact name of it.
39
+ */
40
+ clearTag: 'clear',
41
+ /**
42
+ * @description A term that can be used to search in the command menu, and will find the search
43
+ * result 'Keep log on page reload / navigation'. This is an additional search term to help
44
+ * the user find the setting even when they don't know the exact name of it.
45
+ */
46
+ reset: 'reset',
47
+ /**
48
+ * @description Title of a setting under the Network category that can be invoked through the Command Menu.
49
+ */
50
+ keepLogOnPageReload: 'Keep log on page reload / navigation',
51
+ /**
52
+ * @description Title of a setting under the Network category that can be invoked through the Command Menu.
53
+ */
54
+ doNotKeepLogOnPageReload: 'Don’t keep log on page reload / navigation',
19
55
  /**
20
56
  * @description Title of a setting under the Network category that can be invoked through the Command Menu.
21
57
  */
@@ -488,6 +524,27 @@ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.cacheDisabledSettingDe
488
524
  },
489
525
  });
490
526
 
527
+ SettingsUI.SettingUIRegistration.register(SDK.SDKSettings.preserveNetworkLogSettingDescriptor, {
528
+ category: Common.Settings.SettingCategory.NETWORK,
529
+ title: i18nLazyString(UIStrings.keepLog),
530
+ tags: [
531
+ i18nLazyString(UIStrings.keep),
532
+ i18nLazyString(UIStrings.preserve),
533
+ i18nLazyString(UIStrings.clearTag),
534
+ i18nLazyString(UIStrings.reset),
535
+ ],
536
+ options: [
537
+ {
538
+ value: true,
539
+ title: i18nLazyString(UIStrings.keepLogOnPageReload),
540
+ },
541
+ {
542
+ value: false,
543
+ title: i18nLazyString(UIStrings.doNotKeepLogOnPageReload),
544
+ },
545
+ ],
546
+ });
547
+
491
548
  UI.ViewManager.registerLocationResolver({
492
549
  name: UI.ViewManager.ViewLocationValues.NETWORK_SIDEBAR,
493
550
  category: UI.ViewManager.ViewLocationCategory.NETWORK,
@@ -276,7 +276,7 @@ export class SyncSection extends UI.Widget.Widget {
276
276
  constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
277
277
  super(element);
278
278
  this.#view = view;
279
- this.#receiveBadgesSetting = Common.Settings.Settings.instance().moduleSetting('receive-gdp-badges');
279
+ this.#receiveBadgesSetting = Common.Settings.Settings.instance().resolve(Badges.receiveGdpBadgesSettingDescriptor);
280
280
  this.#syncSetting =
281
281
  Common.Settings.Settings.instance().moduleSetting('sync-preferences') as Common.Settings.Setting<boolean>;
282
282
  }
@@ -438,7 +438,6 @@ export class DevicesSettingsTab extends UI.Widget.VBox implements
438
438
  const verticalMode: EmulationModel.EmulatedDevices.Mode = {
439
439
  title: '',
440
440
  orientation: EmulationModel.EmulatedDevices.Vertical,
441
- insets: new EmulationModel.DeviceModeModel.Insets(0, 0, 0, 0),
442
441
  };
443
442
  if (Root.Runtime.hostConfig.devToolsMobileSafeAreaEmulation?.enabled) {
444
443
  const safeAreaInsets = this.safeAreaInsetsFromEditor(editor);
@@ -454,8 +453,6 @@ export class DevicesSettingsTab extends UI.Widget.VBox implements
454
453
  const horizontalMode: EmulationModel.EmulatedDevices.Mode = {
455
454
  title: '',
456
455
  orientation: EmulationModel.EmulatedDevices.Horizontal,
457
- insets: new EmulationModel.DeviceModeModel.Insets(0, 0, 0, 0),
458
-
459
456
  };
460
457
  if (Root.Runtime.hostConfig.devToolsMobileSafeAreaEmulation?.enabled) {
461
458
  const landscapeSafeAreaInsets = this.safeAreaInsetsFromEditor(editor, 'landscape-');
@@ -1911,7 +1911,9 @@ export class NavigatorFolderTreeNode extends NavigatorTreeNode {
1911
1911
  const isOverrides =
1912
1912
  Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemType(this.project) === 'overrides';
1913
1913
  const hasMappedFiles = isOverrides ?
1914
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').get() :
1914
+ Common.Settings.Settings.instance()
1915
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
1916
+ .get() :
1915
1917
  Persistence.Persistence.PersistenceImpl.instance().filePathHasBindings(absoluteFileSystemPath);
1916
1918
  this.treeElement.listItemElement.classList.toggle('has-mapped-files', hasMappedFiles);
1917
1919
  }
@@ -2101,7 +2103,9 @@ export class NavigatorGroupTreeNode extends NavigatorTreeNode {
2101
2103
  const isOverrides =
2102
2104
  Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemType(this.project) === 'overrides';
2103
2105
  const isActive = isOverrides ?
2104
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').get() :
2106
+ Common.Settings.Settings.instance()
2107
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
2108
+ .get() :
2105
2109
  Persistence.Persistence.PersistenceImpl.instance().filePathHasBindings(fileSystemPath);
2106
2110
  if (wasActive === isActive) {
2107
2111
  return;
@@ -318,14 +318,16 @@ export class OverridesNavigatorView extends NavigatorView {
318
318
  this.toolbar.removeToolbarItems();
319
319
  const project = Persistence.NetworkPersistenceManager.NetworkPersistenceManager.instance().project();
320
320
  if (project) {
321
- const enableCheckbox = new UI.Toolbar.ToolbarSettingCheckbox(
322
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled'));
321
+ const enableCheckbox = new UI.Toolbar.ToolbarSettingCheckbox(Common.Settings.Settings.instance().resolve(
322
+ Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor));
323
323
  this.toolbar.appendToolbarItem(enableCheckbox);
324
324
 
325
325
  this.toolbar.appendToolbarItem(new UI.Toolbar.ToolbarSeparator(true));
326
326
  const clearButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.clearConfiguration), 'clear');
327
327
  clearButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, () => {
328
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').set(false);
328
+ Common.Settings.Settings.instance()
329
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
330
+ .set(false);
329
331
  project.remove();
330
332
  });
331
333
  this.toolbar.appendToolbarItem(clearButton);
@@ -345,7 +347,9 @@ export class OverridesNavigatorView extends NavigatorView {
345
347
  if (!fileSystem) {
346
348
  return;
347
349
  }
348
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').set(true);
350
+ Common.Settings.Settings.instance()
351
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
352
+ .set(true);
349
353
  }
350
354
 
351
355
  override sourceSelected(uiSourceCode: Workspace.UISourceCode.UISourceCode, focusSource: boolean): void {
@@ -481,7 +481,7 @@ export class SourcesPanel extends UI.Panel.Panel implements
481
481
  window.focus();
482
482
  Host.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront();
483
483
  const withOverlay = UI.Context.Context.instance().flavor(SDK.Target.Target)?.model(SDK.OverlayModel.OverlayModel) &&
484
- !Common.Settings.Settings.instance().moduleSetting('disable-paused-state-overlay').get();
484
+ !Common.Settings.Settings.instance().resolve(SDK.SDKSettings.disablePausedStateOverlaySettingDescriptor).get();
485
485
  if (withOverlay && !this.overlayLoggables) {
486
486
  this.overlayLoggables = {debuggerPausedMessage: {}, resumeButton: {}, stepOverButton: {}};
487
487
  VisualLogging.registerLoggable(
@@ -1317,7 +1317,9 @@ export class RevealingActionDelegate implements UI.ActionRegistration.ActionDele
1317
1317
  // Do not trigger a resume action, if: the shortcut was forwarded and the
1318
1318
  // paused overlay is enabled.
1319
1319
  const actionHandledInPausedOverlay = context.flavor(UI.ShortcutRegistry.ForwardedShortcut) &&
1320
- !Common.Settings.Settings.instance().moduleSetting('disable-paused-state-overlay').get();
1320
+ !Common.Settings.Settings.instance()
1321
+ .resolve(SDK.SDKSettings.disablePausedStateOverlaySettingDescriptor)
1322
+ .get();
1321
1323
  if (actionHandledInPausedOverlay) {
1322
1324
  // Taken care of by inspector overlay: handled set to true to
1323
1325
  // register user metric.
@@ -73,7 +73,9 @@ export class SourcesSearchScope implements Search.SearchScope.SearchScope {
73
73
  const searchInAnonymousAndContentScripts =
74
74
  Common.Settings.Settings.instance().moduleSetting('search-in-anonymous-and-content-scripts').get();
75
75
  const localOverridesEnabled =
76
- Common.Settings.Settings.instance().moduleSetting('persistence-network-overrides-enabled').get();
76
+ Common.Settings.Settings.instance()
77
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
78
+ .get();
77
79
 
78
80
  return Workspace.Workspace.WorkspaceImpl.instance().projects().filter(project => {
79
81
  if (project.type() === Workspace.Workspace.projectTypes.Service) {
@@ -66,7 +66,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
66
66
  this.#boundOnBindingChanged = this.onBindingChanged.bind(this);
67
67
 
68
68
  Common.Settings.Settings.instance()
69
- .moduleSetting('persistence-network-overrides-enabled')
69
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
70
70
  .addChangeListener(this.onNetworkPersistenceChanged, this);
71
71
 
72
72
  this.#errorPopoverHelper = new UI.PopoverHelper.PopoverHelper(
@@ -428,7 +428,7 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
428
428
  this.textEditor.editor.destroy();
429
429
  this.detach();
430
430
  Common.Settings.Settings.instance()
431
- .moduleSetting('persistence-network-overrides-enabled')
431
+ .resolve(Persistence.NetworkPersistenceManager.persistenceNetworkOverridesEnabledSettingDescriptor)
432
432
  .removeChangeListener(this.onNetworkPersistenceChanged, this);
433
433
  }
434
434
 
@@ -49,6 +49,10 @@ const UIStrings = {
49
49
  * @description Label for the callback buffer size of an audio context.
50
50
  */
51
51
  callbackBufferSize: 'Callback buffer size',
52
+ /**
53
+ * @description Label for the render quantum size of an audio context.
54
+ */
55
+ renderQuantumSize: 'Render quantum size',
52
56
  /**
53
57
  * @description Label in the WebAudio tool for the maximum number of output channels of an audio context.
54
58
  */
@@ -149,6 +153,10 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
149
153
  <div class="context-detail-row-entry">${i18nString(UIStrings.callbackBufferSize)}</div>
150
154
  <div class="context-detail-row-value">${selectedContext.callbackBufferSize} frames</div>
151
155
  </div>` : ''}
156
+ <div class="context-detail-row">
157
+ <div class="context-detail-row-entry">${i18nString(UIStrings.renderQuantumSize)}</div>
158
+ <div class="context-detail-row-value">${selectedContext.renderQuantumSize} frames</div>
159
+ </div>
152
160
  <div class="context-detail-row">
153
161
  <div class="context-detail-row-entry">${i18nString(UIStrings.maxOutputChannels)}</div>
154
162
  <div class="context-detail-row-value">${selectedContext.maxOutputChannelCount} ch</div>
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: 86cee6df69e0463a839c0cc8435c9d4c259434d3
4
+ Revision: ca1960ebbf919625140331d83f55552e8fe05333
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -33,6 +33,6 @@ cd -
33
33
 
34
34
  # Copy the source files to our repo, and build it.
35
35
  cp -r tmp-repo/src package/src
36
- ../../../node_modules/.bin/tsc --ignoreConfig -d -t esnext -m esnext --moduleResolution bundler --strict --outDir package/dist/modules/ package/src/**/*.ts package/src/index.ts
36
+ vpython3 ../../../third_party/typescript/typescript.py --ignoreConfig --skipLibCheck -d -t esnext -m esnext --moduleResolution bundler --strict --outDir package/dist/modules/ package/src/**/*.ts package/src/index.ts
37
37
 
38
38
  echo "Rebuild complete."
@@ -18,49 +18,49 @@ import {type ContrastInfo, Events as ContrastInfoEvents} from './ContrastInfo.js
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Label for when no contrast information is available in the color picker
21
+ * @description Text displayed when no contrast information is available in the color picker.
22
22
  */
23
23
  noContrastInformationAvailable: 'No contrast information available',
24
24
  /**
25
- * @description Text of a DOM element in Contrast Details of the Color Picker
25
+ * @description Label for the contrast ratio section in the contrast details of the color picker.
26
26
  */
27
27
  contrastRatio: 'Contrast ratio',
28
28
  /**
29
- * @description Text to show more content
29
+ * @description Tooltip and title for the expand button in the contrast details of the color picker to show more details.
30
30
  */
31
31
  showMore: 'Show more',
32
32
  /**
33
- * @description Choose bg color text content in Contrast Details of the Color Picker
33
+ * @description Prompt message in the contrast details of the color picker asking the user to pick a background color.
34
34
  */
35
35
  pickBackgroundColor: 'Pick background color',
36
36
  /**
37
- * @description Tooltip text that appears when hovering over largeicon eyedropper button in Contrast Details of the Color Picker
37
+ * @description Tooltip and title for the eyedropper button in the contrast details of the color picker to pick a background color.
38
38
  */
39
39
  toggleBackgroundColorPicker: 'Toggle background color picker',
40
40
  /**
41
- * @description Text of a button in Contrast Details of the Color Picker
41
+ * @description Tooltip and accessible name for the button in the contrast details of the color picker to apply a suggested color to fix low contrast.
42
42
  * @example {rgba(0 0 0 / 100%) } PH1
43
43
  */
44
44
  useSuggestedColorStoFixLow: 'Use suggested color {PH1}to fix low contrast',
45
45
  /**
46
- * @description Label for the APCA contrast in Color Picker
46
+ * @description Label for the APCA contrast ratio in the contrast details of the color picker.
47
47
  */
48
48
  apca: 'APCA',
49
49
  /**
50
- * @description Label aa text content in Contrast Details of the Color Picker
50
+ * @description Label for the WCAG AA contrast threshold in the contrast details of the color picker.
51
51
  */
52
52
  aa: 'AA',
53
53
  /**
54
- * @description Text that starts with a colon and includes a placeholder
54
+ * @description Label prefixing a contrast threshold value with a colon in the contrast details of the color picker.
55
55
  * @example {3.0} PH1
56
56
  */
57
57
  placeholderWithColon: ': {PH1}',
58
58
  /**
59
- * @description Label aaa text content in Contrast Details of the Color Picker
59
+ * @description Label for the WCAG AAA contrast threshold in the contrast details of the color picker.
60
60
  */
61
61
  aaa: 'AAA',
62
62
  /**
63
- * @description Text to show less content
63
+ * @description Tooltip and title for the expand button in the contrast details of the color picker to show fewer details.
64
64
  */
65
65
  showLess: 'Show less',
66
66
  } as const;
@@ -8,7 +8,7 @@ import * as UI from '../../legacy.js';
8
8
 
9
9
  const UIStrings = {
10
10
  /**
11
- * @description Menu warning that some color will be clipped after conversion to match the target gamut
11
+ * @description Warning item in the color format picker context menu indicating that converting to a narrower gamut will cause color shifts.
12
12
  */
13
13
  colorShiftWarning: '⚠️ Conversion to a narrow gamut will cause color shifts',
14
14
  } as const;
@@ -53,80 +53,79 @@ import spectrumStyles from './spectrum.css.js';
53
53
 
54
54
  const UIStrings = {
55
55
  /**
56
- * @description Tooltip text that appears when hovering over largeicon eyedropper button in Spectrum of the Color Picker
56
+ * @description Tooltip and title for the eyedropper button in the color picker.
57
57
  * @example {c} PH1
58
58
  */
59
59
  toggleColorPicker: 'Eye dropper [{PH1}]',
60
60
  /**
61
- * @description Aria label for hue slider in Color Picker
61
+ * @description Accessible name for the hue slider in the color picker.
62
62
  */
63
63
  changeHue: 'Change hue',
64
64
  /**
65
- * @description Aria label for alpha slider in Color Picker. Alpha refers to the alpha channel of a
66
- * color, and this tool allows the user to change the alpha value.
65
+ * @description Accessible name for the alpha slider in the color picker.
67
66
  */
68
67
  changeAlpha: 'Change alpha',
69
68
  /**
70
- * @description Aria label for HEX color format input
69
+ * @description Accessible name for the HEX color format input field in the color picker.
71
70
  */
72
71
  hex: 'HEX',
73
72
  /**
74
- * @description Aria label for color format switcher button in Color Picker
73
+ * @description Accessible name and tooltip for the color format switcher button in the color picker.
75
74
  */
76
75
  changeColorFormat: 'Change color format',
77
76
  /**
78
- * @description Screen reader reads this text when palette switcher button receives focus
77
+ * @description Accessible name and tooltip for the palette switcher button in the color picker.
79
78
  */
80
79
  previewPalettes: 'Preview palettes',
81
80
  /**
82
- * @description Tooltip text that appears when hovering over the largeicon add button in the Spectrum of the Color Picker
81
+ * @description Tooltip and title for the button to add the current color to a custom palette in the color picker.
83
82
  */
84
83
  addToPalette: 'Add to palette',
85
84
  /**
86
- * @description Title text content in Spectrum of the Color Picker
85
+ * @description Header title for the color palettes preview section in the color picker.
87
86
  */
88
- colorPalettes: 'Color Palettes',
87
+ colorPalettes: 'Color palettes',
89
88
  /**
90
- * @description Label for close button in Color Picker
89
+ * @description Label for the button to return to the main color picker view from the palette preview in the color picker.
91
90
  */
92
91
  returnToColorPicker: 'Return to color picker',
93
92
  /**
94
- * @description Aria label which declares hex value of a swatch in the Color Picker
93
+ * @description Accessible name for a color swatch in the color picker palette.
95
94
  * @example {#969696} PH1
96
95
  */
97
96
  colorS: 'Color {PH1}',
98
97
  /**
99
- * @description Color element title in Spectrum of the Color Picker
98
+ * @description Tooltip for a material palette color swatch explaining how to view alternate color shades in the color picker.
100
99
  * @example {#9c1724} PH1
101
100
  */
102
101
  longclickOrLongpressSpaceToShow: 'Long-click or long-press space to show alternate shades of {PH1}',
103
102
  /**
104
- * @description A context menu item in the Color Picker to organize the user-defined color palette (removes the user-defined color to which this action is performed)"
103
+ * @description Context menu item in the custom color palette to delete the selected color in the color picker.
105
104
  */
106
105
  removeColor: 'Remove color',
107
106
  /**
108
- * @description A context menu item in the Color Picker to organize the user-defined color palette (removes all user-defined colors to the right of the color to which this action is performed)"
107
+ * @description Context menu item in the custom color palette to delete all colors positioned to the right of the selected color in the color picker.
109
108
  */
110
109
  removeAllToTheRight: 'Remove all to the right',
111
110
  /**
112
- * @description A context menu item in the Color Picker to organize the user-defined color palette (removes all user-defined colors)"
111
+ * @description Context menu item in the custom color palette to delete all colors from the palette in the color picker.
113
112
  */
114
113
  clearPalette: 'Clear palette',
115
114
  /**
116
- * @description Aria label for RGBA and HSLA color format inputs in Color Picker
115
+ * @description Accessible name for an individual channel input field within a color format in the color picker.
117
116
  * @example {R} PH1
118
117
  * @example {RGBA} PH2
119
118
  */
120
119
  sInS: '{PH1} in {PH2}',
121
120
  /**
122
- * @description Swatch copy icon title in Spectrum of the Color Picker
121
+ * @description Tooltip and title for the copy icon on the color swatch in the color picker.
123
122
  */
124
123
  copyColorToClipboard: 'Copy color to clipboard',
125
124
  /**
126
- * @description Aria text for the swatch position. Swatch is the color picker spectrum tool.
125
+ * @description Accessible announcement explaining keyboard controls to move the color swatch in the color picker spectrum.
127
126
  */
128
127
  pressArrowKeysMessage:
129
- 'Press arrow keys with or without modifiers to move swatch position. Arrow key with Shift key moves position largely, with Ctrl key it is less and with Alt key it is even less',
128
+ 'Use arrow keys to move the swatch position. Use Shift to move further, Ctrl to move less, and Alt to move even less.',
130
129
  } as const;
131
130
  const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/color_picker/Spectrum.ts', UIStrings);
132
131
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -15,7 +15,7 @@ import * as Components from '../utils/utils.js';
15
15
 
16
16
  import {CustomPreviewComponent} from './CustomPreviewComponent.js';
17
17
  import objectPopoverStyles from './objectPopover.css.js';
18
- import {ObjectPropertiesSection, ObjectPropertiesSectionWidget} from './ObjectPropertiesSection.js';
18
+ import {ObjectPropertiesSectionWidget, valueElementForFunctionDescription} from './ObjectPropertiesSection.js';
19
19
  import objectValueStyles from './objectValue.css.js';
20
20
 
21
21
  const UIStrings = {
@@ -68,7 +68,7 @@ export class ObjectPopoverHelper {
68
68
  if (result.type === 'function') {
69
69
  titleElement.classList.add('source-code');
70
70
  // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
71
- render(ObjectPropertiesSection.valueElementForFunctionDescription(result.description), titleElement);
71
+ render(valueElementForFunctionDescription(result.description), titleElement);
72
72
  } else {
73
73
  titleElement.classList.add('monospace');
74
74
  titleElement.createChild('span').textContent = description;