chrome-devtools-frontend 1.0.1514545 → 1.0.1515796
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/AUTHORS +1 -0
- package/docs/committers_policy.md +1 -1
- package/docs/contributing/infrastructure.md +101 -5
- package/front_end/Images/gdp-logo-dark.png +0 -0
- package/front_end/Images/gdp-logo-light.png +0 -0
- package/front_end/core/common/Settings.ts +11 -32
- package/front_end/entrypoints/main/main-meta.ts +2 -2
- package/front_end/generated/InspectorBackendCommands.js +4 -4
- package/front_end/generated/SupportedCSSProperties.js +12 -0
- package/front_end/generated/protocol.ts +10 -1
- package/front_end/global_typings/global_defs.d.ts +15 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +22 -23
- package/front_end/models/ai_assistance/agents/PerformanceAnnotationsAgent.ts +6 -7
- package/front_end/models/ai_assistance/ai_assistance.ts +3 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +141 -2
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +96 -10
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +123 -55
- package/front_end/models/cpu_profile/ProfileTreeModel.ts +1 -1
- package/front_end/models/extensions/ExtensionPanel.ts +4 -0
- package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +5 -1
- package/front_end/models/javascript_metadata/NativeFunctions.js +7 -7
- package/front_end/models/text_utils/TextUtils.ts +26 -0
- package/front_end/models/trace/Processor.ts +1 -1
- package/front_end/models/trace/helpers/Trace.ts +1 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +9 -7
- package/front_end/models/trace/types/Configuration.ts +12 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +6 -7
- package/front_end/panels/ai_assistance/components/ChatView.ts +1 -2
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +8 -2
- package/front_end/panels/common/BadgeNotification.ts +10 -8
- package/front_end/panels/common/GdpSignUpDialog.ts +25 -16
- package/front_end/panels/common/gdpSignUpDialog.css +10 -14
- package/front_end/panels/console/ConsoleView.ts +4 -0
- package/front_end/panels/elements/ElementsPanel.ts +4 -0
- package/front_end/panels/elements/StylePropertiesSection.ts +4 -4
- package/front_end/panels/network/NetworkConfigView.ts +1 -1
- package/front_end/panels/network/NetworkLogView.ts +2 -2
- package/front_end/panels/network/components/HeaderSectionRow.ts +2 -3
- package/front_end/panels/profiler/HeapProfileView.ts +1 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +5 -1
- package/front_end/panels/profiler/ProfileDataGrid.ts +4 -0
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +7 -29
- package/front_end/panels/profiler/ProfileView.ts +4 -0
- package/front_end/panels/recorder/components/CreateRecordingView.ts +2 -2
- package/front_end/panels/search/SearchView.ts +322 -248
- package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/settings/components/SyncSection.ts +59 -14
- package/front_end/panels/settings/components/syncSection.css +17 -4
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +4 -7
- package/front_end/panels/sources/SourcesView.ts +4 -0
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +2 -2
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +6 -3
- package/front_end/panels/timeline/CountersGraph.ts +5 -5
- package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -3
- package/front_end/panels/timeline/TimelineFlameChartView.ts +9 -4
- package/front_end/panels/timeline/TimelineHistoryManager.ts +2 -2
- package/front_end/panels/timeline/TimelinePanel.ts +4 -3
- package/front_end/panels/timeline/TimelineTreeView.ts +6 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +2 -1
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +2 -2
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +6 -6
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +2 -2
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -3
- package/front_end/panels/timeline/utils/utils.ts +0 -8
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/{panels/timeline/utils → services/tracing}/FreshRecording.ts +1 -1
- package/front_end/services/tracing/tracing.ts +2 -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/README.md +6 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +11 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +30 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- 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/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +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 +5 -0
- 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/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +12 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +22 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +11 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +30 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +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 +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +12 -2
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +13 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +50 -8
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +21 -5
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +12 -0
- package/front_end/ui/components/text_editor/config.ts +66 -16
- package/front_end/ui/legacy/Dialog.ts +38 -13
- package/front_end/ui/legacy/InspectorView.ts +7 -9
- package/front_end/ui/legacy/ProgressIndicator.ts +4 -5
- package/front_end/ui/legacy/SearchableView.ts +73 -55
- package/front_end/ui/legacy/SettingsUI.ts +5 -5
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -4
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +5 -5
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +4 -2
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -4
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +10 -10
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +4 -0
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +4 -0
- package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -4
- package/front_end/ui/legacy/searchableView.css +0 -4
- package/front_end/ui/visual_logging/Debugging.ts +24 -12
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/package.json +3 -3
- package/front_end/Images/src/gdp-logo-standalone.svg +0 -9
- /package/front_end/{panels/timeline/utils → models/ai_assistance/performance}/AICallTree.ts +0 -0
- /package/front_end/{panels/timeline/utils → models/ai_assistance/performance}/AIContext.ts +0 -0
- /package/front_end/{panels/timeline/utils/InsightAIContext.ts → models/ai_assistance/performance/AIQueries.ts} +0 -0
@@ -19,10 +19,6 @@ import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
19
19
|
import styles from './gdpSignUpDialog.css.js';
|
20
20
|
|
21
21
|
const UIStrings = {
|
22
|
-
/**
|
23
|
-
* @description Heading of the Google Developer Program sign up dialog.
|
24
|
-
*/
|
25
|
-
gdpSignUp: 'Google Developer Program',
|
26
22
|
/**
|
27
23
|
* @description Aria label for the Google Developer Program sign up dialog
|
28
24
|
*/
|
@@ -43,8 +39,7 @@ const UIStrings = {
|
|
43
39
|
/**
|
44
40
|
* @description Body for the first section of the GDP sign up dialog.
|
45
41
|
*/
|
46
|
-
designedForSuccessBody:
|
47
|
-
'Grow your skills, build with AI, and receive badges you can showcase in your developer profile',
|
42
|
+
designedForSuccessBody: 'Grow your skills, build with AI, and earn badges you can showcase in your developer profile',
|
48
43
|
/**
|
49
44
|
* @description Title for the second section of the GDP sign up dialog.
|
50
45
|
*/
|
@@ -52,23 +47,32 @@ const UIStrings = {
|
|
52
47
|
/**
|
53
48
|
* @description Body for the second section of the GDP sign up dialog.
|
54
49
|
*/
|
55
|
-
keepUpdatedBody: 'The latest DevTools features, event invites, and tailored insights directly in your inbox',
|
50
|
+
keepUpdatedBody: 'The latest DevTools features, event invites, and tailored insights land directly in your inbox',
|
56
51
|
/**
|
57
52
|
* @description Title for the third section of the GDP sign up dialog.
|
58
53
|
*/
|
59
|
-
|
54
|
+
tailorProfile: 'Tailor your profile',
|
55
|
+
/**
|
56
|
+
* @description Body for the third section of the GDP sign up dialog.
|
57
|
+
*/
|
58
|
+
tailorProfileBody:
|
59
|
+
'The name on your Google Account and your interests will be used in your Google Developer Profile. Your name may appear where you contribute and can be changed at any time.',
|
60
60
|
/**
|
61
61
|
* @description Body for the third section of the GDP sign up dialog.
|
62
62
|
* @example {Content Policy} PH1
|
63
63
|
* @example {Terms of Service} PH2
|
64
64
|
* @example {Privacy Policy} PH3
|
65
65
|
*/
|
66
|
-
|
67
|
-
'By creating a Developer Profile, you agree to the {PH1}. Google’s {PH2} and {PH3} apply to your use of this service.
|
66
|
+
tailorProfileBodyDisclaimer:
|
67
|
+
'By creating a Developer Profile, you agree to the {PH1}. Google’s {PH2} and {PH3} apply to your use of this service.',
|
68
68
|
/**
|
69
69
|
* @description Button text for learning more about the Google Developer Program.
|
70
70
|
*/
|
71
71
|
learnMore: 'Learn more',
|
72
|
+
/**
|
73
|
+
* @description Accessible text for learning more about the Google Developer Program.
|
74
|
+
*/
|
75
|
+
learnMoreAccessibleText: 'Learn more about the Google Developer Program',
|
72
76
|
/**
|
73
77
|
* @description Link text for Content Policy.
|
74
78
|
*/
|
@@ -110,14 +114,14 @@ export const DEFAULT_VIEW: View = (input, _output, target): void => {
|
|
110
114
|
render(
|
111
115
|
html`
|
112
116
|
<style>${styles}</style>
|
113
|
-
<
|
117
|
+
<div class="gdp-sign-up-dialog-header" role="img" tabindex="0" aria-label="Google Developer Program"></div>
|
114
118
|
<div class="main-content">
|
115
119
|
<div class="section">
|
116
120
|
<div class="icon-container">
|
117
121
|
<devtools-icon name="trophy"></devtools-icon>
|
118
122
|
</div>
|
119
123
|
<div class="text-container">
|
120
|
-
<
|
124
|
+
<h2 class="section-title">${i18nString(UIStrings.designedForSuccess)}</h2>
|
121
125
|
<div class="section-text">${i18nString(UIStrings.designedForSuccessBody)}</div>
|
122
126
|
</div>
|
123
127
|
</div>
|
@@ -126,7 +130,7 @@ export const DEFAULT_VIEW: View = (input, _output, target): void => {
|
|
126
130
|
<devtools-icon name="mark-email-unread"></devtools-icon>
|
127
131
|
</div>
|
128
132
|
<div class="text-container">
|
129
|
-
<
|
133
|
+
<h2 class="section-title">${i18nString(UIStrings.keepUpdated)}</h2>
|
130
134
|
<div class="section-text">${i18nString(UIStrings.keepUpdatedBody)}</div>
|
131
135
|
</div>
|
132
136
|
<div class="switch-container">
|
@@ -144,19 +148,24 @@ export const DEFAULT_VIEW: View = (input, _output, target): void => {
|
|
144
148
|
<devtools-icon name="google"></devtools-icon>
|
145
149
|
</div>
|
146
150
|
<div class="text-container">
|
147
|
-
<
|
148
|
-
<div class="section-text"
|
151
|
+
<h2 class="section-title">${i18nString(UIStrings.tailorProfile)}</h2>
|
152
|
+
<div class="section-text">
|
153
|
+
<div>${i18nString(UIStrings.tailorProfileBody)}</div><br/>
|
154
|
+
<div>${i18n.i18n.getFormatLocalizedString(str_, UIStrings.tailorProfileBodyDisclaimer, {
|
149
155
|
PH1: UI.XLink.XLink.create(CONTENT_POLICY_URL, i18nString(UIStrings.contentPolicy), 'link', undefined, 'gdp.content-policy'),
|
150
156
|
PH2: UI.XLink.XLink.create(TERMS_OF_SERVICE_URL, i18nString(UIStrings.termsOfService), 'link',
|
151
157
|
undefined, 'gdp.terms-of-service'),
|
152
158
|
PH3: UI.XLink.XLink.create(PRIVACY_POLICY_URL, i18nString(UIStrings.privacyPolicy), 'link',
|
153
159
|
undefined, 'gdp.privacy-policy'),
|
154
160
|
})}</div>
|
161
|
+
</div>
|
155
162
|
</div>
|
156
163
|
</div>
|
157
164
|
</div>
|
158
165
|
<div class="buttons">
|
159
166
|
<devtools-button
|
167
|
+
aria-label=${i18nString(UIStrings.learnMoreAccessibleText)}
|
168
|
+
.title=${i18nString(UIStrings.learnMoreAccessibleText)}
|
160
169
|
.variant=${Buttons.Button.Variant.OUTLINED}
|
161
170
|
.jslogContext=${'learn-more'}
|
162
171
|
@click=${() => UI.UIUtils.openInNewTab(GDP_PROGRAM_URL as Platform.DevToolsPath.UrlString)}>${i18nString(UIStrings.learnMore)}</devtools-button>
|
@@ -239,6 +248,6 @@ export class GdpSignUpDialog extends UI.Widget.VBox {
|
|
239
248
|
dialog.setDimmed(true);
|
240
249
|
|
241
250
|
new GdpSignUpDialog({dialog}).show(dialog.contentElement);
|
242
|
-
dialog.show();
|
251
|
+
dialog.show(undefined, /* stack */ true);
|
243
252
|
}
|
244
253
|
}
|
@@ -12,23 +12,19 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
.gdp-sign-up-dialog-header {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
background-image: var(--image-file-gdp-logo-light);
|
16
|
+
height: 20px;
|
17
|
+
background-repeat: no-repeat;
|
18
|
+
background-size: contain;
|
19
19
|
margin: 0;
|
20
|
+
|
21
|
+
&:focus-visible {
|
22
|
+
outline: 2px solid var(--sys-color-state-focus-ring);
|
23
|
+
}
|
20
24
|
}
|
21
25
|
|
22
|
-
.gdp-sign-up-dialog-header
|
23
|
-
|
24
|
-
background-image: var(--image-file-gdp-logo-standalone);
|
25
|
-
display: inline-block;
|
26
|
-
width: 34px;
|
27
|
-
height: 15px;
|
28
|
-
background-size: contain;
|
29
|
-
background-repeat: no-repeat;
|
30
|
-
background-position: center;
|
31
|
-
margin-right: var(--sys-size-6);
|
26
|
+
:host-context(.theme-with-dark-background) & .gdp-sign-up-dialog-header {
|
27
|
+
background-image: var(--image-file-gdp-logo-dark);
|
32
28
|
}
|
33
29
|
|
34
30
|
.main-content {
|
@@ -544,8 +544,8 @@ export class StylePropertiesSection {
|
|
544
544
|
}
|
545
545
|
}
|
546
546
|
|
547
|
-
private onKeyDown(event:
|
548
|
-
const keyboardEvent =
|
547
|
+
private onKeyDown(event: KeyboardEvent): void {
|
548
|
+
const keyboardEvent = event;
|
549
549
|
if (UI.UIUtils.isEditing() || !this.editable || keyboardEvent.altKey || keyboardEvent.ctrlKey ||
|
550
550
|
keyboardEvent.metaKey) {
|
551
551
|
return;
|
@@ -1367,12 +1367,12 @@ export class StylePropertiesSection {
|
|
1367
1367
|
private editingMediaTextCommittedForTest(): void {
|
1368
1368
|
}
|
1369
1369
|
|
1370
|
-
private handleSelectorClick(event:
|
1370
|
+
private handleSelectorClick(event: MouseEvent): void {
|
1371
1371
|
const target = (event.target as Element | null);
|
1372
1372
|
if (!target) {
|
1373
1373
|
return;
|
1374
1374
|
}
|
1375
|
-
if (UI.KeyboardShortcut.KeyboardShortcut.eventHasCtrlEquivalentKey(
|
1375
|
+
if (UI.KeyboardShortcut.KeyboardShortcut.eventHasCtrlEquivalentKey(event) && this.navigable &&
|
1376
1376
|
target.classList.contains('simple-selector')) {
|
1377
1377
|
const selectorIndex = this.elementToSelectorIndex.get(target);
|
1378
1378
|
if (selectorIndex) {
|
@@ -274,7 +274,7 @@ export class NetworkConfigView extends UI.Widget.VBox {
|
|
274
274
|
userAgentUpdateButtonStatusText.textContent = '';
|
275
275
|
});
|
276
276
|
|
277
|
-
clientHints.addEventListener('clienthintssubmit',
|
277
|
+
clientHints.addEventListener('clienthintssubmit', event => {
|
278
278
|
const metaData: Protocol.Emulation.UserAgentMetadata = (event as CustomEvent).detail.value;
|
279
279
|
const customUA = customUserAgentSetting.get();
|
280
280
|
userAgentMetadataSetting.set(metaData);
|
@@ -1166,8 +1166,8 @@ export class NetworkLogView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
1166
1166
|
return this.dataGrid;
|
1167
1167
|
}
|
1168
1168
|
|
1169
|
-
private dataGridMouseMove(event:
|
1170
|
-
const mouseEvent =
|
1169
|
+
private dataGridMouseMove(event: MouseEvent): void {
|
1170
|
+
const mouseEvent = event;
|
1171
1171
|
const node = (this.dataGrid.dataGridNodeFromNode((mouseEvent.target as Node)));
|
1172
1172
|
const highlightInitiatorChain = mouseEvent.shiftKey;
|
1173
1173
|
this.setHoveredNode(node as NetworkNode, highlightInitiatorChain);
|
@@ -400,10 +400,9 @@ export class HeaderSectionRow extends HTMLElement {
|
|
400
400
|
this.dispatchEvent(new HeaderRemovedEvent(this.#header.name, this.#header.value || ''));
|
401
401
|
}
|
402
402
|
|
403
|
-
#onKeyDown(event:
|
404
|
-
const keyboardEvent = event as KeyboardEvent;
|
403
|
+
#onKeyDown(event: KeyboardEvent): void {
|
405
404
|
const target = event.target as EditableSpan;
|
406
|
-
if (
|
405
|
+
if (event.key === 'Escape') {
|
407
406
|
event.consume();
|
408
407
|
if (target.matches('.header-name devtools-editable-span')) {
|
409
408
|
target.value = this.#header?.name || '';
|
@@ -303,9 +303,7 @@ export class SamplingHeapProfileTypeBase extends
|
|
303
303
|
const profile = await this.stopSampling();
|
304
304
|
if (recordedProfile) {
|
305
305
|
console.assert(profile !== undefined);
|
306
|
-
|
307
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
308
|
-
recordedProfile.setProtocolProfile((profile as any));
|
306
|
+
recordedProfile.setProtocolProfile(profile as unknown as Protocol.Profiler.Profile);
|
309
307
|
recordedProfile.updateStatus('');
|
310
308
|
this.setProfileBeingRecorded(null);
|
311
309
|
}
|
@@ -622,6 +622,10 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
622
622
|
return true;
|
623
623
|
}
|
624
624
|
|
625
|
+
supportsWholeWordSearch(): boolean {
|
626
|
+
return false;
|
627
|
+
}
|
628
|
+
|
625
629
|
supportsRegexSearch(): boolean {
|
626
630
|
return false;
|
627
631
|
}
|
@@ -639,7 +643,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
639
643
|
|
640
644
|
performSearch(searchConfig: UI.SearchableView.SearchConfig, shouldJump: boolean, jumpBackwards?: boolean): void {
|
641
645
|
const nextQuery = new HeapSnapshotModel.HeapSnapshotModel.SearchConfig(
|
642
|
-
searchConfig.query.trim(), searchConfig.caseSensitive, searchConfig.isRegex, shouldJump,
|
646
|
+
searchConfig.query.trim(), searchConfig.caseSensitive, searchConfig.wholeWord, searchConfig.isRegex, shouldJump,
|
643
647
|
jumpBackwards || false);
|
644
648
|
|
645
649
|
void this.searchThrottler.schedule(this.performSearchInternal.bind(this, nextQuery));
|
@@ -1,32 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
* Redistribution and use in source and binary forms, with or without
|
5
|
-
* modification, are permitted provided that the following conditions are
|
6
|
-
* met:
|
7
|
-
*
|
8
|
-
* * Redistributions of source code must retain the above copyright
|
9
|
-
* notice, this list of conditions and the following disclaimer.
|
10
|
-
* * Redistributions in binary form must reproduce the above
|
11
|
-
* copyright notice, this list of conditions and the following disclaimer
|
12
|
-
* in the documentation and/or other materials provided with the
|
13
|
-
* distribution.
|
14
|
-
* * Neither the name of Google Inc. nor the names of its
|
15
|
-
* contributors may be used to endorse or promote products derived from
|
16
|
-
* this software without specific prior written permission.
|
17
|
-
*
|
18
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
-
*/
|
1
|
+
// Copyright 2014 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.
|
30
4
|
/* eslint-disable rulesdir/no-imperative-dom-api */
|
31
5
|
|
32
6
|
import * as Common from '../../core/common/common.js';
|
@@ -262,6 +236,10 @@ export class ProfileFlameChart extends
|
|
262
236
|
return true;
|
263
237
|
}
|
264
238
|
|
239
|
+
supportsWholeWordSearch(): boolean {
|
240
|
+
return false;
|
241
|
+
}
|
242
|
+
|
265
243
|
supportsRegexSearch(): boolean {
|
266
244
|
return false;
|
267
245
|
}
|
@@ -162,13 +162,13 @@ export class CreateRecordingView extends HTMLElement {
|
|
162
162
|
this.#defaultRecordingName = this.#recorderSettings.defaultTitle;
|
163
163
|
}
|
164
164
|
|
165
|
-
#onKeyDown(event:
|
165
|
+
#onKeyDown(event: KeyboardEvent): void {
|
166
166
|
if (this.#error) {
|
167
167
|
this.#error = undefined;
|
168
168
|
this.#render();
|
169
169
|
}
|
170
170
|
|
171
|
-
const keyboardEvent = event
|
171
|
+
const keyboardEvent = event;
|
172
172
|
if (keyboardEvent.key === 'Enter') {
|
173
173
|
this.startRecording();
|
174
174
|
event.stopPropagation();
|