chrome-devtools-frontend 1.0.1597448 → 1.0.1598808

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 (143) hide show
  1. package/docs/ui_engineering.md +6 -6
  2. package/front_end/core/host/AidaClient.ts +6 -0
  3. package/front_end/core/sdk/CPUThrottlingManager.ts +5 -1
  4. package/front_end/core/sdk/CSSMatchedStyles.ts +2 -0
  5. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +28 -0
  6. package/front_end/models/ai_assistance/AiConversation.ts +40 -22
  7. package/front_end/models/ai_assistance/ChangeManager.ts +16 -0
  8. package/front_end/models/ai_assistance/ExtensionScope.ts +11 -3
  9. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +127 -0
  10. package/front_end/models/ai_assistance/agents/AiAgent.ts +35 -6
  11. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +1 -1
  12. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +11 -8
  13. package/front_end/models/ai_assistance/agents/ConversationSummaryAgent.ts +109 -0
  14. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +30 -1
  15. package/front_end/models/ai_assistance/agents/StylingAgent.ts +34 -4
  16. package/front_end/models/ai_assistance/ai_assistance.ts +4 -0
  17. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +27 -0
  18. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +21 -0
  19. package/front_end/models/trace/Processor.ts +1 -0
  20. package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +33 -0
  21. package/front_end/models/trace/insights/CharacterSet.ts +172 -0
  22. package/front_end/models/trace/insights/Models.ts +1 -0
  23. package/front_end/models/trace/insights/types.ts +1 -0
  24. package/front_end/models/trace/types/TraceEvents.ts +17 -0
  25. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +22 -12
  26. package/front_end/panels/ai_assistance/PatchWidget.ts +1 -1
  27. package/front_end/panels/ai_assistance/components/ChatMessage.ts +131 -63
  28. package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
  29. package/front_end/panels/ai_assistance/components/MarkdownRendererWithCodeBlock.ts +18 -9
  30. package/front_end/panels/ai_assistance/components/chatMessage.css +11 -0
  31. package/front_end/panels/application/AppManifestView.ts +4 -5
  32. package/front_end/panels/application/CookieItemsView.ts +9 -15
  33. package/front_end/panels/application/DeviceBoundSessionsView.ts +20 -26
  34. package/front_end/panels/application/FrameDetailsView.ts +10 -16
  35. package/front_end/panels/application/OriginTrialTreeView.ts +2 -3
  36. package/front_end/panels/application/ReportingApiView.ts +14 -18
  37. package/front_end/panels/application/components/BackForwardCacheView.ts +3 -3
  38. package/front_end/panels/application/preloading/PreloadingView.ts +18 -3
  39. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +2 -3
  40. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +3 -2
  41. package/front_end/panels/changes/ChangesView.ts +13 -15
  42. package/front_end/panels/console/ConsolePinPane.ts +3 -3
  43. package/front_end/panels/coverage/CoverageListView.ts +1 -1
  44. package/front_end/panels/coverage/CoverageView.ts +4 -4
  45. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  46. package/front_end/panels/css_overview/CSSOverviewPanel.ts +11 -15
  47. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +3 -5
  48. package/front_end/panels/elements/ElementsTreeOutline.ts +34 -8
  49. package/front_end/panels/elements/EventListenersWidget.ts +3 -2
  50. package/front_end/panels/elements/StandaloneStylesContainer.ts +21 -6
  51. package/front_end/panels/elements/StylePropertiesSection.ts +129 -1
  52. package/front_end/panels/elements/StylePropertyHighlighter.ts +3 -0
  53. package/front_end/panels/elements/StylePropertyTreeElement.ts +49 -4
  54. package/front_end/panels/elements/stylesSidebarPane.css +34 -0
  55. package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +3 -5
  56. package/front_end/panels/layer_viewer/LayerDetailsView.ts +2 -1
  57. package/front_end/panels/layer_viewer/Layers3DView.ts +5 -4
  58. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +5 -6
  59. package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +6 -11
  60. package/front_end/panels/network/RequestConditionsDrawer.ts +4 -4
  61. package/front_end/panels/network/RequestCookiesView.ts +5 -6
  62. package/front_end/panels/network/RequestHeadersView.ts +4 -4
  63. package/front_end/panels/network/RequestInitiatorView.ts +7 -5
  64. package/front_end/panels/network/RequestResponseView.ts +10 -15
  65. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  66. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +5 -6
  67. package/front_end/panels/recorder/components/RecordingView.ts +31 -36
  68. package/front_end/panels/recorder/components/StepEditor.ts +6 -7
  69. package/front_end/panels/recorder/components/StepView.ts +2 -1
  70. package/front_end/panels/search/SearchView.ts +3 -4
  71. package/front_end/panels/settings/WorkspaceSettingsTab.ts +2 -5
  72. package/front_end/panels/timeline/TimelineDetailsView.ts +8 -6
  73. package/front_end/panels/timeline/components/LiveMetricsView.ts +5 -8
  74. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +2 -7
  75. package/front_end/panels/timeline/components/insights/Cache.ts +8 -10
  76. package/front_end/panels/timeline/components/insights/CharacterSet.ts +34 -0
  77. package/front_end/panels/timeline/components/insights/DOMSize.ts +16 -20
  78. package/front_end/panels/timeline/components/insights/DocumentLatency.ts +2 -6
  79. package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +3 -4
  80. package/front_end/panels/timeline/components/insights/EventRef.ts +2 -2
  81. package/front_end/panels/timeline/components/insights/FontDisplay.ts +3 -4
  82. package/front_end/panels/timeline/components/insights/ForcedReflow.ts +5 -7
  83. package/front_end/panels/timeline/components/insights/INPBreakdown.ts +3 -4
  84. package/front_end/panels/timeline/components/insights/ImageDelivery.ts +3 -4
  85. package/front_end/panels/timeline/components/insights/ImageRef.ts +2 -4
  86. package/front_end/panels/timeline/components/insights/InsightRenderer.ts +2 -0
  87. package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +5 -7
  88. package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +2 -4
  89. package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +3 -4
  90. package/front_end/panels/timeline/components/insights/ModernHTTP.ts +3 -4
  91. package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +7 -11
  92. package/front_end/panels/timeline/components/insights/NodeLink.ts +2 -4
  93. package/front_end/panels/timeline/components/insights/RenderBlocking.ts +3 -4
  94. package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +7 -10
  95. package/front_end/panels/timeline/components/insights/ThirdParties.ts +5 -7
  96. package/front_end/panels/timeline/components/insights/insights.ts +2 -0
  97. package/front_end/panels/web_audio/WebAudioView.ts +3 -4
  98. package/front_end/panels/webauthn/WebauthnPane.ts +2 -2
  99. package/front_end/third_party/chromium/README.chromium +1 -1
  100. package/front_end/third_party/puppeteer/README.chromium +2 -2
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js +1 -1
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js.map +1 -1
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts +4 -0
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts.map +1 -1
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +13 -0
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
  107. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  108. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
  109. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
  110. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  112. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  114. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/mitt.js +2 -2
  115. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/parsel-js/parsel-js.js +1 -1
  116. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/rxjs/rxjs.js +446 -446
  117. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +166 -167
  118. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js +2 -2
  119. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js.map +1 -1
  120. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts +4 -0
  121. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts.map +1 -1
  122. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js +12 -0
  123. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js.map +1 -1
  124. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
  125. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
  126. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
  127. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  129. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/mitt.js +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/esm/third_party/parsel-js/parsel-js.js +1 -1
  131. package/front_end/third_party/puppeteer/package/lib/esm/third_party/rxjs/rxjs.js +97 -97
  132. package/front_end/third_party/puppeteer/package/package.json +1 -1
  133. package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +2 -2
  134. package/front_end/third_party/puppeteer/package/src/bidi/util.ts +17 -0
  135. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  136. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  137. package/front_end/ui/components/settings/SettingCheckbox.ts +2 -0
  138. package/front_end/ui/legacy/Widget.ts +42 -6
  139. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +3 -3
  140. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -8
  141. package/front_end/ui/visual_logging/Debugging.ts +0 -32
  142. package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
  143. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puppeteer-core",
3
- "version": "24.39.0",
3
+ "version": "24.39.1",
4
4
  "description": "A high-level API to control headless Chrome over the DevTools Protocol",
5
5
  "keywords": [
6
6
  "puppeteer",
@@ -36,7 +36,7 @@ import {ExposableFunction} from './ExposedFunction.js';
36
36
  import type {BidiFrame} from './Frame.js';
37
37
  import {BidiJSHandle} from './JSHandle.js';
38
38
  import {BidiSerializer} from './Serializer.js';
39
- import {createEvaluationError} from './util.js';
39
+ import {createEvaluationError, rewriteEvaluationError} from './util.js';
40
40
  import type {BidiWebWorker} from './WebWorker.js';
41
41
 
42
42
  /**
@@ -181,7 +181,7 @@ export abstract class BidiRealm extends Realm {
181
181
  );
182
182
  }
183
183
 
184
- const result = await responsePromise;
184
+ const result = await responsePromise.catch(rewriteEvaluationError);
185
185
 
186
186
  if ('type' in result && result.type === 'exception') {
187
187
  throw createEvaluationError(result.exceptionDetails);
@@ -82,3 +82,20 @@ export function rewriteNavigationError(
82
82
  throw error;
83
83
  };
84
84
  }
85
+
86
+ /**
87
+ * @internal
88
+ */
89
+ export function rewriteEvaluationError(error: unknown): never {
90
+ if (error instanceof Error) {
91
+ if (
92
+ error.message.includes('ExecutionContext was destroyed') ||
93
+ error.message.includes('Inspected target navigated or closed')
94
+ ) {
95
+ throw new Error(
96
+ 'Execution context was destroyed, most likely because of a navigation.',
97
+ );
98
+ }
99
+ }
100
+ throw error;
101
+ }
@@ -8,7 +8,7 @@
8
8
  * @internal
9
9
  */
10
10
  export const PUPPETEER_REVISIONS = Object.freeze({
11
- chrome: '146.0.7680.66',
12
- 'chrome-headless-shell': '146.0.7680.66',
13
- firefox: 'stable_148.0',
11
+ chrome: '146.0.7680.76',
12
+ 'chrome-headless-shell': '146.0.7680.76',
13
+ firefox: 'stable_148.0.2',
14
14
  });
@@ -6,5 +6,5 @@
6
6
 
7
7
  // If moved update release-please config
8
8
  // x-release-please-start-version
9
- export const packageVersion = '24.39.0';
9
+ export const packageVersion = '24.39.1';
10
10
  // x-release-please-end
@@ -85,6 +85,8 @@ export class SettingCheckbox extends HTMLElement {
85
85
  <devtools-button
86
86
  class="info-icon"
87
87
  aria-details=${id}
88
+ aria-disabled=true
89
+ accessibleLabel=${learnMore.tooltip()}
88
90
  .data=${data}
89
91
  ></devtools-button>
90
92
  <devtools-tooltip id=${id} variant="rich">
@@ -101,6 +101,7 @@ function enqueueWidgetUpdate(widget: Widget): Promise<void> {
101
101
  }
102
102
 
103
103
  function cancelUpdate(widget: Widget): void {
104
+ widget.cancelUpdateController();
104
105
  if (currentUpdateQueue) {
105
106
  const scheduledUpdate = currentUpdateQueue.get(widget);
106
107
  if (scheduledUpdate) {
@@ -124,8 +125,13 @@ function runNextUpdate(): void {
124
125
  for (const [widget, {resolve}] of currentUpdateQueue) {
125
126
  currentlyProcessed.add(widget);
126
127
  void (async () => {
127
- await widget.performUpdate();
128
- resolve();
128
+ try {
129
+ const controller = new AbortController();
130
+ widget.addUpdateController(controller);
131
+ await widget.performUpdate(controller.signal);
132
+ } finally {
133
+ resolve();
134
+ }
129
135
  })();
130
136
  }
131
137
  currentUpdateQueue.clear();
@@ -266,16 +272,34 @@ export class WidgetElement<WidgetT extends Widget> extends HTMLElement {
266
272
  customElements.define('devtools-widget', WidgetElement);
267
273
 
268
274
  export class WidgetDirective extends Lit.Directive.Directive {
275
+ #partType: Lit.Directive.PartType;
276
+
269
277
  constructor(partInfo: Lit.Directive.PartInfo) {
270
278
  super(partInfo);
271
- if (partInfo.type !== Lit.Directive.PartType.CHILD) {
272
- throw new Error('Widget directive must be used as a child directive.');
279
+ this.#partType = partInfo.type;
280
+ if (this.#partType !== Lit.Directive.PartType.CHILD && this.#partType !== Lit.Directive.PartType.ELEMENT) {
281
+ throw new Error('Widget directive must be used as a child or element directive.');
282
+ }
283
+ }
284
+
285
+ override update(part: Lit.Directive.Part, [widgetClass, widgetParams]: Parameters<this['render']>): unknown {
286
+ if (this.#partType === Lit.Directive.PartType.ELEMENT) {
287
+ const element = (part as Lit.Directive.ElementPart).element;
288
+ if (!(element instanceof WidgetElement)) {
289
+ throw new Error('Widget directive must be used on a devtools-widget element.');
290
+ }
291
+ element.widgetConfig = widgetConfig(widgetClass, widgetParams);
292
+ return Lit.nothing;
273
293
  }
294
+ return this.render(widgetClass, widgetParams);
274
295
  }
275
296
 
276
297
  render<F extends WidgetFactory<Widget>, ParamKeys extends keyof InferWidgetTFromFactory<F>>(
277
298
  widgetClass: F,
278
299
  widgetParams?: Pick<InferWidgetTFromFactory<F>, ParamKeys>&Partial<InferWidgetTFromFactory<F>>): unknown {
300
+ if (this.#partType === Lit.Directive.PartType.ELEMENT) {
301
+ return Lit.nothing;
302
+ }
279
303
  // We use `repeat` to force Lit to recreate the `<devtools-widget>` DOM node when the `widgetClass` changes.
280
304
  // If we didn't use `repeat` and used `html` directly, Lit would reuse the same `<devtools-widget>` instance
281
305
  // even if `widgetClass` changed (for example, in a ternary operator `condition ? widget(A) : widget(B)`).
@@ -284,7 +308,7 @@ export class WidgetDirective extends Lit.Directive.Directive {
284
308
  return Lit.Directives.repeat(
285
309
  [widgetClass], () => widgetClass,
286
310
  () => html`<devtools-widget .widgetConfig=${
287
- widgetConfig(widgetClass, widgetParams as never)}></devtools-widget>`);
311
+ widgetConfig<F, ParamKeys>(widgetClass, widgetParams)}></devtools-widget>`);
288
312
  }
289
313
  }
290
314
 
@@ -388,6 +412,7 @@ export class Widget {
388
412
  #invalidationsRequested?: boolean;
389
413
  #externallyManaged?: boolean;
390
414
  #updateComplete = UPDATE_COMPLETE;
415
+ #updateController?: AbortController;
391
416
 
392
417
  /**
393
418
  * Constructs a new `Widget` with the given `options`.
@@ -1027,7 +1052,17 @@ export class Widget {
1027
1052
  * update logic will await the resolution of the returned promise
1028
1053
  * before proceeding.
1029
1054
  */
1030
- performUpdate(): Promise<void>|void {
1055
+ performUpdate(): Promise<void>|void;
1056
+ performUpdate(signal: AbortSignal): Promise<void>|void;
1057
+ performUpdate(_signal?: AbortSignal): Promise<void>|void {
1058
+ }
1059
+
1060
+ addUpdateController(controller: AbortController): void {
1061
+ this.#updateController = controller;
1062
+ }
1063
+
1064
+ cancelUpdateController(): void {
1065
+ this.#updateController?.abort();
1031
1066
  }
1032
1067
 
1033
1068
  /**
@@ -1037,6 +1072,7 @@ export class Widget {
1037
1072
  * frame.
1038
1073
  */
1039
1074
  requestUpdate(): void {
1075
+ this.#updateController?.abort();
1040
1076
  this.#updateComplete = enqueueWidgetUpdate(this);
1041
1077
  }
1042
1078
 
@@ -613,14 +613,14 @@ export const ifExpanded = Lit.Directive.directive(class extends Lit.Directive.Di
613
613
  #partInfo: {type: Lit.Directive.PartType, startNode: Node};
614
614
  constructor(partInfo: Lit.Directive.PartInfo) {
615
615
  if (partInfo.type !== Lit.Directive.PartType.CHILD) {
616
- throw new Error('expand directive must be used in a child node');
616
+ throw new Error('ifExpanded directive must be used in a child node');
617
617
  }
618
618
  super(partInfo);
619
619
  this.#partInfo = partInfo as {type: Lit.Directive.PartType, startNode: Node};
620
620
  }
621
621
 
622
- render(content: () => Lit.TemplateResult): Lit.LitTemplate {
623
- return this.#isInExpandedRow(this.#partInfo.startNode) ? content() : Lit.nothing;
622
+ render(content: Lit.LitTemplate|Iterable<Lit.LitTemplate>): Lit.LitTemplate|Iterable<Lit.LitTemplate> {
623
+ return this.#isInExpandedRow(this.#partInfo.startNode) ? content : Lit.nothing;
624
624
  }
625
625
 
626
626
  #isInExpandedRow(element: Node|null|undefined): boolean {
@@ -50,7 +50,7 @@ import objectPropertiesSectionStyles from './objectPropertiesSection.css.js';
50
50
  import objectValueStyles from './objectValue.css.js';
51
51
  import {RemoteObjectPreviewFormatter, renderNodeTitle} from './RemoteObjectPreviewFormatter.js';
52
52
 
53
- const {widgetConfig} = UI.Widget;
53
+ const {widget} = UI.Widget;
54
54
  const {ref, repeat, ifDefined, classMap} = Directives;
55
55
  const UIStrings = {
56
56
  /**
@@ -795,16 +795,13 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
795
795
  const text = JSON.stringify(description);
796
796
  const tooLong = description.length > maxRenderableStringLength;
797
797
  return html`<span class="value object-value-string" title=${ifDefined(tooLong ? undefined : description)}>${
798
- tooLong ? html`<devtools-widget .widgetConfig=${
799
- widgetConfig(ExpandableTextPropertyValue, {text})}></devtools-widget>` :
800
- text}</span>`;
798
+ tooLong ? widget(ExpandableTextPropertyValue, {text}) : text}</span>`;
801
799
  }
802
800
  if (type === 'object' && subtype === 'trustedtype') {
803
801
  const text = `${className} '${description}'`;
804
802
  const tooLong = text.length > maxRenderableStringLength;
805
803
  return html`<span class="value object-value-trustedtype" title=${ifDefined(tooLong ? undefined : text)}>${
806
- tooLong ? html`<devtools-widget .widgetConfig=${
807
- widgetConfig(ExpandableTextPropertyValue, {text})}></devtools-widget>` :
804
+ tooLong ? widget(ExpandableTextPropertyValue, {text}) :
808
805
  html`${className} <span class=object-value-string title=${description}>${
809
806
  JSON.stringify(description)}</span>`}</span>`;
810
807
  }
@@ -822,8 +819,11 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
822
819
  >${renderNodeTitle(description)}</span>`;
823
820
  }
824
821
  if (description.length > maxRenderableStringLength) {
825
- return html`<span class="value object-value-${subtype || type}" title=${description}><devtools-widget
826
- .widgetConfig=${widgetConfig(ExpandableTextPropertyValue, {text: description})}></devtools-widget></span>`;
822
+ // clang-format off
823
+ return html`<span class="value object-value-${subtype || type}" title=${description}>
824
+ ${widget(ExpandableTextPropertyValue, {text: description})}
825
+ </span>`;
826
+ // clang-format on
827
827
  }
828
828
  const hasPreview = value.preview && showPreview;
829
829
  return html`<span class="value object-value-${subtype || type}" title=${description}>${
@@ -13,7 +13,6 @@ let veDebuggingEnabled = false;
13
13
  let debugOverlay: HTMLElement|null = null;
14
14
  let debugPopover: HTMLElement|null = null;
15
15
  const highlightedElements: HTMLElement[] = [];
16
- const nonDomDebugElements = new WeakMap<Loggable, HTMLElement>();
17
16
  let onInspect: ((query: string) => void)|undefined = undefined;
18
17
 
19
18
  function ensureDebugOverlay(): void {
@@ -96,8 +95,6 @@ export function processForDebugging(loggable: Loggable): void {
96
95
  }
97
96
  if (loggable instanceof HTMLElement) {
98
97
  processElementForDebugging(loggable, loggingState);
99
- } else {
100
- processNonDomLoggableForDebugging(loggable, loggingState);
101
98
  }
102
99
  }
103
100
 
@@ -409,35 +406,6 @@ function processImpressionsForAdHocAnalysisDebugLog(states: LoggingState[]): voi
409
406
  }
410
407
  }
411
408
 
412
- function processNonDomLoggableForDebugging(loggable: Loggable, loggingState: LoggingState): void {
413
- let debugElement = nonDomDebugElements.get(loggable);
414
- if (!debugElement) {
415
- debugElement = document.createElement('div');
416
- debugElement.classList.add('ve-debug');
417
- debugElement.style.background = 'black';
418
- debugElement.style.color = 'white';
419
- debugElement.style.zIndex = '100000';
420
- debugElement.textContent = debugString(loggingState.config);
421
- nonDomDebugElements.set(loggable, debugElement);
422
- setTimeout(() => {
423
- if (!loggingState.size?.width || !loggingState.size?.height) {
424
- debugElement?.parentElement?.removeChild(debugElement);
425
- nonDomDebugElements.delete(loggable);
426
- }
427
- }, 10000);
428
- }
429
- const parentDebugElement =
430
- parent instanceof HTMLElement ? parent : nonDomDebugElements.get(parent as Loggable) || debugPopover;
431
- assertNotNullOrUndefined(parentDebugElement);
432
- if (!parentDebugElement.classList.contains('ve-debug')) {
433
- debugElement.style.position = 'absolute';
434
- parentDebugElement.insertBefore(debugElement, parentDebugElement.firstChild);
435
- } else {
436
- debugElement.style.marginLeft = '10px';
437
- parentDebugElement.appendChild(debugElement);
438
- }
439
- }
440
-
441
409
  function elementKey(config: LoggingConfig): string {
442
410
  return `${VisualElements[config.ve]}${config.context ? `: ${config.context}` : ''}`;
443
411
  }
@@ -4050,6 +4050,7 @@ export const knownContextValues = new Set([
4050
4050
  'timeline.insight-ask-ai.viewport',
4051
4051
  'timeline.insights-tab',
4052
4052
  'timeline.insights.cache',
4053
+ 'timeline.insights.character-set',
4053
4054
  'timeline.insights.cls-culprits',
4054
4055
  'timeline.insights.dismiss-field-mismatch',
4055
4056
  'timeline.insights.document-latency',
@@ -4124,6 +4125,7 @@ export const knownContextValues = new Set([
4124
4125
  'timeline.thread.worker',
4125
4126
  'timeline.timings',
4126
4127
  'timeline.toggle-insight.cache',
4128
+ 'timeline.toggle-insight.character-set',
4127
4129
  'timeline.toggle-insight.cls-culprits',
4128
4130
  'timeline.toggle-insight.document-latency',
4129
4131
  'timeline.toggle-insight.dom-size',
package/package.json CHANGED
@@ -105,5 +105,5 @@
105
105
  "flat-cache": "6.1.12"
106
106
  }
107
107
  },
108
- "version": "1.0.1597448"
108
+ "version": "1.0.1598808"
109
109
  }