chrome-devtools-frontend 1.0.1593959 → 1.0.1595090

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 (73) hide show
  1. package/docs/contributing/settings-experiments-features.md +25 -5
  2. package/front_end/core/common/README.md +126 -0
  3. package/front_end/core/sdk/CSSModel.ts +22 -0
  4. package/front_end/core/sdk/CSSNavigation.ts +33 -0
  5. package/front_end/core/sdk/CSSRule.ts +12 -2
  6. package/front_end/core/sdk/sdk-meta.ts +22 -18
  7. package/front_end/core/sdk/sdk.ts +2 -0
  8. package/front_end/design_system_tokens.css +538 -259
  9. package/front_end/entrypoints/main/main-meta.ts +2 -2
  10. package/front_end/generated/SupportedCSSProperties.js +12 -0
  11. package/front_end/models/issues_manager/Issue.ts +1 -0
  12. package/front_end/models/issues_manager/IssueAggregator.ts +9 -0
  13. package/front_end/models/issues_manager/IssuesManager.ts +5 -0
  14. package/front_end/models/issues_manager/SelectivePermissionsInterventionIssue.ts +65 -0
  15. package/front_end/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
  16. package/front_end/models/issues_manager/issues_manager.ts +2 -0
  17. package/front_end/models/javascript_metadata/NativeFunctions.js +44 -9
  18. package/front_end/models/persistence/persistence-meta.ts +4 -4
  19. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +12 -1
  20. package/front_end/panels/ai_assistance/components/ChatInput.ts +37 -30
  21. package/front_end/panels/ai_assistance/components/ChatView.ts +4 -2
  22. package/front_end/panels/ai_assistance/components/chatInput.css +26 -1
  23. package/front_end/panels/application/StorageView.ts +8 -2
  24. package/front_end/panels/application/preloading/PreloadingView.ts +105 -7
  25. package/front_end/panels/application/preloading/preloadingView.css +4 -0
  26. package/front_end/panels/console/ConsoleView.ts +2 -2
  27. package/front_end/panels/console/console-meta.ts +18 -14
  28. package/front_end/panels/elements/ComputedStyleWidget.ts +12 -7
  29. package/front_end/panels/elements/ElementsPanel.ts +1 -1
  30. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -6
  31. package/front_end/panels/elements/ImagePreviewPopover.ts +6 -9
  32. package/front_end/panels/elements/StylePropertiesSection.ts +30 -0
  33. package/front_end/panels/elements/StylesSidebarPane.ts +13 -7
  34. package/front_end/panels/elements/elements-meta.ts +12 -8
  35. package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +120 -0
  36. package/front_end/panels/issues/IssueView.ts +2 -0
  37. package/front_end/panels/issues/IssuesPane.ts +6 -0
  38. package/front_end/panels/issues/issues.ts +2 -0
  39. package/front_end/panels/lighthouse/LighthouseStartView.ts +99 -38
  40. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +53 -14
  41. package/front_end/panels/lighthouse/RadioSetting.ts +33 -19
  42. package/front_end/panels/lighthouse/lighthouse.ts +2 -0
  43. package/front_end/panels/media/PlayerMessagesView.ts +62 -49
  44. package/front_end/panels/media/media.ts +2 -0
  45. package/front_end/panels/media/playerMessagesView.css +1 -1
  46. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +49 -24
  47. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -2
  48. package/front_end/panels/sources/sources-meta.ts +8 -4
  49. package/front_end/panels/utils/utils.ts +11 -5
  50. package/front_end/third_party/chromium/README.chromium +1 -1
  51. package/front_end/third_party/lit/lib/async-directive.d.ts +465 -0
  52. package/front_end/third_party/lit/lib/async-directive.js +23 -0
  53. package/front_end/third_party/lit/lib/async-directive.js.map +1 -0
  54. package/front_end/third_party/lit/lib/decorators.d.ts +7 -1
  55. package/front_end/third_party/lit/lib/decorators.js +2 -2
  56. package/front_end/third_party/lit/lib/decorators.js.map +1 -1
  57. package/front_end/third_party/lit/lib/directive.js.map +1 -1
  58. package/front_end/third_party/lit/lib/directives.d.ts +27 -8
  59. package/front_end/third_party/lit/lib/directives.js +8 -8
  60. package/front_end/third_party/lit/lib/directives.js.map +1 -1
  61. package/front_end/third_party/lit/lib/lit.d.ts +15 -5
  62. package/front_end/third_party/lit/lib/lit.js +4 -4
  63. package/front_end/third_party/lit/lib/lit.js.map +1 -1
  64. package/front_end/third_party/lit/lib/static-html.js +2 -2
  65. package/front_end/third_party/lit/lib/static-html.js.map +1 -1
  66. package/front_end/third_party/lit/lit.ts +2 -1
  67. package/front_end/third_party/lit/rollup.config.mjs +1 -1
  68. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +5 -0
  69. package/front_end/ui/legacy/components/utils/ImagePreview.ts +27 -23
  70. package/front_end/ui/lit/lit.ts +1 -0
  71. package/front_end/ui/visual_logging/Debugging.ts +1 -1
  72. package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
  73. package/package.json +1 -1
@@ -183,33 +183,37 @@ export class ImagePreview {
183
183
  });
184
184
  }
185
185
 
186
- static async loadDimensionsForNode(node: SDK.DOMModel.DOMNode): Promise<PrecomputedFeatures|undefined> {
187
- if (!node.nodeName() || node.nodeName().toLowerCase() !== 'img') {
188
- return;
189
- }
190
-
191
- const object = await node.resolveToObject('');
186
+ static defaultAltTextForImageURL(url: Platform.DevToolsPath.UrlString): string {
187
+ const parsedImageURL = new Common.ParsedURL.ParsedURL(url);
188
+ const imageSourceText = parsedImageURL.isValid ? parsedImageURL.displayName : i18nString(UIStrings.unknownSource);
189
+ return i18nString(UIStrings.imageFromS, {PH1: imageSourceText});
190
+ }
191
+ }
192
192
 
193
- if (!object) {
194
- return;
195
- }
193
+ export async function loadPrecomputedFeatures(node?: SDK.DOMModel.DOMNode|null):
194
+ Promise<PrecomputedFeatures|undefined> {
195
+ if (!node) {
196
+ return undefined;
197
+ }
198
+ if (!node.nodeName() || node.nodeName().toLowerCase() !== 'img') {
199
+ return undefined;
200
+ }
196
201
 
197
- const featuresObject = await object.callFunctionJSON(features, undefined);
198
- object.release();
199
- return featuresObject ?? undefined;
202
+ const object = await node.resolveToObject('');
200
203
 
201
- function features(this: HTMLImageElement): PrecomputedFeatures {
202
- return {
203
- renderedWidth: this.width,
204
- renderedHeight: this.height,
205
- currentSrc: this.currentSrc as Platform.DevToolsPath.UrlString,
206
- };
207
- }
204
+ if (!object) {
205
+ return undefined;
208
206
  }
209
207
 
210
- static defaultAltTextForImageURL(url: Platform.DevToolsPath.UrlString): string {
211
- const parsedImageURL = new Common.ParsedURL.ParsedURL(url);
212
- const imageSourceText = parsedImageURL.isValid ? parsedImageURL.displayName : i18nString(UIStrings.unknownSource);
213
- return i18nString(UIStrings.imageFromS, {PH1: imageSourceText});
208
+ const featuresObject = await object.callFunctionJSON(features, undefined);
209
+ object.release();
210
+ return featuresObject ?? undefined;
211
+
212
+ function features(this: HTMLImageElement): PrecomputedFeatures {
213
+ return {
214
+ renderedWidth: this.width,
215
+ renderedHeight: this.height,
216
+ currentSrc: this.currentSrc as Platform.DevToolsPath.UrlString,
217
+ };
214
218
  }
215
219
  }
@@ -6,6 +6,7 @@ import type * as Lit from '../../third_party/lit/lit.js';
6
6
 
7
7
  export type {DirectiveResult} from '../../third_party/lit/lib/directive.js';
8
8
  export {
9
+ AsyncDirective,
9
10
  Decorators,
10
11
  Directive,
11
12
  Directives,
@@ -241,7 +241,7 @@ export function processEventForIntuitiveDebugging(
241
241
 
242
242
  export function processEventForTestDebugging(
243
243
  event: EventType, state: LoggingState|null, _extraInfo?: EventAttributes): void {
244
- if (event !== 'SettingAccess' && event !== 'FunctionCall') {
244
+ if (event !== 'SettingAccess' && event !== 'FunctionCall' && event !== 'Resize') {
245
245
  lastImpressionLogEntry = null;
246
246
  }
247
247
  maybeLogDebugEvent({interaction: event, veid: state?.veid || 0});
@@ -2937,6 +2937,7 @@ export const knownContextValues = new Set([
2937
2937
  'patch-widget.save-all',
2938
2938
  'patch-widget.workspace',
2939
2939
  'path',
2940
+ 'path-length',
2940
2941
  'pathname',
2941
2942
  'pattern',
2942
2943
  'pause',
@@ -3025,6 +3026,7 @@ export const knownContextValues = new Set([
3025
3026
  'preloading-speculations',
3026
3027
  'preloading-status-panel',
3027
3028
  'preloading-status-panel-pretty-print',
3029
+ 'preloading.clear',
3028
3030
  'presentation',
3029
3031
  'preserve-console-log',
3030
3032
  'preserve-console-log-true',
@@ -3448,6 +3450,7 @@ export const knownContextValues = new Set([
3448
3450
  'selected-context-filter-enabled',
3449
3451
  'selected-context-filter-enabled-true',
3450
3452
  'selected-profile-type',
3453
+ 'selective-permissions-intervention-details',
3451
3454
  'selector',
3452
3455
  'selector-aria',
3453
3456
  'selector-attribute',
@@ -3842,6 +3845,7 @@ export const knownContextValues = new Set([
3842
3845
  'test-combo-box-setting',
3843
3846
  'test-device',
3844
3847
  'test-font',
3848
+ 'test-radio-setting',
3845
3849
  'test-setting',
3846
3850
  'test-setting-true',
3847
3851
  'test-sidebar',
package/package.json CHANGED
@@ -105,5 +105,5 @@
105
105
  "flat-cache": "6.1.12"
106
106
  }
107
107
  },
108
- "version": "1.0.1593959"
108
+ "version": "1.0.1595090"
109
109
  }