chrome-devtools-frontend 1.0.1529186 → 1.0.1530564
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.
- package/eslint.config.mjs +1 -1
- package/front_end/core/common/Gzip.ts +10 -8
- package/front_end/core/common/Worker.ts +10 -2
- package/front_end/core/host/AidaClient.ts +3 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -2
- package/front_end/core/sdk/NetworkManager.ts +25 -1
- package/front_end/core/sdk/SourceMap.ts +10 -0
- package/front_end/entrypoints/main/main-meta.ts +2 -0
- package/front_end/entrypoints/trace_app/trace_app.ts +1 -0
- package/front_end/generated/SupportedCSSProperties.js +14 -0
- package/front_end/models/ai_assistance/performance/AICallTree.ts +2 -3
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +3 -3
- package/front_end/models/bindings/CompilerScriptMapping.ts +54 -4
- package/front_end/models/formatter/FormatterWorkerPool.ts +17 -1
- package/front_end/models/javascript_metadata/NativeFunctions.js +1 -1
- package/front_end/models/trace/ModelImpl.ts +8 -3
- package/front_end/models/trace/handlers/MetaHandler.ts +9 -1
- package/front_end/models/trace/types/Configuration.ts +1 -0
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +2 -1
- package/front_end/panels/changes/CombinedDiffView.ts +1 -2
- package/front_end/panels/console/ConsoleInsightTeaser.ts +19 -9
- package/front_end/panels/console/ConsolePrompt.ts +11 -3
- package/front_end/panels/console/ConsoleViewMessage.ts +7 -5
- package/front_end/panels/console/consoleInsightTeaser.css +0 -4
- package/front_end/panels/console/consolePrompt.css +3 -2
- package/front_end/panels/console/consoleView.css +10 -5
- package/front_end/panels/elements/ElementsTreeOutline.ts +1 -2
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +137 -37
- package/front_end/panels/mobile_throttling/ThrottlingPresets.ts +1 -1
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +10 -5
- package/front_end/panels/sources/SourcesPanel.ts +5 -0
- package/front_end/panels/sources/sources-meta.ts +13 -12
- package/front_end/panels/sources/sourcesView.css +1 -0
- package/front_end/panels/timeline/TimelinePanel.ts +3 -3
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +1 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +3 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +16 -16
- package/front_end/services/tracing/FreshRecording.ts +4 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +16 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +9 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +13 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +40 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +16 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +9 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +18 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +9 -1
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/common/util.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +16 -5
- package/front_end/third_party/puppeteer/package/src/node/NodeWebSocketTransport.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +10 -0
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +1 -1
- package/front_end/ui/components/icon_button/Icon.docs.ts +78 -0
- package/front_end/ui/components/markdown_view/CodeBlock.ts +2 -2
- package/front_end/ui/components/text_editor/config.ts +3 -3
- package/front_end/ui/components/tooltips/Tooltip.ts +9 -4
- package/front_end/ui/legacy/UIUtils.ts +12 -0
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/package.json +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +0 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +0 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +0 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +0 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js.map +0 -1
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +0 -4
- package/front_end/ui/components/copy_to_clipboard/copyToClipboard.ts +0 -19
- package/front_end/ui/components/copy_to_clipboard/copy_to_clipboard.ts +0 -5
- package/front_end/ui/components/docs/icon_component/basic.html +0 -40
- package/front_end/ui/components/docs/icon_component/basic.ts +0 -68
|
@@ -380,7 +380,7 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
380
380
|
wasShown(): void {
|
|
381
381
|
this.isVisibleInternal = true;
|
|
382
382
|
if (this.elementInternal) {
|
|
383
|
-
this.#teaser?.show(this.elementInternal);
|
|
383
|
+
this.#teaser?.show(this.elementInternal, this.consoleRowWrapper);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -1343,14 +1343,14 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1343
1343
|
return this.contentElementInternal;
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
|
-
#
|
|
1346
|
+
#startTeaserGeneration(): void {
|
|
1347
1347
|
if (this.#teaser &&
|
|
1348
1348
|
Common.Settings.Settings.instance().moduleSetting('console-insight-teasers-enabled').getIfNotDisabled()) {
|
|
1349
1349
|
this.#teaser.maybeGenerateTeaser();
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
#
|
|
1353
|
+
#abortTeaserGeneration(): void {
|
|
1354
1354
|
this.#teaser?.abortTeaserGeneration();
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
@@ -1361,8 +1361,10 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
|
|
|
1361
1361
|
this.elementInternal = document.createElement('div');
|
|
1362
1362
|
this.elementInternal.tabIndex = -1;
|
|
1363
1363
|
this.elementInternal.addEventListener('keydown', (this.onKeyDown.bind(this) as EventListener));
|
|
1364
|
-
this.elementInternal.addEventListener('mouseenter', this.#
|
|
1365
|
-
this.elementInternal.addEventListener('
|
|
1364
|
+
this.elementInternal.addEventListener('mouseenter', this.#startTeaserGeneration.bind(this));
|
|
1365
|
+
this.elementInternal.addEventListener('focusin', this.#startTeaserGeneration.bind(this));
|
|
1366
|
+
this.elementInternal.addEventListener('mouseleave', this.#abortTeaserGeneration.bind(this));
|
|
1367
|
+
this.elementInternal.addEventListener('focusout', this.#abortTeaserGeneration.bind(this));
|
|
1366
1368
|
this.updateMessageElement();
|
|
1367
1369
|
this.elementInternal.classList.toggle('console-adjacent-user-command-result', this.#adjacentUserCommandResult);
|
|
1368
1370
|
return this.elementInternal;
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
#console-prompt .console-prompt-icon {
|
|
20
20
|
position: absolute;
|
|
21
|
-
left: -
|
|
22
|
-
top:
|
|
21
|
+
left: -9px;
|
|
22
|
+
top: 4px;
|
|
23
23
|
user-select: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.console-eager-preview {
|
|
27
27
|
padding-bottom: 2px;
|
|
28
|
+
margin-left: 4px;
|
|
28
29
|
opacity: 60%;
|
|
29
30
|
position: relative;
|
|
30
31
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Copyright 2021 The Chromium Authors
|
|
2
|
+
* Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
* found in the LICENSE file.
|
|
4
|
+
*
|
|
2
5
|
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
|
|
3
6
|
* Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
|
|
4
7
|
*
|
|
@@ -90,17 +93,20 @@
|
|
|
90
93
|
|
|
91
94
|
.console-prompt-editor-container {
|
|
92
95
|
min-height: 21px;
|
|
96
|
+
padding-left: 2px;
|
|
97
|
+
padding-top: 1px;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
.console-message,
|
|
96
101
|
.console-user-command {
|
|
97
102
|
clear: right;
|
|
98
103
|
position: relative;
|
|
99
|
-
padding:
|
|
104
|
+
padding: 1px 22px 1px 0;
|
|
100
105
|
margin-left: 24px;
|
|
101
|
-
min-height:
|
|
106
|
+
min-height: 18px;
|
|
102
107
|
flex: auto;
|
|
103
108
|
display: flex;
|
|
109
|
+
align-items: flex-end;
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
.console-message > * {
|
|
@@ -215,7 +221,7 @@
|
|
|
215
221
|
--console-color-white: #fff;
|
|
216
222
|
|
|
217
223
|
&.console-selected {
|
|
218
|
-
background-color: var(--sys-color-
|
|
224
|
+
background-color: var(--sys-color-state-focus-highlight);
|
|
219
225
|
}
|
|
220
226
|
}
|
|
221
227
|
|
|
@@ -329,7 +335,6 @@
|
|
|
329
335
|
display: inline-block;
|
|
330
336
|
overflow-wrap: break-word;
|
|
331
337
|
max-width: 100%;
|
|
332
|
-
vertical-align: top;
|
|
333
338
|
margin-top: -1.5px;
|
|
334
339
|
}
|
|
335
340
|
|
|
@@ -41,7 +41,6 @@ import * as Badges from '../../models/badges/badges.js';
|
|
|
41
41
|
import * as Elements from '../../models/elements/elements.js';
|
|
42
42
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
43
43
|
import * as CodeHighlighter from '../../ui/components/code_highlighter/code_highlighter.js';
|
|
44
|
-
import * as CopyToClipboard from '../../ui/components/copy_to_clipboard/copy_to_clipboard.js';
|
|
45
44
|
import * as IssueCounter from '../../ui/components/issue_counter/issue_counter.js';
|
|
46
45
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
47
46
|
import {html, nothing, render} from '../../ui/lit/lit.js';
|
|
@@ -736,7 +735,7 @@ export class ElementsTreeOutline extends
|
|
|
736
735
|
}
|
|
737
736
|
void node.getOuterHTML(includeShadowRoots).then(outerHTML => {
|
|
738
737
|
if (outerHTML !== null) {
|
|
739
|
-
|
|
738
|
+
UI.UIUtils.copyTextToClipboard(outerHTML);
|
|
740
739
|
}
|
|
741
740
|
});
|
|
742
741
|
this.setClipboardData({node, isCut});
|
|
@@ -6,14 +6,14 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
|
-
import * as
|
|
9
|
+
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
10
|
import * as Lit from '../../ui/lit/lit.js';
|
|
11
11
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
12
12
|
|
|
13
13
|
import {ThrottlingManager} from './ThrottlingManager.js';
|
|
14
|
-
import
|
|
14
|
+
import type {NetworkThrottlingConditionsGroup} from './ThrottlingPresets.js';
|
|
15
15
|
|
|
16
|
-
const {render, html, Directives} = Lit;
|
|
16
|
+
const {render, html, Directives, nothing} = Lit;
|
|
17
17
|
|
|
18
18
|
const UIStrings = {
|
|
19
19
|
/**
|
|
@@ -28,6 +28,10 @@ const UIStrings = {
|
|
|
28
28
|
* @description Text in Network Throttling Selector of the Network panel
|
|
29
29
|
*/
|
|
30
30
|
custom: 'Custom',
|
|
31
|
+
/**
|
|
32
|
+
* @description Title for a network throttling group containing the request blocking option
|
|
33
|
+
*/
|
|
34
|
+
blockingGroup: 'Blocking',
|
|
31
35
|
/**
|
|
32
36
|
*@description Text with two placeholders separated by a colon
|
|
33
37
|
*@example {Node removed} PH1
|
|
@@ -54,26 +58,28 @@ const str_ = i18n.i18n.registerUIStrings('panels/mobile_throttling/NetworkThrott
|
|
|
54
58
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
55
59
|
|
|
56
60
|
interface ViewInput {
|
|
57
|
-
recommendedConditions: SDK.NetworkManager.
|
|
58
|
-
selectedConditions: SDK.NetworkManager.
|
|
61
|
+
recommendedConditions: SDK.NetworkManager.ThrottlingConditions|null;
|
|
62
|
+
selectedConditions: SDK.NetworkManager.ThrottlingConditions|undefined;
|
|
59
63
|
throttlingGroups: NetworkThrottlingConditionsGroup[];
|
|
60
64
|
customConditionsGroup: NetworkThrottlingConditionsGroup;
|
|
61
|
-
jslogContext: string;
|
|
62
|
-
title: string;
|
|
63
|
-
onSelect: (conditions: SDK.NetworkManager.
|
|
65
|
+
jslogContext: string|undefined;
|
|
66
|
+
title: string|undefined;
|
|
67
|
+
onSelect: (conditions: SDK.NetworkManager.ThrottlingConditions) => void;
|
|
64
68
|
onAddCustomConditions: () => void;
|
|
65
69
|
}
|
|
66
70
|
export type ViewFunction = (input: ViewInput, output: object, target: HTMLElement) => void;
|
|
67
71
|
|
|
68
72
|
export const DEFAULT_VIEW: ViewFunction = (input, output, target) => {
|
|
69
73
|
// The title is usually an i18nLazyString except for custom values that are stored in the local storage in the form of a string.
|
|
70
|
-
const title = (conditions: SDK.NetworkManager.
|
|
74
|
+
const title = (conditions: SDK.NetworkManager.ThrottlingConditions): string =>
|
|
71
75
|
typeof conditions.title === 'function' ? conditions.title() : conditions.title;
|
|
72
|
-
const jslog = (group: NetworkThrottlingConditionsGroup, condition: SDK.NetworkManager.
|
|
73
|
-
`${
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
const jslog = (group: NetworkThrottlingConditionsGroup, condition: SDK.NetworkManager.ThrottlingConditions): string =>
|
|
77
|
+
`${
|
|
78
|
+
VisualLogging
|
|
79
|
+
.item(Platform.StringUtilities.toKebabCase(
|
|
80
|
+
('i18nTitleKey' in condition && condition.i18nTitleKey) || title(condition)))
|
|
81
|
+
.track({click: true})}`;
|
|
82
|
+
const optionsMap = new WeakMap<HTMLOptionElement, SDK.NetworkManager.ThrottlingConditions>();
|
|
77
83
|
let selectedConditions = input.selectedConditions;
|
|
78
84
|
function onSelect(event: Event): void {
|
|
79
85
|
const element = (event.target as HTMLSelectElement | null);
|
|
@@ -87,7 +93,9 @@ export const DEFAULT_VIEW: ViewFunction = (input, output, target) => {
|
|
|
87
93
|
if (option === element.options[element.options.length - 1]) {
|
|
88
94
|
input.onAddCustomConditions();
|
|
89
95
|
event.consume(true);
|
|
90
|
-
|
|
96
|
+
if (selectedConditions) {
|
|
97
|
+
element.value = title(selectedConditions);
|
|
98
|
+
}
|
|
91
99
|
} else {
|
|
92
100
|
const conditions = optionsMap.get(option);
|
|
93
101
|
if (conditions) {
|
|
@@ -96,10 +104,11 @@ export const DEFAULT_VIEW: ViewFunction = (input, output, target) => {
|
|
|
96
104
|
}
|
|
97
105
|
}
|
|
98
106
|
}
|
|
107
|
+
|
|
99
108
|
render(
|
|
100
109
|
// clang-format off
|
|
101
110
|
html`<select
|
|
102
|
-
aria-label=${input.title}
|
|
111
|
+
aria-label=${input.title ?? nothing}
|
|
103
112
|
jslog=${VisualLogging.dropDown().track({change: true}).context(input.jslogContext)}
|
|
104
113
|
@change=${onSelect}>
|
|
105
114
|
${input.throttlingGroups.map(
|
|
@@ -108,7 +117,9 @@ export const DEFAULT_VIEW: ViewFunction = (input, output, target) => {
|
|
|
108
117
|
label=${group.title}>
|
|
109
118
|
${group.items.map(condition => html`<option
|
|
110
119
|
${Directives.ref(option => option && optionsMap.set(option as HTMLOptionElement, condition))}
|
|
111
|
-
?selected=${
|
|
120
|
+
?selected=${selectedConditions ?
|
|
121
|
+
SDK.NetworkManager.networkConditionsEqual(condition, selectedConditions) :
|
|
122
|
+
(group === input.throttlingGroups[0])}
|
|
112
123
|
value=${title(condition)}
|
|
113
124
|
aria-label=${i18nString(UIStrings.sS, {PH1: group.title, PH2: title(condition)})}
|
|
114
125
|
jslog=${jslog(group, condition)}>
|
|
@@ -120,7 +131,7 @@ export const DEFAULT_VIEW: ViewFunction = (input, output, target) => {
|
|
|
120
131
|
<optgroup label=${input.customConditionsGroup.title}>
|
|
121
132
|
${input.customConditionsGroup.items.map(condition => html`<option
|
|
122
133
|
${Directives.ref(option => option && optionsMap.set(option as HTMLOptionElement, condition))}
|
|
123
|
-
?selected=${SDK.NetworkManager.networkConditionsEqual(condition, selectedConditions)}
|
|
134
|
+
?selected=${selectedConditions && SDK.NetworkManager.networkConditionsEqual(condition, selectedConditions)}
|
|
124
135
|
value=${title(condition)}
|
|
125
136
|
aria-label=${i18nString(UIStrings.sS, {PH1: input.customConditionsGroup.title, PH2: title(condition)})}
|
|
126
137
|
jslog=${VisualLogging.item('custom-network-throttling-item').track({click: true})}>
|
|
@@ -144,25 +155,29 @@ export const enum Events {
|
|
|
144
155
|
}
|
|
145
156
|
|
|
146
157
|
export interface EventTypes {
|
|
147
|
-
[Events.CONDITIONS_CHANGED]: SDK.NetworkManager.
|
|
158
|
+
[Events.CONDITIONS_CHANGED]: SDK.NetworkManager.ThrottlingConditions;
|
|
148
159
|
}
|
|
149
160
|
|
|
150
161
|
export class NetworkThrottlingSelect extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
|
151
162
|
#recommendedConditions: SDK.NetworkManager.Conditions|null = null;
|
|
152
163
|
readonly #element: HTMLElement;
|
|
153
|
-
|
|
154
|
-
#currentConditions: SDK.NetworkManager.
|
|
155
|
-
readonly #title
|
|
164
|
+
#jslogContext?: string;
|
|
165
|
+
#currentConditions: SDK.NetworkManager.ThrottlingConditions|undefined;
|
|
166
|
+
readonly #title?: string;
|
|
156
167
|
readonly #view: ViewFunction;
|
|
168
|
+
#variant: NetworkThrottlingSelect.Variant = NetworkThrottlingSelect.Variant.GLOBAL_CONDITIONS;
|
|
157
169
|
|
|
158
170
|
static createForGlobalConditions(element: HTMLElement, title: string): NetworkThrottlingSelect {
|
|
159
171
|
ThrottlingManager.instance(); // Instantiate the throttling manager to connect network manager with the setting
|
|
160
|
-
const select = new NetworkThrottlingSelect(
|
|
161
|
-
|
|
162
|
-
|
|
172
|
+
const select = new NetworkThrottlingSelect(element, {
|
|
173
|
+
title,
|
|
174
|
+
jslogContext: SDK.NetworkManager.activeNetworkThrottlingKeySetting().name,
|
|
175
|
+
currentConditions: SDK.NetworkManager.MultitargetNetworkManager.instance().networkConditions()
|
|
176
|
+
});
|
|
163
177
|
select.addEventListener(
|
|
164
178
|
Events.CONDITIONS_CHANGED,
|
|
165
|
-
ev =>
|
|
179
|
+
ev => !('block' in ev.data) &&
|
|
180
|
+
SDK.NetworkManager.MultitargetNetworkManager.instance().setNetworkConditions(ev.data));
|
|
166
181
|
SDK.NetworkManager.MultitargetNetworkManager.instance().addEventListener(
|
|
167
182
|
SDK.NetworkManager.MultitargetNetworkManager.Events.CONDITIONS_CHANGED, () => {
|
|
168
183
|
select.currentConditions = SDK.NetworkManager.MultitargetNetworkManager.instance().networkConditions();
|
|
@@ -171,29 +186,57 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.ObjectWrapper<
|
|
|
171
186
|
}
|
|
172
187
|
|
|
173
188
|
constructor(
|
|
174
|
-
element: HTMLElement,
|
|
189
|
+
element: HTMLElement, options: {
|
|
190
|
+
title?: string,
|
|
191
|
+
jslogContext?: string,
|
|
192
|
+
currentConditions?: SDK.NetworkManager.Conditions,
|
|
193
|
+
includeBlocking?: true,
|
|
194
|
+
} = {},
|
|
175
195
|
view = DEFAULT_VIEW) {
|
|
176
196
|
super();
|
|
177
197
|
SDK.NetworkManager.customUserNetworkConditionsSetting().addChangeListener(this.#performUpdate, this);
|
|
178
198
|
this.#element = element;
|
|
179
|
-
this.#jslogContext = jslogContext;
|
|
180
|
-
this.#currentConditions = currentConditions;
|
|
181
|
-
this.#title = title;
|
|
199
|
+
this.#jslogContext = options.jslogContext;
|
|
200
|
+
this.#currentConditions = options.currentConditions;
|
|
201
|
+
this.#title = options.title;
|
|
182
202
|
this.#view = view;
|
|
183
203
|
|
|
184
204
|
this.#performUpdate();
|
|
185
205
|
}
|
|
186
206
|
|
|
207
|
+
get recommendedConditions(): SDK.NetworkManager.Conditions|null {
|
|
208
|
+
return this.#recommendedConditions;
|
|
209
|
+
}
|
|
187
210
|
set recommendedConditions(recommendedConditions: SDK.NetworkManager.Conditions|null) {
|
|
188
211
|
this.#recommendedConditions = recommendedConditions;
|
|
189
212
|
this.#performUpdate();
|
|
190
213
|
}
|
|
191
214
|
|
|
192
|
-
|
|
215
|
+
get currentConditions(): SDK.NetworkManager.ThrottlingConditions|undefined {
|
|
216
|
+
return this.#currentConditions;
|
|
217
|
+
}
|
|
218
|
+
set currentConditions(currentConditions: SDK.NetworkManager.ThrottlingConditions|undefined) {
|
|
193
219
|
this.#currentConditions = currentConditions;
|
|
194
220
|
this.#performUpdate();
|
|
195
221
|
}
|
|
196
222
|
|
|
223
|
+
get jslogContext(): string|undefined {
|
|
224
|
+
return this.#jslogContext;
|
|
225
|
+
}
|
|
226
|
+
set jslogContext(jslogContext: string|undefined) {
|
|
227
|
+
this.#jslogContext = jslogContext;
|
|
228
|
+
this.#performUpdate();
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
get variant(): NetworkThrottlingSelect.Variant {
|
|
232
|
+
return this.#variant;
|
|
233
|
+
}
|
|
234
|
+
set variant(variant: NetworkThrottlingSelect.Variant) {
|
|
235
|
+
this.#variant = variant;
|
|
236
|
+
this.#performUpdate();
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// FIXME Should use requestUpdate once we merge this with the widget
|
|
197
240
|
#performUpdate(): void {
|
|
198
241
|
const customNetworkConditionsSetting = SDK.NetworkManager.customUserNetworkConditionsSetting();
|
|
199
242
|
const customNetworkConditions = customNetworkConditionsSetting.get();
|
|
@@ -201,16 +244,41 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.ObjectWrapper<
|
|
|
201
244
|
void Common.Revealer.reveal(SDK.NetworkManager.customUserNetworkConditionsSetting());
|
|
202
245
|
};
|
|
203
246
|
|
|
204
|
-
const onSelect = (conditions: SDK.NetworkManager.
|
|
247
|
+
const onSelect = (conditions: SDK.NetworkManager.ThrottlingConditions): void => {
|
|
205
248
|
this.dispatchEventToListeners(Events.CONDITIONS_CHANGED, conditions);
|
|
206
|
-
Badges.UserBadges.instance().recordAction(Badges.BadgeAction.NETWORK_SPEED_THROTTLED);
|
|
207
249
|
};
|
|
208
250
|
|
|
209
|
-
const throttlingGroups = [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
251
|
+
const throttlingGroups: NetworkThrottlingConditionsGroup[] = [];
|
|
252
|
+
|
|
253
|
+
switch (this.#variant) {
|
|
254
|
+
case NetworkThrottlingSelect.Variant.GLOBAL_CONDITIONS:
|
|
255
|
+
throttlingGroups.push(
|
|
256
|
+
{title: i18nString(UIStrings.disabled), items: [SDK.NetworkManager.NoThrottlingConditions]}, {
|
|
257
|
+
title: i18nString(UIStrings.presets),
|
|
258
|
+
items: [
|
|
259
|
+
SDK.NetworkManager.Fast4GConditions,
|
|
260
|
+
SDK.NetworkManager.Slow4GConditions,
|
|
261
|
+
SDK.NetworkManager.Slow3GConditions,
|
|
262
|
+
SDK.NetworkManager.OfflineConditions,
|
|
263
|
+
]
|
|
264
|
+
});
|
|
265
|
+
break;
|
|
266
|
+
case NetworkThrottlingSelect.Variant.INDIVIDUAL_REQUEST_CONDITIONS:
|
|
267
|
+
throttlingGroups.push(
|
|
268
|
+
{title: i18nString(UIStrings.blockingGroup), items: [SDK.NetworkManager.BlockingConditions]},
|
|
269
|
+
{
|
|
270
|
+
title: i18nString(UIStrings.presets),
|
|
271
|
+
items: [
|
|
272
|
+
SDK.NetworkManager.Fast4GConditions,
|
|
273
|
+
SDK.NetworkManager.Slow4GConditions,
|
|
274
|
+
SDK.NetworkManager.Slow3GConditions,
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
);
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
213
280
|
const customConditionsGroup = {title: i18nString(UIStrings.custom), items: customNetworkConditions};
|
|
281
|
+
|
|
214
282
|
const viewInput: ViewInput = {
|
|
215
283
|
recommendedConditions: this.#recommendedConditions,
|
|
216
284
|
selectedConditions: this.#currentConditions,
|
|
@@ -224,3 +292,35 @@ export class NetworkThrottlingSelect extends Common.ObjectWrapper.ObjectWrapper<
|
|
|
224
292
|
this.#view(viewInput, {}, this.#element);
|
|
225
293
|
}
|
|
226
294
|
}
|
|
295
|
+
export namespace NetworkThrottlingSelect {
|
|
296
|
+
export const enum Variant {
|
|
297
|
+
GLOBAL_CONDITIONS = 'global-conditions',
|
|
298
|
+
INDIVIDUAL_REQUEST_CONDITIONS = 'individual-request-conditions',
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export class NetworkThrottlingSelectorWidget extends UI.Widget.VBox {
|
|
303
|
+
#select: NetworkThrottlingSelect;
|
|
304
|
+
#conditionsChangedHandler?: ((conditions: SDK.NetworkManager.ThrottlingConditions) => void);
|
|
305
|
+
constructor(element?: HTMLElement, view = DEFAULT_VIEW) {
|
|
306
|
+
super(element, {useShadowDom: true});
|
|
307
|
+
this.#select = new NetworkThrottlingSelect(this.contentElement, {}, view);
|
|
308
|
+
this.#select.addEventListener(Events.CONDITIONS_CHANGED, ({data}) => this.#conditionsChangedHandler?.(data));
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
set variant(variant: NetworkThrottlingSelect.Variant) {
|
|
312
|
+
this.#select.variant = variant;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
set jslogContext(context: string) {
|
|
316
|
+
this.#select.jslogContext = context;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
set currentConditions(currentConditions: SDK.NetworkManager.ThrottlingConditions|undefined) {
|
|
320
|
+
this.#select.currentConditions = currentConditions;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
set onConditionsChanged(handler: (conditions: SDK.NetworkManager.ThrottlingConditions) => void) {
|
|
324
|
+
this.#conditionsChangedHandler = handler;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
@@ -167,7 +167,7 @@ export interface Conditions {
|
|
|
167
167
|
|
|
168
168
|
export interface NetworkThrottlingConditionsGroup {
|
|
169
169
|
title: string;
|
|
170
|
-
items: SDK.NetworkManager.
|
|
170
|
+
items: SDK.NetworkManager.ThrottlingConditions[];
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
export interface MobileThrottlingConditionsGroup {
|
|
@@ -55,7 +55,6 @@ export class AiCodeCompletionPlugin extends Plugin {
|
|
|
55
55
|
this.#boundOnAidaAvailabilityChange = this.#onAidaAvailabilityChange.bind(this);
|
|
56
56
|
Host.AidaClient.HostConfigTracker.instance().addEventListener(
|
|
57
57
|
Host.AidaClient.Events.AIDA_AVAILABILITY_CHANGED, this.#boundOnAidaAvailabilityChange);
|
|
58
|
-
void this.#onAidaAvailabilityChange();
|
|
59
58
|
const showTeaser = !this.#aiCodeCompletionSetting.get() && !this.#aiCodeCompletionTeaserDismissedSetting.get();
|
|
60
59
|
if (showTeaser) {
|
|
61
60
|
this.#teaser = new PanelCommon.AiCodeCompletionTeaser({onDetach: this.#detachAiCodeCompletionTeaser.bind(this)});
|
|
@@ -84,9 +83,7 @@ export class AiCodeCompletionPlugin extends Plugin {
|
|
|
84
83
|
this.#editor.addEventListener('keydown', this.#boundEditorKeyDown);
|
|
85
84
|
this.#aiCodeCompletionSetting.addChangeListener(this.#boundOnAiCodeCompletionSettingChanged);
|
|
86
85
|
this.#onAiCodeCompletionSettingChanged();
|
|
87
|
-
|
|
88
|
-
this.#addTeaserPluginToCompartmentImmediate(editor.editor);
|
|
89
|
-
}
|
|
86
|
+
void this.#onAidaAvailabilityChange();
|
|
90
87
|
}
|
|
91
88
|
|
|
92
89
|
override editorExtension(): CodeMirror.Extension {
|
|
@@ -157,7 +154,7 @@ export class AiCodeCompletionPlugin extends Plugin {
|
|
|
157
154
|
if (this.#aiCodeCompletion && this.#editor && TextEditor.Config.hasActiveAiSuggestion(this.#editor.state)) {
|
|
158
155
|
const {accepted, suggestion} = TextEditor.Config.acceptAiAutoCompleteSuggestion(this.#editor.editor);
|
|
159
156
|
if (accepted) {
|
|
160
|
-
if (suggestion?.rpcGlobalId
|
|
157
|
+
if (suggestion?.rpcGlobalId) {
|
|
161
158
|
this.#aiCodeCompletion?.registerUserAcceptance(suggestion.rpcGlobalId, suggestion.sampleId);
|
|
162
159
|
}
|
|
163
160
|
this.#onAiCodeCompletionSuggestionAccepted();
|
|
@@ -281,8 +278,16 @@ export class AiCodeCompletionPlugin extends Plugin {
|
|
|
281
278
|
this.#aidaAvailability = currentAidaAvailability;
|
|
282
279
|
if (this.#aidaAvailability === Host.AidaClient.AidaAccessPreconditions.AVAILABLE) {
|
|
283
280
|
this.#onAiCodeCompletionSettingChanged();
|
|
281
|
+
if (this.#editor?.state.doc.length === 0) {
|
|
282
|
+
this.#addTeaserPluginToCompartmentImmediate(this.#editor?.editor);
|
|
283
|
+
}
|
|
284
284
|
} else if (this.#aiCodeCompletion) {
|
|
285
285
|
this.#cleanupAiCodeCompletion();
|
|
286
|
+
if (this.#teaser) {
|
|
287
|
+
this.#editor?.dispatch({
|
|
288
|
+
effects: this.#teaserCompartment.reconfigure([]),
|
|
289
|
+
});
|
|
290
|
+
}
|
|
286
291
|
}
|
|
287
292
|
}
|
|
288
293
|
}
|
|
@@ -1212,6 +1212,11 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
1212
1212
|
this.sidebarPaneView.detach();
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
+
if (Root.Runtime.Runtime.isTraceApp()) {
|
|
1216
|
+
this.splitWidget.hideSidebar();
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1215
1220
|
this.splitWidget.setVertical(!vertically);
|
|
1216
1221
|
this.splitWidget.element.classList.toggle('sources-split-view-vertical', vertically);
|
|
1217
1222
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
|
+
import * as Root from '../../core/root/root.js';
|
|
8
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
10
|
import * as Breakpoints from '../../models/breakpoints/breakpoints.js';
|
|
10
11
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
@@ -528,6 +529,7 @@ UI.ViewManager.registerViewExtension({
|
|
|
528
529
|
title: i18nLazyString(UIStrings.snippets),
|
|
529
530
|
order: 6,
|
|
530
531
|
persistence: UI.ViewManager.ViewPersistence.PERMANENT,
|
|
532
|
+
condition: () => !Root.Runtime.Runtime.isTraceApp(),
|
|
531
533
|
async loadView() {
|
|
532
534
|
const Sources = await loadSourcesModule();
|
|
533
535
|
return new Sources.SourcesNavigator.SnippetsNavigatorView();
|
|
@@ -1280,18 +1282,17 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
1280
1282
|
title: i18nLazyString(UIStrings.createNewSnippet),
|
|
1281
1283
|
});
|
|
1282
1284
|
|
|
1283
|
-
|
|
1284
|
-
UI.ActionRegistration.
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}
|
|
1285
|
+
UI.ActionRegistration.registerActionExtension({
|
|
1286
|
+
category: UI.ActionRegistration.ActionCategory.SOURCES,
|
|
1287
|
+
actionId: 'sources.add-folder-to-workspace',
|
|
1288
|
+
condition: () => !Host.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode(),
|
|
1289
|
+
async loadActionDelegate() {
|
|
1290
|
+
const Sources = await loadSourcesModule();
|
|
1291
|
+
return new Sources.SourcesNavigator.ActionDelegate();
|
|
1292
|
+
},
|
|
1293
|
+
iconClass: UI.ActionRegistration.IconClass.PLUS,
|
|
1294
|
+
title: i18nLazyString(UIStrings.addFolderToWorkspace),
|
|
1295
|
+
});
|
|
1295
1296
|
|
|
1296
1297
|
UI.ActionRegistration.registerActionExtension({
|
|
1297
1298
|
category: UI.ActionRegistration.ActionCategory.DEBUGGER,
|
|
@@ -1468,9 +1468,8 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1468
1468
|
metadata.enhancedTraceVersion =
|
|
1469
1469
|
includeScriptContent ? SDK.EnhancedTracesParser.EnhancedTracesParser.enhancedTraceVersion : undefined;
|
|
1470
1470
|
|
|
1471
|
-
let fileName =
|
|
1472
|
-
|
|
1473
|
-
`Trace-${isoDate}.json`) as Platform.DevToolsPath.RawPathString;
|
|
1471
|
+
let fileName =
|
|
1472
|
+
(isCpuProfile ? `CPU-${isoDate}.cpuprofile` : `Trace-${isoDate}.json`) as Platform.DevToolsPath.RawPathString;
|
|
1474
1473
|
|
|
1475
1474
|
let blobParts: string[] = [];
|
|
1476
1475
|
if (isCpuProfile) {
|
|
@@ -1638,6 +1637,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
1638
1637
|
const url = new URL(window.location.href);
|
|
1639
1638
|
const pathToEntrypoint = url.pathname.slice(0, url.pathname.lastIndexOf('/'));
|
|
1640
1639
|
url.pathname = `${pathToEntrypoint}/trace_app.html`;
|
|
1640
|
+
url.search = '';
|
|
1641
1641
|
pathToLaunch = url.toString();
|
|
1642
1642
|
|
|
1643
1643
|
// Clarifying the window the code is referring to
|
|
@@ -11,7 +11,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
11
11
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
12
12
|
import type * as Protocol from '../../generated/protocol.js';
|
|
13
13
|
import * as Trace from '../../models/trace/trace.js';
|
|
14
|
-
import * as CopyToClipboard from '../../ui/components/copy_to_clipboard/copy_to_clipboard.js';
|
|
15
14
|
import type * as Linkifier from '../../ui/components/linkifier/linkifier.js';
|
|
16
15
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
17
16
|
import {html, render} from '../../ui/lit/lit.js';
|
|
@@ -259,7 +258,7 @@ export class TimelineSelectorStatsView extends UI.Widget.VBox {
|
|
|
259
258
|
].join('\t'));
|
|
260
259
|
}
|
|
261
260
|
const data = tableData.join('\n');
|
|
262
|
-
|
|
261
|
+
UI.UIUtils.copyTextToClipboard(data, i18nString(UIStrings.tableCopiedToClipboard));
|
|
263
262
|
});
|
|
264
263
|
}
|
|
265
264
|
|
|
@@ -799,9 +799,9 @@ export class GridNode extends DataGrid.SortableDataGrid.SortableDataGridNode<Gri
|
|
|
799
799
|
const parsedTrace = this.treeView.parsedTrace();
|
|
800
800
|
const target = parsedTrace ? targetForEvent(parsedTrace, event) : null;
|
|
801
801
|
const linkifier = this.treeView.linkifier;
|
|
802
|
-
const
|
|
803
|
-
Boolean(parsedTrace && Tracing.FreshRecording.Tracker.instance().
|
|
804
|
-
this.linkElement = TimelineUIUtils.linkifyTopCallFrame(event, target, linkifier,
|
|
802
|
+
const isFreshOrEnhanced =
|
|
803
|
+
Boolean(parsedTrace && Tracing.FreshRecording.Tracker.instance().recordingIsFreshOrEnhanced(parsedTrace));
|
|
804
|
+
this.linkElement = TimelineUIUtils.linkifyTopCallFrame(event, target, linkifier, isFreshOrEnhanced);
|
|
805
805
|
if (this.linkElement) {
|
|
806
806
|
container.createChild('div', 'activity-link').appendChild(this.linkElement);
|
|
807
807
|
}
|