chrome-devtools-frontend 1.0.1030070 → 1.0.1031400

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 (81) hide show
  1. package/config/gni/devtools_grd_files.gni +3 -0
  2. package/config/gni/devtools_image_files.gni +2 -0
  3. package/docs/workflows.md +1 -1
  4. package/front_end/Images/src/file-sync_icon.svg +62 -0
  5. package/front_end/Images/src/file_icon.svg +52 -0
  6. package/front_end/Tests.js +0 -28
  7. package/front_end/core/host/UserMetrics.ts +2 -1
  8. package/front_end/core/i18n/locales/en-US.json +18 -9
  9. package/front_end/core/i18n/locales/en-XL.json +18 -9
  10. package/front_end/core/platform/string-utilities.ts +2 -5
  11. package/front_end/core/root/Runtime.ts +1 -0
  12. package/front_end/core/sdk/CSSStyleSheetHeader.ts +0 -4
  13. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +0 -4
  14. package/front_end/core/sdk/NetworkRequest.ts +0 -4
  15. package/front_end/core/sdk/Resource.ts +0 -5
  16. package/front_end/core/sdk/Script.ts +71 -76
  17. package/front_end/core/sdk/Target.ts +4 -0
  18. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -1
  19. package/front_end/entrypoints/main/MainImpl.ts +4 -0
  20. package/front_end/generated/InspectorBackendCommands.js +10 -8
  21. package/front_end/generated/protocol-mapping.d.ts +16 -2
  22. package/front_end/generated/protocol-proxy-api.d.ts +11 -1
  23. package/front_end/generated/protocol.ts +75 -1
  24. package/front_end/models/bindings/CompilerScriptMapping.ts +6 -3
  25. package/front_end/models/bindings/ContentProviderBasedProject.ts +2 -3
  26. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -4
  27. package/front_end/models/bindings/IgnoreListManager.ts +10 -8
  28. package/front_end/models/bindings/ResourceMapping.ts +0 -4
  29. package/front_end/models/bindings/StylesSourceMapping.ts +0 -5
  30. package/front_end/models/extensions/ExtensionServer.ts +2 -3
  31. package/front_end/models/issues_manager/AttributionReportingIssue.ts +8 -0
  32. package/front_end/models/issues_manager/DeprecationIssue.ts +5 -1
  33. package/front_end/models/issues_manager/descriptions/arTooManyConcurrentRequests.md +5 -0
  34. package/front_end/models/javascript_metadata/NativeFunctions.js +6 -2
  35. package/front_end/models/persistence/NetworkPersistenceManager.ts +4 -6
  36. package/front_end/models/persistence/PersistenceActions.ts +5 -4
  37. package/front_end/models/text_utils/CodeMirrorUtils.ts +17 -4
  38. package/front_end/models/text_utils/ContentProvider.ts +0 -1
  39. package/front_end/models/text_utils/StaticContentProvider.ts +0 -4
  40. package/front_end/models/workspace/UISourceCode.ts +10 -5
  41. package/front_end/panels/application/components/StackTrace.ts +2 -2
  42. package/front_end/panels/elements/CSSRuleValidator.ts +382 -63
  43. package/front_end/panels/elements/CSSRuleValidatorHelper.ts +34 -0
  44. package/front_end/panels/elements/ElementsTreeOutline.ts +23 -7
  45. package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
  46. package/front_end/panels/elements/TopLayerContainer.ts +17 -28
  47. package/front_end/panels/elements/components/CSSHintDetailsView.ts +23 -20
  48. package/front_end/panels/elements/components/cssHintDetailsView.css +8 -2
  49. package/front_end/panels/elements/stylesSectionTree.css +1 -1
  50. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +12 -0
  51. package/front_end/panels/network/components/RequestHeadersView.css +41 -8
  52. package/front_end/panels/network/components/RequestHeadersView.ts +102 -12
  53. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +1 -0
  54. package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +7 -0
  55. package/front_end/panels/sources/NavigatorView.ts +22 -0
  56. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  57. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  58. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  59. package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -2
  60. package/front_end/third_party/codemirror.next/chunk/java.js +1 -2
  61. package/front_end/third_party/codemirror.next/chunk/json.js +1 -2
  62. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -2
  63. package/front_end/third_party/codemirror.next/chunk/php.js +1 -2
  64. package/front_end/third_party/codemirror.next/chunk/python.js +1 -2
  65. package/front_end/third_party/codemirror.next/chunk/wast.js +1 -2
  66. package/front_end/third_party/codemirror.next/chunk/xml.js +1 -2
  67. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1247 -116
  68. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -2
  69. package/front_end/ui/components/data_grid/DataGrid.ts +15 -10
  70. package/front_end/ui/components/data_grid/DataGridController.ts +7 -0
  71. package/front_end/ui/components/docs/building-ui-documentation/StylingComponents.md +64 -0
  72. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +2 -3
  73. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +97 -17
  74. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -1
  75. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewerUtils.ts +4 -0
  76. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +9 -7
  77. package/front_end/ui/legacy/components/source_frame/ImageView.ts +10 -11
  78. package/front_end/ui/legacy/components/source_frame/PreviewFactory.ts +1 -1
  79. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +49 -0
  80. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +18 -17
  81. package/package.json +6 -5
@@ -211,6 +211,16 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
211
211
  this.navigatorGroupByAuthoredExperiment = Root.Runtime.ExperimentName.AUTHORED_DEPLOYED_GROUPING;
212
212
  }
213
213
 
214
+ Common.Settings.Settings.instance()
215
+ .moduleSetting('skipStackFramesPattern')
216
+ .addChangeListener(this.ignoreListChanged.bind(this));
217
+ Common.Settings.Settings.instance()
218
+ .moduleSetting('skipContentScripts')
219
+ .addChangeListener(this.ignoreListChanged.bind(this));
220
+ Common.Settings.Settings.instance()
221
+ .moduleSetting('automaticallyIgnoreListKnownThirdPartyScripts')
222
+ .addChangeListener(this.ignoreListChanged.bind(this));
223
+
214
224
  this.initGrouping();
215
225
 
216
226
  Persistence.Persistence.PersistenceImpl.instance().addEventListener(
@@ -443,6 +453,12 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
443
453
  }
444
454
 
445
455
  private addUISourceCode(uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
456
+ if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.JUST_MY_CODE) &&
457
+ Bindings.IgnoreListManager.IgnoreListManager.instance().isUserOrSourceMapIgnoreListedUISourceCode(
458
+ uiSourceCode)) {
459
+ return;
460
+ }
461
+
446
462
  if (!this.acceptsUISourceCode(uiSourceCode)) {
447
463
  return;
448
464
  }
@@ -1033,6 +1049,12 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
1033
1049
  this.workspaceInternal.uiSourceCodes().forEach(this.addUISourceCode.bind(this));
1034
1050
  }
1035
1051
 
1052
+ private ignoreListChanged(): void {
1053
+ if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.JUST_MY_CODE)) {
1054
+ this.groupingChanged();
1055
+ }
1056
+ }
1057
+
1036
1058
  private initGrouping(): void {
1037
1059
  this.groupByFrame = true;
1038
1060
  this.groupByDomain = this.navigatorGroupByFolderSetting.get();
@@ -319,14 +319,14 @@ export class OpenLinearMemoryInspector extends UI.Widget.VBox implements UI.Cont
319
319
  LinearMemoryInspector.LinearMemoryInspectorController.isMemoryObjectProperty(target.property.value)) {
320
320
  contextMenu.debugSection().appendItem(
321
321
  i18nString(UIStrings.revealInMemoryInspectorPanel),
322
- this.openMemoryInspector.bind(this, target.property.value));
322
+ this.openMemoryInspector.bind(this, target.property.name, target.property.value));
323
323
  }
324
324
  }
325
325
  }
326
326
 
327
- private async openMemoryInspector(obj: SDK.RemoteObject.RemoteObject): Promise<void> {
327
+ private async openMemoryInspector(name: string, obj: SDK.RemoteObject.RemoteObject): Promise<void> {
328
328
  const controller = LinearMemoryInspector.LinearMemoryInspectorController.LinearMemoryInspectorController.instance();
329
329
  Host.userMetrics.linearMemoryInspectorRevealedFrom(Host.UserMetrics.LinearMemoryInspectorRevealedFrom.ContextMenu);
330
- void controller.openInspectorView(obj);
330
+ void controller.openInspectorView(obj, undefined /* address */, name);
331
331
  }
332
332
  }
@@ -78,7 +78,7 @@ export async function shell() {
78
78
  return StreamLanguage.define((await import('@codemirror/legacy-modes/mode/shell')).shell);
79
79
  }
80
80
  export async function cssStreamParser() {
81
- return (await import('@codemirror/legacy-modes/mode/css') as any).sCSS;
81
+ return (await import('@codemirror/legacy-modes/mode/css') as any).css;
82
82
  }
83
83
  export function wast() {
84
84
  return import('@codemirror/lang-wast');