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.
Files changed (163) hide show
  1. package/AUTHORS +1 -0
  2. package/docs/committers_policy.md +1 -1
  3. package/docs/contributing/infrastructure.md +101 -5
  4. package/front_end/Images/gdp-logo-dark.png +0 -0
  5. package/front_end/Images/gdp-logo-light.png +0 -0
  6. package/front_end/core/common/Settings.ts +11 -32
  7. package/front_end/entrypoints/main/main-meta.ts +2 -2
  8. package/front_end/generated/InspectorBackendCommands.js +4 -4
  9. package/front_end/generated/SupportedCSSProperties.js +12 -0
  10. package/front_end/generated/protocol.ts +10 -1
  11. package/front_end/global_typings/global_defs.d.ts +15 -1
  12. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +22 -23
  13. package/front_end/models/ai_assistance/agents/PerformanceAnnotationsAgent.ts +6 -7
  14. package/front_end/models/ai_assistance/ai_assistance.ts +3 -0
  15. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +141 -2
  16. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +96 -10
  17. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +123 -55
  18. package/front_end/models/cpu_profile/ProfileTreeModel.ts +1 -1
  19. package/front_end/models/extensions/ExtensionPanel.ts +4 -0
  20. package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +5 -1
  21. package/front_end/models/javascript_metadata/NativeFunctions.js +7 -7
  22. package/front_end/models/text_utils/TextUtils.ts +26 -0
  23. package/front_end/models/trace/Processor.ts +1 -1
  24. package/front_end/models/trace/helpers/Trace.ts +1 -1
  25. package/front_end/models/trace/insights/DocumentLatency.ts +9 -7
  26. package/front_end/models/trace/types/Configuration.ts +12 -0
  27. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +6 -7
  28. package/front_end/panels/ai_assistance/components/ChatView.ts +1 -2
  29. package/front_end/panels/application/components/BackForwardCacheStrings.ts +8 -2
  30. package/front_end/panels/common/BadgeNotification.ts +10 -8
  31. package/front_end/panels/common/GdpSignUpDialog.ts +25 -16
  32. package/front_end/panels/common/gdpSignUpDialog.css +10 -14
  33. package/front_end/panels/console/ConsoleView.ts +4 -0
  34. package/front_end/panels/elements/ElementsPanel.ts +4 -0
  35. package/front_end/panels/elements/StylePropertiesSection.ts +4 -4
  36. package/front_end/panels/network/NetworkConfigView.ts +1 -1
  37. package/front_end/panels/network/NetworkLogView.ts +2 -2
  38. package/front_end/panels/network/components/HeaderSectionRow.ts +2 -3
  39. package/front_end/panels/profiler/HeapProfileView.ts +1 -3
  40. package/front_end/panels/profiler/HeapSnapshotView.ts +5 -1
  41. package/front_end/panels/profiler/ProfileDataGrid.ts +4 -0
  42. package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +7 -29
  43. package/front_end/panels/profiler/ProfileView.ts +4 -0
  44. package/front_end/panels/recorder/components/CreateRecordingView.ts +2 -2
  45. package/front_end/panels/search/SearchView.ts +322 -248
  46. package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
  47. package/front_end/panels/settings/SettingsScreen.ts +1 -1
  48. package/front_end/panels/settings/components/SyncSection.ts +59 -14
  49. package/front_end/panels/settings/components/syncSection.css +17 -4
  50. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +4 -7
  51. package/front_end/panels/sources/SourcesView.ts +4 -0
  52. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +2 -2
  53. package/front_end/panels/timeline/CompatibilityTracksAppender.ts +6 -3
  54. package/front_end/panels/timeline/CountersGraph.ts +5 -5
  55. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  56. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -3
  57. package/front_end/panels/timeline/TimelineFlameChartView.ts +9 -4
  58. package/front_end/panels/timeline/TimelineHistoryManager.ts +2 -2
  59. package/front_end/panels/timeline/TimelinePanel.ts +4 -3
  60. package/front_end/panels/timeline/TimelineTreeView.ts +6 -2
  61. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -1
  62. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +2 -2
  63. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +6 -6
  64. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +2 -2
  65. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -3
  66. package/front_end/panels/timeline/utils/utils.ts +0 -8
  67. package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
  68. package/front_end/{panels/timeline/utils → services/tracing}/FreshRecording.ts +1 -1
  69. package/front_end/services/tracing/tracing.ts +2 -0
  70. package/front_end/third_party/chromium/README.chromium +1 -1
  71. package/front_end/third_party/puppeteer/README.chromium +2 -2
  72. package/front_end/third_party/puppeteer/package/README.md +6 -3
  73. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +1 -1
  74. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +11 -1
  75. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +2 -2
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +5 -1
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +30 -8
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +1 -3
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts +2 -2
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts +1 -1
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +8 -2
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +5 -1
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +8 -2
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +5 -0
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  101. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +12 -2
  102. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +22 -8
  103. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +1 -1
  104. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +11 -1
  105. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +2 -2
  107. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  108. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +5 -1
  109. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  110. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +30 -8
  111. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  112. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +1 -3
  114. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts +1 -1
  116. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +8 -2
  118. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +5 -1
  120. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
  121. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +8 -2
  122. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  124. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  126. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +5 -0
  127. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/types.d.ts +12 -2
  129. package/front_end/third_party/puppeteer/package/package.json +4 -4
  130. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +1 -1
  131. package/front_end/third_party/puppeteer/package/src/api/Page.ts +13 -2
  132. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +50 -8
  133. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +0 -1
  134. package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +8 -1
  135. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +21 -5
  136. package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
  137. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +12 -0
  138. package/front_end/ui/components/text_editor/config.ts +66 -16
  139. package/front_end/ui/legacy/Dialog.ts +38 -13
  140. package/front_end/ui/legacy/InspectorView.ts +7 -9
  141. package/front_end/ui/legacy/ProgressIndicator.ts +4 -5
  142. package/front_end/ui/legacy/SearchableView.ts +73 -55
  143. package/front_end/ui/legacy/SettingsUI.ts +5 -5
  144. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -4
  145. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +5 -5
  146. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +4 -2
  147. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +2 -2
  148. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +2 -2
  149. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -4
  150. package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
  151. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  152. package/front_end/ui/legacy/components/source_frame/JSONView.ts +10 -10
  153. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +4 -0
  154. package/front_end/ui/legacy/components/source_frame/XMLView.ts +4 -0
  155. package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -4
  156. package/front_end/ui/legacy/searchableView.css +0 -4
  157. package/front_end/ui/visual_logging/Debugging.ts +24 -12
  158. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  159. package/package.json +3 -3
  160. package/front_end/Images/src/gdp-logo-standalone.svg +0 -9
  161. /package/front_end/{panels/timeline/utils → models/ai_assistance/performance}/AICallTree.ts +0 -0
  162. /package/front_end/{panels/timeline/utils → models/ai_assistance/performance}/AIContext.ts +0 -0
  163. /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
- thingsToConsider: 'Things to consider',
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
- thingsToConsiderBody:
67
- 'By creating a Developer Profile, you agree to the {PH1}. Google’s {PH2} and {PH3} apply to your use of this service. 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.',
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
- <h2 class="gdp-sign-up-dialog-header">${i18nString(UIStrings.gdpSignUp)}</h2>
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
- <h3 class="section-title">${i18nString(UIStrings.designedForSuccess)}</h3>
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
- <h3 class="section-title">${i18nString(UIStrings.keepUpdated)}</h3>
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
- <h3 class="section-title">${i18nString(UIStrings.thingsToConsider)}</h3>
148
- <div class="section-text">${i18n.i18n.getFormatLocalizedString(str_, UIStrings.thingsToConsiderBody, {
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
- font: var(--sys-typescale-headline5);
16
- color: var(--sys-color-on-surface);
17
- display: flex;
18
- align-items: center;
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::before {
23
- content: '';
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 {
@@ -1592,6 +1592,10 @@ export class ConsoleView extends UI.Widget.VBox implements
1592
1592
  return true;
1593
1593
  }
1594
1594
 
1595
+ supportsWholeWordSearch(): boolean {
1596
+ return true;
1597
+ }
1598
+
1595
1599
  supportsRegexSearch(): boolean {
1596
1600
  return true;
1597
1601
  }
@@ -713,6 +713,10 @@ export class ElementsPanel extends UI.Panel.Panel implements UI.SearchableView.S
713
713
  return false;
714
714
  }
715
715
 
716
+ supportsWholeWordSearch(): boolean {
717
+ return false;
718
+ }
719
+
716
720
  supportsRegexSearch(): boolean {
717
721
  return false;
718
722
  }
@@ -544,8 +544,8 @@ export class StylePropertiesSection {
544
544
  }
545
545
  }
546
546
 
547
- private onKeyDown(event: Event): void {
548
- const keyboardEvent = (event as 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: Event): void {
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((event as MouseEvent)) && this.navigable &&
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', (event: Event) => {
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: Event): void {
1170
- const mouseEvent = (event as 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: Event): void {
404
- const keyboardEvent = event as KeyboardEvent;
403
+ #onKeyDown(event: KeyboardEvent): void {
405
404
  const target = event.target as EditableSpan;
406
- if (keyboardEvent.key === 'Escape') {
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
- // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
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));
@@ -641,6 +641,10 @@ export class ProfileDataGridTree implements UI.SearchableView.Searchable {
641
641
  return true;
642
642
  }
643
643
 
644
+ supportsWholeWordSearch(): boolean {
645
+ return false;
646
+ }
647
+
644
648
  supportsRegexSearch(): boolean {
645
649
  return false;
646
650
  }
@@ -1,32 +1,6 @@
1
- /**
2
- * Copyright (C) 2014 Google Inc. All rights reserved.
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
  }
@@ -367,6 +367,10 @@ export class ProfileView extends UI.View.SimpleView implements UI.SearchableView
367
367
  return true;
368
368
  }
369
369
 
370
+ supportsWholeWordSearch(): boolean {
371
+ return false;
372
+ }
373
+
370
374
  supportsRegexSearch(): boolean {
371
375
  return false;
372
376
  }
@@ -162,13 +162,13 @@ export class CreateRecordingView extends HTMLElement {
162
162
  this.#defaultRecordingName = this.#recorderSettings.defaultTitle;
163
163
  }
164
164
 
165
- #onKeyDown(event: Event): void {
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 as KeyboardEvent;
171
+ const keyboardEvent = event;
172
172
  if (keyboardEvent.key === 'Enter') {
173
173
  this.startRecording();
174
174
  event.stopPropagation();