chrome-devtools-frontend 1.0.1724140 → 1.0.1726686

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 (95) hide show
  1. package/.agents/skills/review-ui-widgets/SKILL.md +7 -7
  2. package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +12 -0
  3. package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +3 -3
  4. package/.agents/skills/ui-widgets/SKILL.md +2 -1
  5. package/docs/cookbook/dependencies.md +6 -4
  6. package/front_end/core/i18n/i18nImpl.ts +1 -1
  7. package/front_end/core/root/Runtime.ts +1 -1
  8. package/front_end/core/sdk/ResourceTreeModel.ts +16 -0
  9. package/front_end/entrypoints/js_app/js_app.ts +2 -5
  10. package/front_end/entrypoints/node_app/node_app.ts +2 -3
  11. package/front_end/generated/InspectorBackendCommands.ts +1 -1
  12. package/front_end/generated/protocol.ts +1 -0
  13. package/front_end/models/ai_assistance/skills/lighthouse.md +2 -1
  14. package/front_end/models/ai_assistance/skills/network.md +1 -0
  15. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +26 -2
  16. package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +1 -1
  17. package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +2 -7
  18. package/front_end/models/ai_assistance/tools/RunLighthouse.ts +2 -2
  19. package/front_end/models/comment_manager/CommentManager.ts +0 -6
  20. package/front_end/models/comment_manager/CommentThread.ts +23 -19
  21. package/front_end/models/elements/StyleChanges.ts +66 -0
  22. package/front_end/models/trace/EventsSerializer.ts +2 -7
  23. package/front_end/models/trace/ModelImpl.ts +0 -2
  24. package/front_end/models/trace/handlers/FlowsHandler.ts +37 -29
  25. package/front_end/models/trace/helpers/SyntheticEvents.ts +10 -37
  26. package/front_end/models/trace/insights/RenderBlocking.ts +3 -1
  27. package/front_end/models/trace/lantern/simulation/Simulator.ts +4 -0
  28. package/front_end/models/trace/lantern/types/Lantern.ts +1 -0
  29. package/front_end/panels/accessibility/SourceOrderView.ts +1 -1
  30. package/front_end/panels/application/ApplicationPanelSidebar.ts +90 -0
  31. package/front_end/panels/application/StorageView.ts +196 -174
  32. package/front_end/panels/application/SubAppsView.ts +2 -2
  33. package/front_end/panels/application/preloading/PreloadingView.ts +360 -336
  34. package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +2 -2
  35. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +6 -3
  36. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +17 -17
  37. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +2 -2
  38. package/front_end/panels/application/preloading/preloadingView.css +12 -4
  39. package/front_end/panels/application/preloading/preloadingViewDropDown.css +1 -1
  40. package/front_end/panels/application/storageView.css +16 -21
  41. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -2
  42. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +6 -8
  43. package/front_end/panels/comments/CommentsPane.ts +26 -9
  44. package/front_end/panels/comments/commentsPane.css +25 -6
  45. package/front_end/panels/common/CommentThreadWidget.ts +2 -2
  46. package/front_end/panels/common/CommentsOverlayWidget.ts +94 -35
  47. package/front_end/panels/common/commentThreadWidget.css +17 -0
  48. package/front_end/panels/common/commentsOverlay.css +5 -10
  49. package/front_end/panels/common/common-meta.ts +11 -1
  50. package/front_end/panels/elements/ClassesPaneWidget.ts +130 -88
  51. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +7 -33
  52. package/front_end/panels/elements/DOMTreeWidget.ts +7 -3
  53. package/front_end/panels/elements/ElementStatePaneWidget.ts +11 -1
  54. package/front_end/panels/elements/PropertyRenderer.ts +3 -2
  55. package/front_end/panels/elements/StyleEditorWidget.ts +60 -41
  56. package/front_end/panels/elements/StylePropertiesSection.ts +32 -5
  57. package/front_end/panels/elements/StylePropertyTreeElement.ts +227 -162
  58. package/front_end/panels/event_listeners/EventListenersView.ts +11 -8
  59. package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +1 -1
  60. package/front_end/panels/network/NetworkDataGridNode.ts +3 -1
  61. package/front_end/panels/network/RequestConditionsDrawer.ts +1 -1
  62. package/front_end/panels/network/RequestPayloadView.ts +12 -5
  63. package/front_end/panels/profiler/HeapProfileView.ts +28 -6
  64. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +7 -3
  65. package/front_end/panels/protocol_monitor/JSONEditor.ts +0 -1
  66. package/front_end/panels/recorder/RecorderPanel.ts +2 -2
  67. package/front_end/panels/settings/SettingsScreen.ts +1 -1
  68. package/front_end/panels/sources/NavigatorView.ts +105 -45
  69. package/front_end/panels/sources/ScopeChainSidebarPane.ts +8 -5
  70. package/front_end/panels/sources/SourcesNavigator.ts +421 -213
  71. package/front_end/panels/sources/SourcesPanel.ts +6 -4
  72. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +10 -5
  73. package/front_end/panels/sources/sources-meta.ts +4 -15
  74. package/front_end/panels/sources/sourcesNavigator.css +5 -0
  75. package/front_end/panels/timeline/ModificationsManager.ts +0 -2
  76. package/front_end/panels/timeline/README.md +2 -0
  77. package/front_end/panels/timeline/TimelineCommentController.ts +132 -30
  78. package/front_end/panels/timeline/TimelinePanel.ts +4 -0
  79. package/front_end/panels/timeline/components/IgnoreListSetting.ts +1 -1
  80. package/front_end/panels/timeline/utils/Treemap.ts +8 -0
  81. package/front_end/third_party/chromium/README.chromium +1 -1
  82. package/front_end/ui/comments/CommentAnchorResolver.ts +3 -0
  83. package/front_end/ui/comments/CommentOverlayManager.ts +2 -4
  84. package/front_end/ui/components/lists/List.ts +14 -1
  85. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  86. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +23 -14
  87. package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +3 -0
  88. package/front_end/ui/legacy/Toolbar.ts +0 -1
  89. package/front_end/ui/legacy/Treeoutline.ts +7 -2
  90. package/front_end/ui/legacy/UIUtils.ts +4 -1
  91. package/front_end/ui/legacy/components/inline_editor/Swatches.ts +19 -6
  92. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +20 -11
  93. package/front_end/ui/legacy/components/source_frame/XMLView.ts +27 -7
  94. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  95. package/package.json +1 -1
@@ -44,6 +44,7 @@ import * as TextUtils from '../../core/text_utils/text_utils.js';
44
44
  import * as Protocol from '../../generated/protocol.js';
45
45
  import * as Badges from '../../models/badges/badges.js';
46
46
  import * as Bindings from '../../models/bindings/bindings.js';
47
+ import * as Elements from '../../models/elements/elements.js';
47
48
  import * as Buttons from '../../ui/components/buttons/buttons.js';
48
49
  import * as Tooltips from '../../ui/components/tooltips/tooltips.js';
49
50
  import {createIcon, type Icon} from '../../ui/kit/kit.js';
@@ -1993,12 +1994,18 @@ export class StylePropertiesSection {
1993
1994
  }
1994
1995
 
1995
1996
  setHeaderText(rule: SDK.CSSRule.CSSRule, newContent: string): Promise<void> {
1996
- function onSelectorsUpdated(
1997
- this: StylePropertiesSection, rule: SDK.CSSRule.CSSStyleRule, success: boolean): Promise<void> {
1997
+ function onSelectorsUpdated(this: StylePropertiesSection, rule: SDK.CSSRule.CSSStyleRule, oldSelector: string,
1998
+ success: boolean): Promise<void> {
1998
1999
  if (!success) {
1999
2000
  return Promise.resolve();
2000
2001
  }
2001
2002
 
2003
+ Elements.StyleChanges.trackStyleSelectorChange(
2004
+ this.stylesContainer.changeTracker,
2005
+ this.stylesContainer.node() ?? this.matchedStyles.node(),
2006
+ oldSelector,
2007
+ newContent,
2008
+ );
2002
2009
  Badges.UserBadges.instance().recordAction(Badges.BadgeAction.CSS_RULE_MODIFIED);
2003
2010
  return this.matchedStyles.recomputeMatchingSelectors(rule).then(updateSourceRanges.bind(this, rule));
2004
2011
  }
@@ -2017,8 +2024,9 @@ export class StylePropertiesSection {
2017
2024
  if (!oldSelectorRange) {
2018
2025
  return Promise.resolve();
2019
2026
  }
2027
+ const oldSelector = rule.selectorText();
2020
2028
  this.#customHeaderText = undefined;
2021
- return rule.setSelectorText(newContent).then(onSelectorsUpdated.bind(this, rule, Boolean(oldSelectorRange)));
2029
+ return rule.setSelectorText(newContent).then(onSelectorsUpdated.bind(this, rule, oldSelector));
2022
2030
  }
2023
2031
 
2024
2032
  protected editingSelectorCommittedForTest(): void {
@@ -2117,6 +2125,11 @@ export class BlankStylePropertiesSection extends StylePropertiesSection {
2117
2125
  function onAddedToCascade(this: BlankStylePropertiesSection, newRule: SDK.CSSRule.CSSStyleRule): void {
2118
2126
  const doesSelectorAffectSelectedNode = this.matchedStyles.getMatchingSelectors(newRule).length > 0;
2119
2127
  this.makeNormal(newRule);
2128
+ Elements.StyleChanges.trackStyleRuleAdded(
2129
+ this.stylesContainer.changeTracker,
2130
+ this.stylesContainer.node() ?? this.matchedStyles.node(),
2131
+ newRule.selectorText(),
2132
+ );
2120
2133
 
2121
2134
  if (!doesSelectorAffectSelectedNode) {
2122
2135
  this.propertiesTreeOutline.element.classList.add('no-affect');
@@ -2186,7 +2199,14 @@ export class RegisteredPropertiesSection extends StylePropertiesSection {
2186
2199
  if (!oldRange) {
2187
2200
  return;
2188
2201
  }
2202
+ const oldName = rule.propertyName().text;
2189
2203
  if (await rule.setPropertyName(newContent)) {
2204
+ Elements.StyleChanges.trackPropertyRuleNameChange(
2205
+ this.stylesContainer.changeTracker,
2206
+ this.stylesContainer.node() ?? this.matchedStyles.node(),
2207
+ oldName,
2208
+ newContent,
2209
+ );
2190
2210
  this.stylesContainer.forceUpdate();
2191
2211
  }
2192
2212
  }
@@ -2335,10 +2355,16 @@ export class KeyframePropertiesSection extends StylePropertiesSection {
2335
2355
  }
2336
2356
 
2337
2357
  override setHeaderText(rule: SDK.CSSRule.CSSRule, newContent: string): Promise<void> {
2338
- function updateSourceRanges(this: KeyframePropertiesSection, success: boolean): void {
2358
+ function updateSourceRanges(this: KeyframePropertiesSection, oldKey: string, success: boolean): void {
2339
2359
  if (!success) {
2340
2360
  return;
2341
2361
  }
2362
+ Elements.StyleChanges.trackKeyframeKeyChange(
2363
+ this.stylesContainer.changeTracker,
2364
+ this.stylesContainer.node() ?? this.matchedStyles.node(),
2365
+ oldKey,
2366
+ newContent,
2367
+ );
2342
2368
  this.stylesContainer.refreshUpdate(this);
2343
2369
  }
2344
2370
 
@@ -2349,7 +2375,8 @@ export class KeyframePropertiesSection extends StylePropertiesSection {
2349
2375
  if (!oldRange) {
2350
2376
  return Promise.resolve();
2351
2377
  }
2352
- return rule.setKeyText(newContent).then(updateSourceRanges.bind(this));
2378
+ const oldKey = rule.key().text;
2379
+ return rule.setKeyText(newContent).then(updateSourceRanges.bind(this, oldKey));
2353
2380
  }
2354
2381
 
2355
2382
  override isPropertyInherited(_propertyName: string): boolean {