chrome-devtools-frontend 1.0.970391 → 1.0.972361

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 (109) hide show
  1. package/config/gni/devtools_grd_files.gni +11 -7
  2. package/config/gni/devtools_image_files.gni +1 -0
  3. package/front_end/Images/src/ic_changes.svg +5 -0
  4. package/front_end/core/common/ParsedURL.ts +33 -4
  5. package/front_end/core/host/UserMetrics.ts +4 -1
  6. package/front_end/core/i18n/locales/en-US.json +21 -3
  7. package/front_end/core/i18n/locales/en-XL.json +21 -3
  8. package/front_end/core/platform/UserVisibleError.ts +28 -0
  9. package/front_end/core/platform/platform.ts +2 -0
  10. package/front_end/core/sdk/CSSModel.ts +21 -0
  11. package/front_end/core/sdk/CSSStyleSheetHeader.ts +10 -10
  12. package/front_end/core/sdk/ChildTargetManager.ts +0 -1
  13. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +6 -4
  14. package/front_end/core/sdk/DOMDebuggerModel.ts +4 -3
  15. package/front_end/core/sdk/DebuggerModel.ts +21 -16
  16. package/front_end/core/sdk/NetworkManager.ts +17 -3
  17. package/front_end/core/sdk/NetworkRequest.ts +16 -5
  18. package/front_end/core/sdk/Resource.ts +10 -10
  19. package/front_end/core/sdk/ResourceTreeModel.ts +18 -13
  20. package/front_end/core/sdk/Script.ts +10 -10
  21. package/front_end/core/sdk/SourceMap.ts +3 -1
  22. package/front_end/entrypoints/lighthouse_worker/LighthouseService.ts +14 -7
  23. package/front_end/entrypoints/main/MainImpl.ts +8 -0
  24. package/front_end/generated/InspectorBackendCommands.js +14 -8
  25. package/front_end/generated/SupportedCSSProperties.js +2 -0
  26. package/front_end/generated/protocol-mapping.d.ts +5 -0
  27. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  28. package/front_end/generated/protocol.ts +20 -12
  29. package/front_end/models/bindings/BreakpointManager.ts +7 -5
  30. package/front_end/models/bindings/CSSWorkspaceBinding.ts +10 -3
  31. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -1
  32. package/front_end/models/bindings/ResourceMapping.ts +2 -1
  33. package/front_end/models/bindings/ResourceScriptMapping.ts +2 -1
  34. package/front_end/models/bindings/StylesSourceMapping.ts +2 -1
  35. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +12 -12
  36. package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataHttpNotFound.md → federatedAuthRequestClientMetadataHttpNotFound.md} +0 -0
  37. package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataInvalidResponse.md → federatedAuthRequestClientMetadataInvalidResponse.md} +0 -0
  38. package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataNoResponse.md → federatedAuthRequestClientMetadataNoResponse.md} +0 -0
  39. package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  40. package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  41. package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  42. package/front_end/models/persistence/Automapping.ts +3 -33
  43. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +12 -10
  44. package/front_end/models/persistence/IsolatedFileSystem.ts +26 -22
  45. package/front_end/models/persistence/NetworkPersistenceManager.ts +8 -4
  46. package/front_end/models/persistence/PersistenceActions.ts +1 -4
  47. package/front_end/models/persistence/PlatformFileSystem.ts +6 -5
  48. package/front_end/{panels/sources/SourceMapNamesResolver.ts → models/source_map_scopes/NamesResolver.ts} +5 -5
  49. package/front_end/models/source_map_scopes/source_map_scopes.ts +7 -0
  50. package/front_end/models/text_utils/ContentProvider.ts +2 -1
  51. package/front_end/models/text_utils/StaticContentProvider.ts +5 -4
  52. package/front_end/models/workspace/UISourceCode.ts +18 -21
  53. package/front_end/models/workspace/WorkspaceImpl.ts +3 -1
  54. package/front_end/models/workspace_diff/WorkspaceDiff.ts +20 -8
  55. package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
  56. package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +0 -1
  57. package/front_end/panels/changes/ChangesView.ts +4 -4
  58. package/front_end/panels/console/ConsolePrompt.ts +25 -2
  59. package/front_end/panels/console/ConsoleViewMessage.ts +41 -8
  60. package/front_end/panels/coverage/CoverageModel.ts +1 -1
  61. package/front_end/panels/elements/ElementsPanel.ts +25 -11
  62. package/front_end/panels/elements/ElementsTreeElement.ts +0 -6
  63. package/front_end/panels/elements/StylesSidebarPane.ts +236 -51
  64. package/front_end/panels/elements/elementsTreeOutline.css +0 -1
  65. package/front_end/panels/issues/AffectedResourcesView.ts +1 -1
  66. package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
  67. package/front_end/panels/lighthouse/LighthouseController.ts +30 -0
  68. package/front_end/panels/lighthouse/LighthousePanel.ts +7 -1
  69. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +6 -1
  70. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +0 -5
  71. package/front_end/panels/lighthouse/LighthouseStartView.ts +2 -2
  72. package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +39 -0
  73. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  74. package/front_end/panels/profiler/CPUProfileView.ts +1 -1
  75. package/front_end/panels/profiler/HeapProfileView.ts +0 -2
  76. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +0 -1
  77. package/front_end/panels/profiler/HeapSnapshotView.ts +2 -3
  78. package/front_end/panels/sensors/sensors.css +0 -1
  79. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +5 -5
  80. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  81. package/front_end/panels/sources/DebuggerPlugin.ts +5 -4
  82. package/front_end/panels/sources/NavigatorView.ts +13 -7
  83. package/front_end/panels/sources/ScopeChainSidebarPane.ts +6 -3
  84. package/front_end/panels/sources/SourcesNavigator.ts +7 -1
  85. package/front_end/panels/sources/TabbedEditorContainer.ts +9 -0
  86. package/front_end/panels/sources/sources-legacy.ts +5 -16
  87. package/front_end/panels/sources/sources.ts +0 -2
  88. package/front_end/panels/sources/sourcesView.css +0 -4
  89. package/front_end/panels/timeline/TimelineUIUtils.ts +4 -47
  90. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1047 -1158
  91. package/front_end/third_party/lighthouse/locales/en-US.json +7 -1
  92. package/front_end/third_party/lighthouse/locales/en-XL.json +7 -1
  93. package/front_end/third_party/lighthouse/report/bundle.d.ts +0 -3
  94. package/front_end/third_party/lighthouse/report/bundle.js +38 -24
  95. package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
  96. package/front_end/ui/legacy/ViewManager.ts +2 -1
  97. package/front_end/ui/legacy/closeButton.css +0 -1
  98. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
  99. package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
  100. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +2 -3
  101. package/front_end/ui/legacy/components/utils/Linkifier.ts +20 -59
  102. package/front_end/ui/legacy/tabbedPane.css +0 -2
  103. package/front_end/ui/legacy/toolbar.css +28 -3
  104. package/package.json +1 -1
  105. package/scripts/hosted_mode/server.js +13 -0
  106. package/scripts/npm_test.js +1 -1
  107. package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownHttpNotFound.md +0 -1
  108. package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownInvalidResponse.md +0 -1
  109. package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownNoResponse.md +0 -1
@@ -28,12 +28,12 @@ const UIStrings = {
28
28
  const str_ = i18n.i18n.registerUIStrings('panels/snippets/ScriptSnippetFileSystem.ts', UIStrings);
29
29
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
30
30
 
31
- function escapeSnippetName(name: string): string {
32
- return escape(name);
31
+ function escapeSnippetName(name: string): Platform.DevToolsPath.EncodedPathString {
32
+ return Common.ParsedURL.ParsedURL.rawPathToEncodedPathString(name as Platform.DevToolsPath.RawPathString);
33
33
  }
34
34
 
35
35
  function unescapeSnippetName(name: string): string {
36
- return unescape(name);
36
+ return Common.ParsedURL.ParsedURL.encodedPathToRawPathString(name as Platform.DevToolsPath.EncodedPathString);
37
37
  }
38
38
 
39
39
  export class SnippetFileSystem extends Persistence.PlatformFileSystem.PlatformFileSystem {
@@ -47,7 +47,7 @@ export class SnippetFileSystem extends Persistence.PlatformFileSystem.PlatformFi
47
47
  this.snippetsSetting = Common.Settings.Settings.instance().createSetting('scriptSnippets', []);
48
48
  }
49
49
 
50
- initialFilePaths(): string[] {
50
+ initialFilePaths(): Platform.DevToolsPath.EncodedPathString[] {
51
51
  const savedSnippets: Snippet[] = this.snippetsSetting.get();
52
52
  return savedSnippets.map(snippet => escapeSnippetName(snippet.name));
53
53
  }
@@ -126,7 +126,7 @@ export class SnippetFileSystem extends Persistence.PlatformFileSystem.PlatformFi
126
126
  return Common.ResourceType.resourceTypes.Script;
127
127
  }
128
128
 
129
- tooltipForURL(url: string): string {
129
+ tooltipForURL(url: Platform.DevToolsPath.UrlString): string {
130
130
  return i18nString(UIStrings.linkedTo, {PH1: unescapeSnippetName(url.substring(this.path().length))});
131
131
  }
132
132
 
@@ -77,7 +77,7 @@ export class SnippetsQuickOpen extends QuickOpen.FilteredListWidget.Provider {
77
77
  }
78
78
 
79
79
  renderItem(itemIndex: number, query: string, titleElement: Element, _subtitleElement: Element): void {
80
- titleElement.textContent = unescape(this.snippets[itemIndex].name());
80
+ titleElement.textContent = this.snippets[itemIndex].name();
81
81
  titleElement.classList.add('monospace');
82
82
  QuickOpen.FilteredListWidget.FilteredListWidget.highlightRanges(titleElement, query, true);
83
83
  }
@@ -36,6 +36,7 @@ import * as Root from '../../core/root/root.js';
36
36
  import * as SDK from '../../core/sdk/sdk.js';
37
37
  import * as Protocol from '../../generated/protocol.js';
38
38
  import * as Bindings from '../../models/bindings/bindings.js';
39
+ import * as SourceMapScopes from '../../models/source_map_scopes/source_map_scopes.js';
39
40
  import * as TextUtils from '../../models/text_utils/text_utils.js';
40
41
  import * as Workspace from '../../models/workspace/workspace.js';
41
42
  import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
@@ -48,7 +49,6 @@ import {AddSourceMapURLDialog} from './AddSourceMapURLDialog.js';
48
49
  import {BreakpointEditDialog, LogpointPrefix} from './BreakpointEditDialog.js';
49
50
  import {Plugin} from './Plugin.js';
50
51
  import {ScriptFormatterEditorAction} from './ScriptFormatterEditorAction.js';
51
- import {resolveExpression, resolveScopeInObject} from './SourceMapNamesResolver.js';
52
52
  import {SourcesPanel} from './SourcesPanel.js';
53
53
  import {getRegisteredEditorActions} from './SourcesView.js';
54
54
 
@@ -476,7 +476,7 @@ export class DebuggerPlugin extends Plugin {
476
476
  if (!url) {
477
477
  return;
478
478
  }
479
- scriptFile.addSourceMapURL(url);
479
+ scriptFile.addSourceMapURL(url as Platform.DevToolsPath.UrlString);
480
480
  }
481
481
 
482
482
  if (this.uiSourceCode.project().type() === Workspace.Workspace.projectTypes.Network &&
@@ -650,7 +650,7 @@ export class DebuggerPlugin extends Plugin {
650
650
  }|{
651
651
  error: string,
652
652
  }|null> {
653
- const resolvedText = await resolveExpression(
653
+ const resolvedText = await SourceMapScopes.NamesResolver.resolveExpression(
654
654
  selectedCallFrame, evaluationText, uiSourceCode, highlightLine.number - 1,
655
655
  highlightRange.from - highlightLine.from, highlightRange.to - highlightLine.from);
656
656
  return await selectedCallFrame.evaluate({
@@ -887,7 +887,8 @@ export class DebuggerPlugin extends Plugin {
887
887
  return null;
888
888
  }
889
889
 
890
- const {properties} = await resolveScopeInObject(localScope).getAllProperties(false, false);
890
+ const {properties} =
891
+ await SourceMapScopes.NamesResolver.resolveScopeInObject(localScope).getAllProperties(false, false);
891
892
  if (!properties || !properties.length || properties.length > 500) {
892
893
  return null;
893
894
  }
@@ -400,7 +400,9 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
400
400
 
401
401
  const removedFrame = (event.data.frame as SDK.ResourceTreeModel.ResourceTreeFrame | null);
402
402
  const node = Array.from(this.uiSourceCodeNodes.get(uiSourceCode)).find(node => node.frame() === removedFrame);
403
- this.removeUISourceCodeNode((node as NavigatorUISourceCodeTreeNode));
403
+ if (node) {
404
+ this.removeUISourceCodeNode(node);
405
+ }
404
406
  }
405
407
 
406
408
  private acceptsUISourceCode(uiSourceCode: Workspace.UISourceCode.UISourceCode): boolean {
@@ -428,9 +430,12 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
428
430
  const isFromSourceMap = uiSourceCode.contentType().isFromSourceMap();
429
431
  let path;
430
432
  if (uiSourceCode.project().type() === Workspace.Workspace.projectTypes.FileSystem) {
431
- path = Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.relativePath(uiSourceCode).slice(0, -1);
433
+ path =
434
+ Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.relativePath(uiSourceCode).slice(0, -1) as
435
+ Platform.DevToolsPath.EncodedPathString[];
432
436
  } else {
433
- path = Common.ParsedURL.ParsedURL.extractPath(uiSourceCode.url()).split('/').slice(1, -1);
437
+ path = Common.ParsedURL.ParsedURL.extractPath(uiSourceCode.url()).split('/').slice(1, -1) as
438
+ Platform.DevToolsPath.EncodedPathString[];
434
439
  }
435
440
 
436
441
  const project = uiSourceCode.project();
@@ -503,7 +508,8 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
503
508
  const commonPrefix = reversedIndex.longestPrefix(reversedPath, false /* fullWordOnly */);
504
509
  reversedIndex.add(reversedPath);
505
510
  const prefixPath = reversedPath.substring(0, commonPrefix.length + 1);
506
- const path = encoder.decode(Platform.StringUtilities.reverse(prefixPath));
511
+ const path = Common.ParsedURL.ParsedURL.encodedPathToRawPathString(
512
+ encoder.decode(Platform.StringUtilities.reverse(prefixPath)) as Platform.DevToolsPath.EncodedPathString);
507
513
 
508
514
  const fileSystemNode = this.rootNode.child(project.id());
509
515
  if (fileSystemNode) {
@@ -539,7 +545,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
539
545
  private folderNode(
540
546
  uiSourceCode: Workspace.UISourceCode.UISourceCode, project: Workspace.Workspace.Project,
541
547
  target: SDK.Target.Target|null, frame: SDK.ResourceTreeModel.ResourceTreeFrame|null, projectOrigin: string,
542
- path: string[], fromSourceMap: boolean): NavigatorTreeNode {
548
+ path: Platform.DevToolsPath.EncodedPathString[], fromSourceMap: boolean): NavigatorTreeNode {
543
549
  if (Snippets.ScriptSnippetFileSystem.isSnippetsUISourceCode(uiSourceCode)) {
544
550
  return this.rootNode;
545
551
  }
@@ -568,7 +574,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
568
574
  if (project.type() === Workspace.Workspace.projectTypes.FileSystem) {
569
575
  type = Types.FileSystemFolder;
570
576
  }
571
- const name = path[path.length - 1];
577
+ const name = Common.ParsedURL.ParsedURL.encodedPathToRawPathString(path[path.length - 1]);
572
578
 
573
579
  folderNode = new NavigatorFolderTreeNode(this, project, folderId, type, folderPath, name);
574
580
  this.subfolderNodes.set(folderId, folderNode);
@@ -1360,7 +1366,7 @@ export class NavigatorUISourceCodeTreeNode extends NavigatorTreeNode {
1360
1366
  this.treeElement.title = titleText;
1361
1367
  this.treeElement.updateIcon();
1362
1368
 
1363
- let tooltip = this.uiSourceCodeInternal.url();
1369
+ let tooltip: string = this.uiSourceCodeInternal.url();
1364
1370
  if (this.uiSourceCodeInternal.contentType().isFromSourceMap()) {
1365
1371
  tooltip = i18nString(UIStrings.sFromSourceMap, {PH1: this.uiSourceCodeInternal.displayName()});
1366
1372
  }
@@ -34,13 +34,13 @@ import * as i18n from '../../core/i18n/i18n.js';
34
34
  import * as SDK from '../../core/sdk/sdk.js';
35
35
  import * as Protocol from '../../generated/protocol.js';
36
36
  import * as Bindings from '../../models/bindings/bindings.js';
37
+ import * as SourceMapScopes from '../../models/source_map_scopes/source_map_scopes.js';
37
38
  import * as LinearMemoryInspector from '../../ui/components/linear_memory_inspector/linear_memory_inspector.js';
38
39
  import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
39
40
  import * as Components from '../../ui/legacy/components/utils/utils.js';
40
41
  import * as UI from '../../ui/legacy/legacy.js';
41
42
 
42
43
  import scopeChainSidebarPaneStyles from './scopeChainSidebarPane.css.js';
43
- import {resolveScopeChain, resolveScopeInObject, resolveThisObject} from './SourceMapNamesResolver.js';
44
44
 
45
45
  const UIStrings = {
46
46
  /**
@@ -168,7 +168,10 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
168
168
 
169
169
  const callFrame = UI.Context.Context.instance().flavor(SDK.DebuggerModel.CallFrame);
170
170
  this.setScopeSourceMapSubscription(callFrame);
171
- const [thisObject, scopeChain] = await Promise.all([resolveThisObject(callFrame), resolveScopeChain(callFrame)]);
171
+ const [thisObject, scopeChain] = await Promise.all([
172
+ SourceMapScopes.NamesResolver.resolveThisObject(callFrame),
173
+ SourceMapScopes.NamesResolver.resolveScopeChain(callFrame),
174
+ ]);
172
175
  // By now the developer might have moved on, and we don't want to show stale
173
176
  // scope information, so check again that we're still on the same CallFrame.
174
177
  if (callFrame === UI.Context.Context.instance().flavor(SDK.DebuggerModel.CallFrame)) {
@@ -243,7 +246,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
243
246
  titleElement.createChild('div', 'scope-chain-sidebar-pane-section-title').textContent = title;
244
247
 
245
248
  const section = new ObjectUI.ObjectPropertiesSection.RootElement(
246
- resolveScopeInObject(scope), this.linkifier, emptyPlaceholder,
249
+ SourceMapScopes.NamesResolver.resolveScopeInObject(scope), this.linkifier, emptyPlaceholder,
247
250
  ObjectUI.ObjectPropertiesSection.ObjectPropertiesMode.All, extraProperties);
248
251
  section.title = titleElement;
249
252
  section.listItemElement.classList.add('scope-chain-sidebar-pane-section');
@@ -33,6 +33,7 @@ import * as Host from '../../core/host/host.js';
33
33
  import * as i18n from '../../core/i18n/i18n.js';
34
34
  import * as SDK from '../../core/sdk/sdk.js';
35
35
  import * as Persistence from '../../models/persistence/persistence.js';
36
+ import type * as Platform from '../../core/platform/platform.js';
36
37
  import * as Workspace from '../../models/workspace/workspace.js';
37
38
  import * as UI from '../../ui/legacy/legacy.js';
38
39
  import * as Snippets from '../snippets/snippets.js';
@@ -378,9 +379,14 @@ export class SnippetsNavigatorView extends NavigatorView {
378
379
  private async handleSaveAs(uiSourceCode: Workspace.UISourceCode.UISourceCode): Promise<void> {
379
380
  uiSourceCode.commitWorkingCopy();
380
381
  const {content} = await uiSourceCode.requestContent();
381
- void Workspace.FileManager.FileManager.instance().save(uiSourceCode.url(), content || '', true);
382
+ void Workspace.FileManager.FileManager.instance().save(
383
+ this.addJSExtension(uiSourceCode.url()), content || '', true);
382
384
  Workspace.FileManager.FileManager.instance().close(uiSourceCode.url());
383
385
  }
386
+
387
+ private addJSExtension(url: Platform.DevToolsPath.UrlString): Platform.DevToolsPath.UrlString {
388
+ return Common.ParsedURL.ParsedURL.concatenate(url, '.js');
389
+ }
384
390
  }
385
391
 
386
392
  let actionDelegateInstance: ActionDelegate;
@@ -584,6 +584,15 @@ export class TabbedEditorContainer extends Common.ObjectWrapper.ObjectWrapper<Ev
584
584
  const uiSourceCode = event.data;
585
585
  this.updateFileTitle(uiSourceCode);
586
586
  this.updateHistory();
587
+
588
+ // Remove from map under old url if it has changed.
589
+ for (const [k, v] of this.uriToUISourceCode) {
590
+ if (v === uiSourceCode && k !== v.url()) {
591
+ this.uriToUISourceCode.delete(k);
592
+ }
593
+ }
594
+ // Ensure it is mapped under current url.
595
+ this.canonicalUISourceCode(uiSourceCode);
587
596
  }
588
597
 
589
598
  private uiSourceCodeWorkingCopyChanged(
@@ -4,6 +4,8 @@
4
4
 
5
5
  // @ts-nocheck
6
6
 
7
+ import * as SourceMapScopesModule from '../../models/source_map_scopes/source_map_scopes.js';
8
+
7
9
  import * as SourcesModule from './sources.js';
8
10
 
9
11
  self.Sources = self.Sources || {};
@@ -139,26 +141,13 @@ Sources.SnippetsPlugin = SourcesModule.SnippetsPlugin.SnippetsPlugin;
139
141
 
140
142
  Sources.SourceMapNamesResolver = {};
141
143
 
142
- Sources.SourceMapNamesResolver.setScopeResolvedForTest = SourcesModule.SourceMapNamesResolver.setScopeResolvedForTest;
143
-
144
144
  // Tests can override this global symbol and therefore can't be exported
145
145
  Object.defineProperty(Sources.SourceMapNamesResolver, '_scopeResolvedForTest', {
146
- get: SourcesModule.SourceMapNamesResolver.getScopeResolvedForTest,
147
- set: SourcesModule.SourceMapNamesResolver.setScopeResolvedForTest,
146
+ get: SourceMapScopesModule.NamesResolver.getScopeResolvedForTest,
147
+ set: SourceMapScopesModule.NamesResolver.setScopeResolvedForTest,
148
148
  });
149
149
 
150
- Sources.SourceMapNamesResolver._scopeIdentifiers = SourcesModule.SourceMapNamesResolver.scopeIdentifiers;
151
- Sources.SourceMapNamesResolver._resolveScope = SourcesModule.SourceMapNamesResolver.resolveScope;
152
- Sources.SourceMapNamesResolver._allVariablesInCallFrame = SourcesModule.SourceMapNamesResolver.allVariablesInCallFrame;
153
- Sources.SourceMapNamesResolver.resolveExpression = SourcesModule.SourceMapNamesResolver.resolveExpression;
154
- Sources.SourceMapNamesResolver.resolveThisObject = SourcesModule.SourceMapNamesResolver.resolveThisObject;
155
- Sources.SourceMapNamesResolver.resolveScopeInObject = SourcesModule.SourceMapNamesResolver.resolveScopeInObject;
156
-
157
- /** @constructor */
158
- Sources.SourceMapNamesResolver.Identifier = SourcesModule.SourceMapNamesResolver.Identifier;
159
-
160
- /** @constructor */
161
- Sources.SourceMapNamesResolver.RemoteObject = SourcesModule.SourceMapNamesResolver.RemoteObject;
150
+ Sources.SourceMapNamesResolver.resolveExpression = SourceMapScopesModule.NamesResolver.resolveExpression;
162
151
 
163
152
  /** @constructor */
164
153
  Sources.NetworkNavigatorView = SourcesModule.SourcesNavigator.NetworkNavigatorView;
@@ -24,7 +24,6 @@ import * as ScriptFormatterEditorAction from './ScriptFormatterEditorAction.js';
24
24
  import * as ScriptOriginPlugin from './ScriptOriginPlugin.js';
25
25
  import * as SearchSourcesView from './SearchSourcesView.js';
26
26
  import * as SnippetsPlugin from './SnippetsPlugin.js';
27
- import * as SourceMapNamesResolver from './SourceMapNamesResolver.js';
28
27
  import * as SourcesNavigator from './SourcesNavigator.js';
29
28
  import * as SourcesPanel from './SourcesPanel.js';
30
29
  import * as SourcesSearchScope from './SourcesSearchScope.js';
@@ -57,7 +56,6 @@ export {
57
56
  ScriptOriginPlugin,
58
57
  SearchSourcesView,
59
58
  SnippetsPlugin,
60
- SourceMapNamesResolver,
61
59
  SourcesNavigator,
62
60
  SourcesPanel,
63
61
  SourcesSearchScope,
@@ -45,10 +45,6 @@
45
45
  z-index: 0;
46
46
  }
47
47
 
48
- .sources-toolbar .toolbar {
49
- cursor: default;
50
- }
51
-
52
48
  .source-frame-debugger-script {
53
49
  --override-debugger-background-tint: rgb(255 255 194 / 50%);
54
50
 
@@ -1871,15 +1871,8 @@ export class TimelineUIUtils {
1871
1871
  if (url) {
1872
1872
  const options = {
1873
1873
  tabStop: true,
1874
- className: undefined,
1875
- columnNumber: undefined,
1876
1874
  showColumnNumber: false,
1877
1875
  inlineFrameIndex: 0,
1878
- text: undefined,
1879
- lineNumber: undefined,
1880
- preventClick: undefined,
1881
- maxLength: undefined,
1882
- bypassURLTrimming: undefined,
1883
1876
  };
1884
1877
  details = Components.Linkifier.Linkifier.linkifyURL(url, options);
1885
1878
  }
@@ -2126,15 +2119,8 @@ export class TimelineUIUtils {
2126
2119
  if (url) {
2127
2120
  const options = {
2128
2121
  tabStop: true,
2129
- className: undefined,
2130
- columnNumber: undefined,
2131
2122
  showColumnNumber: false,
2132
2123
  inlineFrameIndex: 0,
2133
- lineNumber: undefined,
2134
- text: undefined,
2135
- preventClick: undefined,
2136
- maxLength: undefined,
2137
- bypassURLTrimming: undefined,
2138
2124
  };
2139
2125
  contentHelper.appendElementRow(
2140
2126
  i18nString(UIStrings.resource), Components.Linkifier.Linkifier.linkifyURL(url, options));
@@ -2264,15 +2250,8 @@ export class TimelineUIUtils {
2264
2250
  if (url) {
2265
2251
  const options = {
2266
2252
  tabStop: true,
2267
- className: undefined,
2268
- columnNumber: undefined,
2269
2253
  showColumnNumber: false,
2270
- lineNumber: undefined,
2271
2254
  inlineFrameIndex: 0,
2272
- text: undefined,
2273
- preventClick: undefined,
2274
- maxLength: undefined,
2275
- bypassURLTrimming: undefined,
2276
2255
  };
2277
2256
  contentHelper.appendElementRow(
2278
2257
  i18nString(UIStrings.imageUrl), Components.Linkifier.Linkifier.linkifyURL(url, options));
@@ -2285,15 +2264,8 @@ export class TimelineUIUtils {
2285
2264
  if (url) {
2286
2265
  const options = {
2287
2266
  tabStop: true,
2288
- className: undefined,
2289
- columnNumber: undefined,
2290
2267
  showColumnNumber: false,
2291
2268
  inlineFrameIndex: 0,
2292
- lineNumber: undefined,
2293
- text: undefined,
2294
- preventClick: undefined,
2295
- maxLength: undefined,
2296
- bypassURLTrimming: undefined,
2297
2269
  };
2298
2270
  contentHelper.appendElementRow(
2299
2271
  i18nString(UIStrings.stylesheetUrl), Components.Linkifier.Linkifier.linkifyURL(url, options));
@@ -2641,15 +2613,8 @@ export class TimelineUIUtils {
2641
2613
  if (request.url) {
2642
2614
  const options = {
2643
2615
  tabStop: true,
2644
- className: undefined,
2645
- columnNumber: undefined,
2646
2616
  showColumnNumber: false,
2647
- text: undefined,
2648
2617
  inlineFrameIndex: 0,
2649
- lineNumber: undefined,
2650
- preventClick: undefined,
2651
- maxLength: undefined,
2652
- bypassURLTrimming: undefined,
2653
2618
  };
2654
2619
  contentHelper.appendElementRow(
2655
2620
  i18n.i18n.lockedString('URL'), Components.Linkifier.Linkifier.linkifyURL(request.url, options));
@@ -2711,7 +2676,7 @@ export class TimelineUIUtils {
2711
2676
  const topFrame = TimelineModel.TimelineModel.TimelineData.forEvent(sendRequest).topFrame();
2712
2677
  if (topFrame) {
2713
2678
  const link = linkifier.maybeLinkifyConsoleCallFrame(
2714
- target, topFrame, {tabStop: true, className: undefined, inlineFrameIndex: 0, showColumnNumber: true});
2679
+ target, topFrame, {tabStop: true, inlineFrameIndex: 0, showColumnNumber: true});
2715
2680
  if (link) {
2716
2681
  contentHelper.appendElementRow(title, link);
2717
2682
  }
@@ -2720,9 +2685,8 @@ export class TimelineUIUtils {
2720
2685
  if (initiator) {
2721
2686
  const initiatorURL = TimelineModel.TimelineModel.TimelineData.forEvent(initiator).url;
2722
2687
  if (initiatorURL) {
2723
- const link = linkifier.maybeLinkifyScriptLocation(
2724
- target, null, initiatorURL, 0,
2725
- {tabStop: true, className: undefined, inlineFrameIndex: 0, columnNumber: undefined});
2688
+ const link =
2689
+ linkifier.maybeLinkifyScriptLocation(target, null, initiatorURL, 0, {tabStop: true, inlineFrameIndex: 0});
2726
2690
  if (link) {
2727
2691
  contentHelper.appendElementRow(title, link);
2728
2692
  }
@@ -3714,15 +3678,9 @@ export class TimelineDetailsContentHelper {
3714
3678
 
3715
3679
  const options = {
3716
3680
  tabStop: true,
3717
- className: undefined,
3718
3681
  columnNumber: startColumn,
3719
3682
  showColumnNumber: true,
3720
3683
  inlineFrameIndex: 0,
3721
- text: undefined,
3722
- lineNumber: undefined,
3723
- preventClick: undefined,
3724
- maxLength: undefined,
3725
- bypassURLTrimming: undefined,
3726
3684
  };
3727
3685
  const link = this.linkifierInternal.maybeLinkifyScriptLocation(this.target, null, url, startLine, options);
3728
3686
  if (!link) {
@@ -3737,8 +3695,7 @@ export class TimelineDetailsContentHelper {
3737
3695
  }
3738
3696
  const locationContent = document.createElement('span');
3739
3697
  const link = this.linkifierInternal.maybeLinkifyScriptLocation(
3740
- this.target, null, url, startLine,
3741
- {tabStop: true, className: undefined, inlineFrameIndex: 0, columnNumber: undefined});
3698
+ this.target, null, url, startLine, {tabStop: true, inlineFrameIndex: 0});
3742
3699
  if (!link) {
3743
3700
  return;
3744
3701
  }