chrome-devtools-frontend 1.0.1701636 → 1.0.1702515

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 (78) hide show
  1. package/eslint.config.mjs +3 -1
  2. package/front_end/core/host/UserMetricsEnums.ts +2 -1
  3. package/front_end/core/root/ExperimentNames.ts +1 -0
  4. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +2 -7
  5. package/front_end/devtools_compatibility.js +2 -1
  6. package/front_end/entrypoints/main/MainImpl.ts +8 -0
  7. package/front_end/generated/InspectorBackendCommands.ts +3 -3
  8. package/front_end/generated/protocol.ts +0 -3
  9. package/front_end/models/ai_assistance/AiAgent2.ts +13 -1
  10. package/front_end/models/ai_assistance/AiConversation.ts +1 -1
  11. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +13 -19
  12. package/front_end/models/change_tracker/ChangeTracker.ts +5 -64
  13. package/front_end/models/comment_manager/CommentManager.ts +3 -5
  14. package/front_end/models/comment_manager/CommentThread.ts +30 -13
  15. package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +6 -7
  16. package/front_end/models/issues_manager/DeprecationIssue.ts +1 -1
  17. package/front_end/models/issues_manager/MarkdownIssueDescription.ts +14 -5
  18. package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +2 -4
  19. package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +0 -1
  20. package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
  21. package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +0 -1
  22. package/front_end/models/issues_manager/descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
  23. package/front_end/models/issues_manager/descriptions/deprecation.md +1 -1
  24. package/front_end/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +2 -0
  25. package/front_end/models/persistence/NetworkPersistenceManager.ts +14 -2
  26. package/front_end/panels/common/CommentThreadWidget.ts +29 -10
  27. package/front_end/panels/common/CommentsOverlayWidget.ts +50 -14
  28. package/front_end/panels/common/commentThreadWidget.css +11 -0
  29. package/front_end/panels/elements/StylePropertiesSection.ts +10 -0
  30. package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
  31. package/front_end/panels/elements/StylesSidebarPane.ts +101 -49
  32. package/front_end/panels/elements/components/CSSQuery.ts +1 -1
  33. package/front_end/panels/elements/components/cssQuery.css +4 -0
  34. package/front_end/panels/elements/elements.ts +0 -1
  35. package/front_end/panels/elements/stylesSidebarPane.css +6 -0
  36. package/front_end/panels/sources/ResourceOriginPlugin.ts +8 -3
  37. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -4
  38. package/front_end/panels/sources/TabbedEditorContainer.ts +339 -126
  39. package/front_end/panels/sources/UISourceCodeFrame.ts +9 -0
  40. package/front_end/third_party/chromium/README.chromium +1 -1
  41. package/front_end/third_party/chromium/client-variations/ClientVariations.js +25 -96
  42. package/front_end/third_party/codemirror.next/chunk/angular.js +1 -1
  43. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  44. package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
  45. package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -1
  46. package/front_end/third_party/codemirror.next/chunk/cpp.js.map +1 -1
  47. package/front_end/third_party/codemirror.next/chunk/java.js +1 -1
  48. package/front_end/third_party/codemirror.next/chunk/java.js.map +1 -1
  49. package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
  50. package/front_end/third_party/codemirror.next/chunk/less.js +1 -1
  51. package/front_end/third_party/codemirror.next/chunk/less.js.map +1 -1
  52. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
  53. package/front_end/third_party/codemirror.next/chunk/markdown.js.map +1 -1
  54. package/front_end/third_party/codemirror.next/chunk/php.js +1 -1
  55. package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
  56. package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
  57. package/front_end/third_party/codemirror.next/chunk/python.js.map +1 -1
  58. package/front_end/third_party/codemirror.next/chunk/sass.js +1 -1
  59. package/front_end/third_party/codemirror.next/chunk/sass.js.map +1 -1
  60. package/front_end/third_party/codemirror.next/chunk/svelte.js +1 -1
  61. package/front_end/third_party/codemirror.next/chunk/svelte.js.map +1 -1
  62. package/front_end/third_party/codemirror.next/chunk/vue.js +1 -1
  63. package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
  64. package/front_end/third_party/codemirror.next/chunk/wast.js.map +1 -1
  65. package/front_end/third_party/codemirror.next/chunk/xml.js +1 -1
  66. package/front_end/third_party/codemirror.next/chunk/xml.js.map +1 -1
  67. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  68. package/front_end/third_party/codemirror.next/package.json +4 -1
  69. package/front_end/third_party/codemirror.next/rebuild.sh +1 -1
  70. package/front_end/ui/comments/CommentOverlayManager.ts +11 -10
  71. package/front_end/ui/components/markdown_view/MarkdownPlaceholderLitRenderer.ts +117 -0
  72. package/front_end/ui/components/markdown_view/markdown_view.ts +2 -0
  73. package/front_end/ui/legacy/Treeoutline.ts +28 -19
  74. package/front_end/ui/legacy/UIUtils.ts +1 -1
  75. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +228 -343
  76. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -27
  77. package/mcp/mcp.ts +1 -0
  78. package/package.json +1 -1
@@ -171,7 +171,7 @@ export class CSSQuery extends HTMLElement {
171
171
  <slot name="indent"></slot>
172
172
  ${this.#queryPrefix ? html`<span>${this.#queryPrefix + ' '}</span>` : Lit.nothing}
173
173
  ${this.#queryName ? html`<span>${this.#queryName + ' '}</span>` : Lit.nothing}
174
- ${queryText} {
174
+ ${queryText}<slot></slot> <span class="sidebar-pane-open-brace">{</span>
175
175
  </div>`,
176
176
  this.#shadow, {host: this});
177
177
  // clang-format on
@@ -16,3 +16,7 @@
16
16
  text-decoration: var(--override-styles-section-text-hover-text-decoration);
17
17
  cursor: var(--override-styles-section-text-hover-cursor);
18
18
  }
19
+
20
+ :host-context(.collapsed):host(:has(devtools-icon)) .sidebar-pane-open-brace::after {
21
+ content: "}";
22
+ }
@@ -81,7 +81,6 @@ export {
81
81
  DOMPath,
82
82
  DOMTreeContextMenu,
83
83
  DOMTreeWidget,
84
- DOMTreeWidget as ElementsTreeOutline,
85
84
  ElementsPanel,
86
85
  ElementsSidebarPane,
87
86
  ElementStatePaneWidget,
@@ -115,6 +115,7 @@
115
115
  & .section-collapse-icon {
116
116
  width: var(--sys-size-6);
117
117
  height: var(--sys-size-6);
118
+ margin-block: calc(-1 * var(--sys-size-3));
118
119
  margin-right: var(--sys-size-2);
119
120
  margin-left: calc(-1 * var(--sys-size-2));
120
121
  vertical-align: middle;
@@ -122,6 +123,11 @@
122
123
  display: none;
123
124
  }
124
125
 
126
+ & .styles-section-status {
127
+ margin-block: calc(-1 * var(--sys-size-4));
128
+ vertical-align: middle;
129
+ }
130
+
125
131
  &.collapsible .section-collapse-icon {
126
132
  display: inline-block;
127
133
  }
@@ -49,11 +49,15 @@ export class ResourceOriginPlugin extends Plugin {
49
49
  const url = uiSourceCode.url();
50
50
  const text = Bindings.ResourceUtils.displayNameForURL(url);
51
51
  const title = i18nString(UIStrings.sourceMappedFromS, {PH1: text});
52
- links.push(Components.Linkifier.Linkifier.linkifyRevealable(
53
- uiSourceCode, text, url, title, undefined, 'original-script-location'));
52
+ const link = Components.Linkifier.Linkifier.linkifyRevealable(uiSourceCode, text, url, title, undefined,
53
+ 'original-script-location');
54
+ link.tabIndex = 0;
55
+ links.push(link);
54
56
  }
55
57
  for (const originURL of Bindings.SASSSourceMapping.SASSSourceMapping.uiSourceOrigin(this.uiSourceCode)) {
56
- links.push(Components.Linkifier.Linkifier.linkifyURL(originURL));
58
+ const link = Components.Linkifier.Linkifier.linkifyURL(originURL);
59
+ link.tabIndex = 0;
60
+ links.push(link);
57
61
  }
58
62
  if (links.length === 0) {
59
63
  return [];
@@ -72,6 +76,7 @@ export class ResourceOriginPlugin extends Plugin {
72
76
  for (const script of debuggerWorkspaceBinding.scriptsForUISourceCode(this.uiSourceCode)) {
73
77
  if (script.originStackTrace?.callFrames.length) {
74
78
  const link = this.#linkifier.linkifyStackTraceTopFrame(script.debuggerModel.target(), script.originStackTrace);
79
+ link.tabIndex = 0;
75
80
  return [new UI.Toolbar.ToolbarItem(uiI18n.getFormatLocalizedString(str_, UIStrings.fromS, {PH1: link}))];
76
81
  }
77
82
  }
@@ -28,7 +28,6 @@
28
28
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
  */
30
30
 
31
- import type * as Common from '../../core/common/common.js';
32
31
  import * as i18n from '../../core/i18n/i18n.js';
33
32
  import type * as SDK from '../../core/sdk/sdk.js';
34
33
  import * as Protocol from '../../generated/protocol.js';
@@ -38,7 +37,7 @@ import * as StackTrace from '../../models/stack_trace/stack_trace.js';
38
37
  import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
39
38
  import * as Components from '../../ui/legacy/components/utils/utils.js';
40
39
  import * as UI from '../../ui/legacy/legacy.js';
41
- import {html, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
40
+ import {html, type LitTemplate, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
42
41
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
43
42
 
44
43
  import scopeChainSidebarPaneStyles from './scopeChainSidebarPane.css.js';
@@ -89,9 +88,9 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
89
88
  scope: SDK.DebuggerModel.ScopeChainEntry,
90
89
  objectTree: ObjectUI.ObjectPropertiesSection.ObjectTree,
91
90
  }): TemplateResult => {
92
- let emptyPlaceholder: Common.UIString.LocalizedString|undefined;
91
+ let emptyPlaceholder: LitTemplate|undefined;
93
92
  if (scope.type() === Protocol.Debugger.ScopeType.Local || scope.type() === Protocol.Debugger.ScopeType.Closure) {
94
- emptyPlaceholder = i18nString(UIStrings.noVariables);
93
+ emptyPlaceholder = html`${i18nString(UIStrings.noVariables)}`;
95
94
  }
96
95
  const icon = scope.icon();
97
96
  const {title, subtitle} = scopeTitle(scope);