chrome-devtools-frontend 1.0.1695017 → 1.0.1696961

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 (247) hide show
  1. package/eslint.config.mjs +4 -1
  2. package/front_end/core/common/Base64.ts +14 -4
  3. package/front_end/core/common/Gzip.ts +1 -1
  4. package/front_end/core/common/Object.ts +0 -1
  5. package/front_end/core/platform/Size.ts +43 -0
  6. package/front_end/core/platform/api/HostRuntime.ts +14 -0
  7. package/front_end/core/platform/browser/HostRuntime.ts +66 -0
  8. package/front_end/core/platform/node/HostRuntime.ts +12 -3
  9. package/front_end/core/platform/platform.ts +1 -0
  10. package/front_end/core/sdk/AccessibilityModel.ts +2 -2
  11. package/front_end/core/sdk/CSSMatchedStyles.ts +2 -0
  12. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +29 -0
  13. package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -2
  14. package/front_end/core/sdk/ConsoleModel.ts +3 -3
  15. package/front_end/core/sdk/DOMModel.ts +10 -6
  16. package/front_end/core/sdk/DebuggerModel.ts +6 -0
  17. package/front_end/core/sdk/NetworkRequest.ts +19 -19
  18. package/front_end/core/sdk/RuntimeModel.ts +5 -0
  19. package/front_end/core/sdk/Script.ts +2 -2
  20. package/front_end/core/sdk/ServerTiming.ts +6 -6
  21. package/front_end/core/sdk/SourceMap.ts +112 -14
  22. package/front_end/core/sdk/SourceMapRangeMappings.ts +43 -0
  23. package/front_end/core/sdk/SourceMapScopeChainEntry.ts +15 -10
  24. package/front_end/core/sdk/SourceMapScopesInfo.ts +92 -10
  25. package/front_end/core/sdk/sdk.ts +2 -0
  26. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -1
  27. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +6 -6
  28. package/front_end/entrypoints/main/MainImpl.ts +1 -1
  29. package/front_end/generated/InspectorBackendCommands.ts +6 -3
  30. package/front_end/generated/protocol-mapping.d.ts +7 -0
  31. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  32. package/front_end/generated/protocol.ts +36 -3
  33. package/front_end/models/ai_assistance/AiAgent2.ts +27 -27
  34. package/front_end/models/ai_assistance/agents/AiAgent.ts +4 -0
  35. package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +2 -2
  36. package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +1 -0
  37. package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +5 -4
  38. package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -0
  39. package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +1 -0
  40. package/front_end/models/ai_assistance/contexts/RequestContext.ts +1 -0
  41. package/front_end/models/ai_assistance/contexts/StorageContext.ts +1 -0
  42. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +5 -5
  43. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +6 -6
  44. package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +5 -8
  45. package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +4 -8
  46. package/front_end/models/ai_assistance/tools/GetSourceContent.ts +7 -5
  47. package/front_end/models/ai_assistance/tools/GetStyles.ts +10 -6
  48. package/front_end/models/ai_assistance/tools/ListSources.ts +26 -7
  49. package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +5 -10
  50. package/front_end/models/ai_assistance/tools/Tool.ts +8 -1
  51. package/front_end/models/bindings/FileUtils.ts +18 -40
  52. package/front_end/models/bindings/TempFile.ts +5 -12
  53. package/front_end/models/comment_manager/CommentManager.ts +30 -6
  54. package/front_end/models/crux-manager/CrUXManager.ts +8 -5
  55. package/front_end/models/emulation/DeviceModeModel.ts +55 -105
  56. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +1 -1
  57. package/front_end/models/issues_manager/CookieIssue.ts +1 -1
  58. package/front_end/models/issues_manager/DeprecationIssue.ts +2 -2
  59. package/front_end/models/javascript_metadata/NativeFunctions.ts +1 -5
  60. package/front_end/models/live-metrics/LiveMetrics.ts +1 -1
  61. package/front_end/models/persistence/IsolatedFileSystem.ts +16 -23
  62. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -1
  63. package/front_end/models/trace/insights/INPBreakdown.ts +1 -1
  64. package/front_end/models/trace/insights/ImageDelivery.ts +3 -3
  65. package/front_end/models/trace/insights/LCPDiscovery.ts +2 -2
  66. package/front_end/models/trace/insights/NetworkDependencyTree.ts +3 -3
  67. package/front_end/models/trace/insights/Viewport.ts +1 -1
  68. package/front_end/models/trace/types/Overlays.ts +2 -2
  69. package/front_end/panels/accessibility/AccessibilityNodeView.ts +2 -2
  70. package/front_end/panels/accessibility/AccessibilitySubPane.ts +0 -1
  71. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +74 -18
  72. package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +14 -3
  73. package/front_end/panels/ai_assistance/components/ChatInput.ts +1 -1
  74. package/front_end/panels/ai_assistance/components/ChatMessage.ts +1 -1
  75. package/front_end/panels/animation/AnimationUI.ts +1 -1
  76. package/front_end/panels/application/AppManifestView.ts +9 -11
  77. package/front_end/panels/application/ApplicationPanelSidebar.ts +9 -9
  78. package/front_end/panels/application/BackgroundServiceView.ts +1 -1
  79. package/front_end/panels/application/CookieItemsView.ts +1 -1
  80. package/front_end/panels/application/DOMStorageItemsView.ts +1 -1
  81. package/front_end/panels/application/DeviceBoundSessionsView.ts +2 -2
  82. package/front_end/panels/application/FrameDetailsView.ts +5 -5
  83. package/front_end/panels/application/IndexedDBViews.ts +2 -2
  84. package/front_end/panels/application/KeyValueStorageItemsView.ts +1 -2
  85. package/front_end/panels/application/ReportingApiView.ts +1 -1
  86. package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +1 -1
  87. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  88. package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
  89. package/front_end/panels/application/WebMCPView.ts +1 -1
  90. package/front_end/panels/application/components/AdsView.ts +136 -7
  91. package/front_end/panels/application/components/BackForwardCacheStrings.ts +116 -117
  92. package/front_end/panels/application/components/BackForwardCacheView.ts +7 -7
  93. package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +2 -2
  94. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  95. package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
  96. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  97. package/front_end/panels/application/components/StorageMetadataView.ts +1 -1
  98. package/front_end/panels/application/components/TrustTokensView.ts +3 -3
  99. package/front_end/panels/application/components/adScriptsTable.css +22 -0
  100. package/front_end/panels/application/preloading/PreloadingView.ts +20 -22
  101. package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +9 -9
  102. package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +31 -33
  103. package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +23 -23
  104. package/front_end/panels/application/preloading/components/PreloadingGrid.ts +4 -4
  105. package/front_end/panels/application/preloading/components/PreloadingString.ts +161 -161
  106. package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -6
  107. package/front_end/panels/application/preloading/components/RuleSetGrid.ts +8 -8
  108. package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +32 -32
  109. package/front_end/panels/application/resourcesPanel.css +17 -17
  110. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
  111. package/front_end/panels/changes/ChangesView.ts +1 -1
  112. package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +1 -1
  113. package/front_end/panels/common/CPUThrottlingOption.ts +0 -1
  114. package/front_end/panels/common/GdpSignUpDialog.ts +3 -4
  115. package/front_end/panels/common/GeminiRebrandPromoDialog.ts +1 -1
  116. package/front_end/panels/console/ConsoleInsightTeaser.ts +1 -1
  117. package/front_end/panels/console/ConsolePinPane.ts +0 -1
  118. package/front_end/panels/console/ConsoleView.ts +2 -3
  119. package/front_end/panels/console/ConsoleViewMessage.ts +2 -3
  120. package/front_end/panels/coverage/CoverageListView.ts +6 -6
  121. package/front_end/panels/coverage/CoverageView.ts +7 -7
  122. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
  123. package/front_end/panels/elements/CSSRuleValidator.ts +10 -10
  124. package/front_end/panels/elements/ElementsPanel.ts +3 -3
  125. package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
  126. package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
  127. package/front_end/panels/elements/LayoutPane.ts +1 -1
  128. package/front_end/panels/elements/StylePropertyTreeElement.ts +85 -2
  129. package/front_end/panels/elements/StylesSidebarPane.ts +3 -3
  130. package/front_end/panels/elements/stylePropertiesTreeOutline.css +2 -1
  131. package/front_end/panels/emulation/DeviceModeView.ts +1 -1
  132. package/front_end/panels/event_listeners/EventListenersView.ts +57 -89
  133. package/front_end/panels/explain/components/ConsoleInsight.ts +4 -4
  134. package/front_end/panels/issues/AffectedPartitioningBlobURLView.ts +3 -3
  135. package/front_end/panels/issues/IssuesPane.ts +1 -1
  136. package/front_end/panels/layer_viewer/Layers3DView.ts +4 -4
  137. package/front_end/panels/layers/LayerTreeModel.ts +1 -1
  138. package/front_end/panels/lighthouse/LighthouseController.ts +4 -4
  139. package/front_end/panels/lighthouse/LighthouseStatusView.ts +10 -10
  140. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +2 -2
  141. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +1 -1
  142. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +1 -1
  143. package/front_end/panels/media/MainView.ts +2 -2
  144. package/front_end/panels/mobile_throttling/CalibrationController.ts +4 -1
  145. package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
  146. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +10 -0
  147. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +3 -3
  148. package/front_end/panels/network/NetworkConfigView.ts +26 -16
  149. package/front_end/panels/network/NetworkItemView.ts +1 -1
  150. package/front_end/panels/network/NetworkLogView.ts +4 -5
  151. package/front_end/panels/network/NetworkPanel.ts +1 -1
  152. package/front_end/panels/network/RequestConditionsDrawer.ts +3 -3
  153. package/front_end/panels/network/RequestCookiesView.ts +2 -2
  154. package/front_end/panels/network/RequestPayloadView.ts +0 -2
  155. package/front_end/panels/network/RequestTimingView.ts +1 -1
  156. package/front_end/panels/network/ResourceChunkView.ts +1 -1
  157. package/front_end/panels/network/components/HeaderSectionRow.ts +2 -2
  158. package/front_end/panels/network/components/RequestHeaderSection.ts +1 -1
  159. package/front_end/panels/network/components/RequestTrustTokensView.ts +7 -7
  160. package/front_end/panels/network/components/ResponseHeaderSection.ts +3 -4
  161. package/front_end/panels/network/network-meta.ts +1 -1
  162. package/front_end/panels/profiler/HeapDetachedElementsView.ts +1 -1
  163. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +10 -10
  164. package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
  165. package/front_end/panels/profiler/IsolateSelector.ts +4 -4
  166. package/front_end/panels/profiler/ModuleUIStrings.ts +1 -1
  167. package/front_end/panels/profiler/ProfilesPanel.ts +2 -3
  168. package/front_end/panels/recorder/RecorderPanel.ts +1 -1
  169. package/front_end/panels/search/SearchView.ts +6 -6
  170. package/front_end/panels/security/SecurityModel.ts +4 -4
  171. package/front_end/panels/security/SecurityPanel.ts +83 -54
  172. package/front_end/panels/security/SecurityPanelSidebar.ts +41 -5
  173. package/front_end/panels/security/sidebar.css +9 -10
  174. package/front_end/panels/sensors/SensorsView.ts +1 -1
  175. package/front_end/panels/settings/AISettingsTab.ts +9 -9
  176. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +1 -1
  177. package/front_end/panels/settings/KeybindsSettingsTab.ts +2 -2
  178. package/front_end/panels/settings/SettingsScreen.ts +156 -109
  179. package/front_end/panels/settings/WorkspaceSettingsTab.ts +1 -1
  180. package/front_end/panels/settings/components/SyncSection.ts +3 -3
  181. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +13 -13
  182. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +2 -2
  183. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  184. package/front_end/panels/sources/CSSPlugin.ts +3 -3
  185. package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
  186. package/front_end/panels/sources/NavigatorView.ts +3 -3
  187. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  188. package/front_end/panels/sources/PersistenceActions.ts +2 -2
  189. package/front_end/panels/sources/SourcesNavigator.ts +5 -5
  190. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  191. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +0 -1
  192. package/front_end/panels/sources/components/HeadersView.ts +1 -1
  193. package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +1 -1
  194. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +1 -1
  195. package/front_end/panels/timeline/TimelineUIUtils.ts +0 -1
  196. package/front_end/panels/timeline/components/ExportTraceOptions.ts +2 -2
  197. package/front_end/panels/timeline/components/FieldSettingsDialog.ts +4 -4
  198. package/front_end/panels/timeline/components/IgnoreListSetting.ts +1 -1
  199. package/front_end/panels/timeline/components/LiveMetricsView.ts +7 -7
  200. package/front_end/panels/timeline/components/MetricCard.ts +3 -3
  201. package/front_end/panels/timeline/components/MetricCompareStrings.ts +12 -14
  202. package/front_end/panels/timeline/components/OriginMap.ts +3 -3
  203. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +4 -4
  204. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +6 -0
  205. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +1 -1
  206. package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +3 -1
  207. package/front_end/panels/timeline/timelineMiniMap.css +9 -9
  208. package/front_end/panels/timeline/timelineStatusDialog.css +9 -9
  209. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  210. package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
  211. package/front_end/third_party/chromium/README.chromium +1 -1
  212. package/front_end/ui/comments/CommentAnchorResolver.ts +114 -3
  213. package/front_end/ui/comments/CommentOverlayManager.ts +95 -16
  214. package/front_end/ui/components/dialogs/TypeToAllowDialog.ts +1 -1
  215. package/front_end/ui/components/markdown_view/codeBlock.css +3 -8
  216. package/front_end/ui/components/markdown_view/markdownView.css +2 -7
  217. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +2 -2
  218. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  219. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
  220. package/front_end/ui/components/text_editor/AiCodeCompletionTeaser.ts +4 -4
  221. package/front_end/ui/components/text_editor/AiCodeGenerationTeaser.ts +3 -3
  222. package/front_end/{models → ui}/geometry/GeometryImpl.ts +4 -40
  223. package/front_end/ui/legacy/GlassPane.ts +1 -1
  224. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -2
  225. package/front_end/ui/legacy/SoftDropDown.ts +1 -1
  226. package/front_end/ui/legacy/SplitWidget.ts +1 -1
  227. package/front_end/ui/legacy/SuggestBox.ts +1 -1
  228. package/front_end/ui/legacy/TabbedPane.ts +1 -1
  229. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
  230. package/front_end/ui/legacy/Treeoutline.ts +5 -1
  231. package/front_end/ui/legacy/UIUtils.ts +1 -1
  232. package/front_end/ui/legacy/Widget.ts +1 -1
  233. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  234. package/front_end/ui/legacy/components/inline_editor/AnimationTimingModel.ts +1 -1
  235. package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +1 -1
  236. package/front_end/ui/legacy/components/inline_editor/BezierUI.ts +1 -1
  237. package/front_end/ui/legacy/components/inline_editor/CSSAngleUtils.ts +1 -1
  238. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  239. package/front_end/ui/legacy/components/inline_editor/PositionAreaEditor.ts +204 -17
  240. package/front_end/ui/legacy/components/inline_editor/positionAreaEditor.css +6 -0
  241. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  242. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +1 -1
  243. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +7 -9
  244. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
  245. package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
  246. package/package.json +7 -4
  247. /package/front_end/{models → ui}/geometry/geometry.ts +0 -0
@@ -105,19 +105,19 @@ const UIStrings = {
105
105
  /**
106
106
  * @description Warning/error text displayed when a node cannot be found in the current page.
107
107
  */
108
- nodeCannotBeFoundInTheCurrent: 'Node cannot be found in the current page.',
108
+ nodeCannotBeFoundInTheCurrent: 'Node cannot be found in the current page',
109
109
  /**
110
110
  * @description Console warning when a user tries to reveal a non-node type Remote Object. A remote
111
111
  * object is a JavaScript object that is not stored in DevTools, that DevTools has a connection to.
112
112
  * It should correspond to a local node.
113
113
  */
114
- theRemoteObjectCouldNotBe: 'The remote object could not be resolved to a valid node.',
114
+ theRemoteObjectCouldNotBe: 'The remote object could not be resolved to a valid node',
115
115
  /**
116
116
  * @description Console warning when the user tries to reveal a deferred DOM Node that resolves as
117
117
  * null. A deferred DOM node is a node we know about but have not yet fetched from the backend (we
118
118
  * defer the work until later).
119
119
  */
120
- theDeferredDomNodeCouldNotBe: 'The deferred `DOM` Node could not be resolved to a valid node.',
120
+ theDeferredDomNodeCouldNotBe: 'The deferred `DOM` Node could not be resolved to a valid node',
121
121
  /**
122
122
  * @description Text in Elements Panel of the Elements panel. Shows the current CSS Pseudo-classes
123
123
  * applicable to the selected HTML element.
@@ -104,7 +104,7 @@ const UIStrings = {
104
104
  * @description Hint element title in the DOM tree of the Elements panel.
105
105
  * @example {0} PH1
106
106
  */
107
- useSInTheConsoleToReferToThis: 'Use {PH1} in the console to refer to this element.',
107
+ useSInTheConsoleToReferToThis: 'Use {PH1} in the console to refer to this element',
108
108
  /**
109
109
  * @description Text to cut an element, cut should be used as a verb.
110
110
  */
@@ -2089,7 +2089,7 @@ export class DOMTreeWidget extends UI.Widget.Widget {
2089
2089
  }
2090
2090
 
2091
2091
  duplicateNode(node: SDK.DOMModel.DOMNode): void {
2092
- node.duplicate();
2092
+ void node.duplicate();
2093
2093
  }
2094
2094
 
2095
2095
  nodeBeingDragged(): SDK.DOMModel.DOMNode|null {
@@ -56,7 +56,7 @@ const UIStrings = {
56
56
  /**
57
57
  * @description Screen reader announcement when opening color picker tool.
58
58
  */
59
- colorPickerOpened: 'Color picker opened.',
59
+ colorPickerOpened: 'Color picker opened',
60
60
  } as const;
61
61
  const str_ = i18n.i18n.registerUIStrings('panels/elements/LayoutPane.ts', UIStrings);
62
62
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -61,7 +61,7 @@ const UIStrings = {
61
61
  /**
62
62
  * @description Text in the color swatch popover icon of the Elements panel.
63
63
  */
64
- shiftClickToChangeColorFormat: 'Shift + Click to change color format.',
64
+ shiftClickToChangeColorFormat: 'Shift + Click to change color format',
65
65
  /**
66
66
  * @description Swatch icon element title in the color swatch popover icon of the Elements panel.
67
67
  * @example {Shift + Click to change color format.} PH1
@@ -102,7 +102,7 @@ const UIStrings = {
102
102
  /**
103
103
  * @description Tooltip text for a style property overridden by an animation.
104
104
  */
105
- overriddenByAnimation: 'Overridden by animation styles.',
105
+ overriddenByAnimation: 'Overridden by animation styles',
106
106
  /**
107
107
  * @description Link text in the tooltip to open the Animations panel.
108
108
  */
@@ -119,6 +119,10 @@ const UIStrings = {
119
119
  * @description Title of the button that opens the CSS Grid Lanes editor in the Styles tab of the Elements panel.
120
120
  */
121
121
  gridLanesEditorButton: 'Open `grid-lanes` editor',
122
+ /**
123
+ * @description Title of the button that opens the CSS position-area editor in the Styles tab of the Elements panel.
124
+ */
125
+ positionAreaEditorButton: 'Open `position-area` editor',
122
126
  /**
123
127
  * @description A context menu item in the Styles tab of the Elements panel to copy CSS declaration as JavaScript property.
124
128
  */
@@ -2079,6 +2083,84 @@ export class PositionAnchorRenderer extends PositionAnchorRendererBase {
2079
2083
  }
2080
2084
  }
2081
2085
 
2086
+ const PositionAreaRendererBase: RendererBase<SDK.CSSPropertyParserMatchers.PositionAreaMatch> =
2087
+ rendererBase(SDK.CSSPropertyParserMatchers.PositionAreaMatch);
2088
+ // clang-format off
2089
+ export class PositionAreaRenderer extends PositionAreaRendererBase {
2090
+ // clang-format on
2091
+ readonly #treeElement: StylePropertyTreeElement|null;
2092
+ readonly #stylesContainer: StylesContainer;
2093
+ constructor(stylesContainer: StylesContainer, treeElement: StylePropertyTreeElement|null) {
2094
+ super();
2095
+ this.#treeElement = treeElement;
2096
+ this.#stylesContainer = stylesContainer;
2097
+ }
2098
+
2099
+ override render(match: SDK.CSSPropertyParserMatchers.PositionAreaMatch, context: RenderingContext): Node[] {
2100
+ const children = Renderer.render(ASTUtils.siblings(ASTUtils.declValue(match.node)), context).nodes;
2101
+ if (!this.#treeElement?.editable() || !InlineEditor.PositionAreaEditor.parsePositionArea(match.text)) {
2102
+ return children;
2103
+ }
2104
+
2105
+ const valueElement = document.createElement('span');
2106
+ valueElement.append(...children);
2107
+
2108
+ const button = createIcon('grid-on', 'position-area-swatch-icon');
2109
+ button.title = i18nString(UIStrings.positionAreaEditorButton);
2110
+ button.role = 'button';
2111
+ button.tabIndex = -1;
2112
+ button.setAttribute('jslog', `${VisualLogging.showStyleEditor().track({click: true}).context('position-area')}`);
2113
+
2114
+ const treeElement = this.#treeElement;
2115
+ button.onclick = event => {
2116
+ event.consume(true);
2117
+ const popoverHelper = this.#stylesContainer.swatchPopoverHelper();
2118
+ if (popoverHelper.isShowing()) {
2119
+ popoverHelper.hide(true);
2120
+ return;
2121
+ }
2122
+ const editor = new InlineEditor.PositionAreaEditor.PositionAreaEditor();
2123
+ editor.area = InlineEditor.PositionAreaEditor.parsePositionArea(valueElement.textContent ?? '') ?? undefined;
2124
+
2125
+ const onPositionAreaChanged =
2126
+ (changeEvent: Common.EventTarget.EventTargetEvent<InlineEditor.PositionAreaEditor.Area>): void => {
2127
+ valueElement.textContent = InlineEditor.PositionAreaEditor.stringifyPositionArea(changeEvent.data);
2128
+ void treeElement.applyStyleText(treeElement.renderedPropertyText(), false);
2129
+ };
2130
+ editor.addEventListener(InlineEditor.PositionAreaEditor.Events.POSITION_AREA_CHANGED, onPositionAreaChanged);
2131
+
2132
+ const scrollerElement = button.enclosingNodeOrSelfWithClass('style-panes-wrapper');
2133
+ const onScroll = (): void => {
2134
+ popoverHelper.hide(true);
2135
+ };
2136
+ if (scrollerElement) {
2137
+ scrollerElement.addEventListener('scroll', onScroll, false);
2138
+ }
2139
+
2140
+ const originalPropertyText = treeElement.property.propertyText;
2141
+ this.#stylesContainer.setEditingStyle(true);
2142
+
2143
+ popoverHelper.show(editor, button, commitEdit => {
2144
+ if (scrollerElement) {
2145
+ scrollerElement.removeEventListener('scroll', onScroll, false);
2146
+ }
2147
+ editor.removeEventListener(InlineEditor.PositionAreaEditor.Events.POSITION_AREA_CHANGED, onPositionAreaChanged);
2148
+ const propertyText = commitEdit ? treeElement.renderedPropertyText() : originalPropertyText || '';
2149
+ void treeElement.applyStyleText(propertyText, true);
2150
+ this.#stylesContainer.setEditingStyle(false);
2151
+ });
2152
+ };
2153
+ button.onmousedown = event => {
2154
+ event.consume();
2155
+ };
2156
+ button.onmouseup = event => {
2157
+ event.consume();
2158
+ };
2159
+
2160
+ return [button, valueElement];
2161
+ }
2162
+ }
2163
+
2082
2164
  const PositionTryRendererBase: RendererBase<SDK.CSSPropertyParserMatchers.PositionTryMatch> =
2083
2165
  rendererBase(SDK.CSSPropertyParserMatchers.PositionTryMatch);
2084
2166
  // clang-format off
@@ -2137,6 +2219,7 @@ export function getPropertyRenderers(
2137
2219
  new AnchorFunctionRenderer(stylesContainer),
2138
2220
  new PositionAnchorRenderer(stylesContainer),
2139
2221
  new FlexGridRenderer(stylesContainer, treeElement),
2222
+ new PositionAreaRenderer(stylesContainer, treeElement),
2140
2223
  new EnvFunctionRenderer(treeElement, matchedStyles, computedStyles, computedStyleExtraFields),
2141
2224
  new PositionTryRenderer(matchedStyles),
2142
2225
  new LengthRenderer(stylesContainer, propertyName, treeElement),
@@ -110,14 +110,14 @@ const UIStrings = {
110
110
  * @example {Alt} PH2
111
111
  */
112
112
  incrementdecrementWithMousewheelOne:
113
- 'Increment/decrement with mousewheel or up/down keys. {PH1}: R ±1, Shift: G ±1, {PH2}: B ±1',
113
+ 'Increment/decrement with mousewheel or up/down keys. {PH1}: R ±1, Shift: G ±1, {PH2}: B ±1.',
114
114
  /**
115
115
  * @description Tooltip for color values in the Styles tab of the Elements panel.
116
116
  * @example {Ctrl} PH1
117
117
  * @example {Alt} PH2
118
118
  */
119
119
  incrementdecrementWithMousewheelHundred:
120
- 'Increment/decrement with mousewheel or up/down keys. {PH1}: ±100, Shift: ±10, {PH2}: ±0.1',
120
+ 'Increment/decrement with mousewheel or up/down keys. {PH1}: ±100, Shift: ±10, {PH2}: ±0.1.',
121
121
  /**
122
122
  * @description Tooltip text that appears when hovering over the rendering button in the Styles tab of the Elements panel.
123
123
  */
@@ -138,7 +138,7 @@ const UIStrings = {
138
138
  * @description Text to announce that the AI suggestion was accepted.
139
139
  * @example {color: blue;} PH1
140
140
  */
141
- aiSuggestionAccepted: '{PH1} Suggestion accepted.',
141
+ aiSuggestionAccepted: '{PH1} Suggestion accepted',
142
142
  /**
143
143
  * @description Title of the general at-rule section.
144
144
  */
@@ -330,7 +330,8 @@ devtools-icon.open-in-animations-panel {
330
330
  text-decoration: underline dotted var(--sys-color-token-meta);
331
331
  }
332
332
 
333
- devtools-icon.bezier-swatch-icon {
333
+ devtools-icon.bezier-swatch-icon,
334
+ devtools-icon.position-area-swatch-icon {
334
335
  position: relative;
335
336
  transform: scale(0.7);
336
337
  margin: -5px calc(-1 * var(--sys-size-2)) -3px calc(-1 * var(--sys-size-3));
@@ -9,7 +9,7 @@ import * as Root from '../../core/root/root.js';
9
9
  import * as SDK from '../../core/sdk/sdk.js';
10
10
  import type * as Protocol from '../../generated/protocol.js';
11
11
  import * as EmulationModel from '../../models/emulation/emulation.js';
12
- import * as Geometry from '../../models/geometry/geometry.js';
12
+ import * as Geometry from '../../ui/geometry/geometry.js';
13
13
  import * as UI from '../../ui/legacy/legacy.js';
14
14
  import {Directives, html, nothing, render} from '../../ui/lit/lit.js';
15
15
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
@@ -7,17 +7,15 @@ import * as Common from '../../core/common/common.js';
7
7
  import * as i18n from '../../core/i18n/i18n.js';
8
8
  import type * as Platform from '../../core/platform/platform.js';
9
9
  import * as SDK from '../../core/sdk/sdk.js';
10
- import type * as Protocol from '../../generated/protocol.js';
11
10
  import * as Buttons from '../../ui/components/buttons/buttons.js';
12
11
  import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
13
- /* eslint-disable @devtools/es-modules-import */
14
12
  import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.css.js';
15
13
  import * as Components from '../../ui/legacy/components/utils/utils.js';
16
14
  import * as UI from '../../ui/legacy/legacy.js';
17
15
  import {render} from '../../ui/lit/lit.js';
18
16
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
19
17
 
20
- import {frameworkEventListeners, type FrameworkEventListenersObject} from './EventListenersUtils.js';
18
+ import {frameworkEventListeners} from './EventListenersUtils.js';
21
19
  import eventListenersViewStyles from './eventListenersView.css.js';
22
20
 
23
21
  const UIStrings = {
@@ -67,8 +65,8 @@ export class EventListenersView extends UI.Widget.VBox {
67
65
  this.registerRequiredCSS(eventListenersViewStyles);
68
66
  this.emptyHolder = this.element.createChild('div', 'placeholder hidden');
69
67
  this.emptyHolder.createChild('span', 'gray-info-message').textContent = i18nString(UIStrings.noEventListeners);
70
- const emptyWidget = new UI.EmptyWidget.EmptyWidget(
71
- i18nString(UIStrings.noEventListeners), i18nString(UIStrings.eventListenersExplanation));
68
+ const emptyWidget = new UI.EmptyWidget.EmptyWidget(i18nString(UIStrings.noEventListeners),
69
+ i18nString(UIStrings.eventListenersExplanation));
72
70
  emptyWidget.show(this.emptyHolder);
73
71
 
74
72
  this.treeOutline = new UI.TreeOutline.TreeOutlineInShadow();
@@ -98,95 +96,67 @@ export class EventListenersView extends UI.Widget.VBox {
98
96
  }
99
97
  }
100
98
 
101
- async addObjects(objects: Array<SDK.RemoteObject.RemoteObject|null>): Promise<void> {
102
- // Remove existing event listeners and reset linkifier first.
103
- const eventTypes = this.treeOutline.rootElement().children();
104
- for (const eventType of eventTypes) {
105
- eventType.removeChildren();
106
- }
107
- this.#linkifier.reset();
108
-
109
- await Promise.all(objects.map(obj => obj ? this.addObject(obj) : Promise.resolve()));
110
- this.addEmptyHolderIfNeeded();
111
- this.eventListenersArrivedForTest();
99
+ static async #loadListeners(objects: SDK.RemoteObject.RemoteObject[]): Promise<
100
+ Map<string, Array<{object: SDK.RemoteObject.RemoteObject, listener: SDK.DOMDebuggerModel.EventListener}>>> {
101
+ return Map.groupBy((await Promise.all(objects.map(this.#loadListenersForObject))).flat(),
102
+ ({listener}) => listener.type());
112
103
  }
113
104
 
114
- private addObject(object: SDK.RemoteObject.RemoteObject): Promise<void> {
115
- let eventListeners: SDK.DOMDebuggerModel.EventListener[];
116
- let frameworkEventListenersObject: (FrameworkEventListenersObject|null)|null = null;
117
-
118
- const promises = [];
105
+ static async #loadListenersForObject(object: SDK.RemoteObject.RemoteObject):
106
+ Promise<Array<{object: SDK.RemoteObject.RemoteObject, listener: SDK.DOMDebuggerModel.EventListener}>> {
119
107
  const domDebuggerModel = object.runtimeModel().target().model(SDK.DOMDebuggerModel.DOMDebuggerModel);
120
- // TODO(kozyatinskiy): figure out how this should work for |window| when there is no DOMDebugger.
121
- if (domDebuggerModel) {
122
- promises.push(domDebuggerModel.eventListeners(object).then(storeEventListeners));
123
- }
124
- promises.push(frameworkEventListeners(object).then(storeFrameworkEventListenersObject));
125
- return Promise.all(promises).then(markInternalEventListeners).then(addEventListeners.bind(this));
108
+ const [eventListeners, frameworkEventListenersObject] =
109
+ await Promise.all([domDebuggerModel?.eventListeners(object), frameworkEventListeners(object)]);
126
110
 
127
- function storeEventListeners(result: SDK.DOMDebuggerModel.EventListener[]): void {
128
- eventListeners = result;
129
- }
130
-
131
- function storeFrameworkEventListenersObject(result: FrameworkEventListenersObject|null): void {
132
- frameworkEventListenersObject = result;
111
+ // TODO(kozyatinskiy): figure out how this should work for |window| when there is no DOMDebugger.
112
+ if (!eventListeners) {
113
+ return [];
133
114
  }
134
115
 
135
- async function markInternalEventListeners(): Promise<void> {
136
- if (!frameworkEventListenersObject) {
137
- return;
138
- }
139
-
140
- if (!frameworkEventListenersObject.internalHandlers) {
141
- return;
142
- }
143
- return await frameworkEventListenersObject.internalHandlers.object()
144
- .callFunctionJSON(isInternalEventListener as (this: Object) => boolean[], eventListeners.map(handlerArgument))
145
- .then(setIsInternal);
146
-
147
- function handlerArgument(listener: SDK.DOMDebuggerModel.EventListener): Protocol.Runtime.CallArgument {
148
- return SDK.RemoteObject.RemoteObject.toCallArgument(listener.handler());
149
- }
150
-
151
- function isInternalEventListener(this: Array<Platform.Constructor.Constructor<unknown>>): boolean[] {
152
- const isInternal = [];
153
- const internalHandlersSet = new Set<Platform.Constructor.Constructor<unknown>>(this);
154
- for (const handler of arguments) {
155
- isInternal.push(internalHandlersSet.has(handler));
156
- }
157
- return isInternal;
158
- }
159
-
160
- function setIsInternal(isInternal: boolean[]|null): void {
161
- if (!isInternal) {
162
- return;
163
- }
116
+ const isInternal = await frameworkEventListenersObject.internalHandlers?.object().callFunctionJSON(
117
+ isInternalEventListener as (this: Object) => boolean[],
118
+ eventListeners.map(listener => SDK.RemoteObject.RemoteObject.toCallArgument(listener.handler())));
164
119
 
165
- for (let i = 0; i < eventListeners.length; ++i) {
166
- if (isInternal[i]) {
167
- eventListeners[i].markAsFramework();
168
- }
120
+ if (isInternal) {
121
+ for (let i = 0; i < eventListeners.length; ++i) {
122
+ if (isInternal[i]) {
123
+ eventListeners[i].markAsFramework();
169
124
  }
170
125
  }
171
126
  }
172
127
 
173
- function addEventListeners(this: EventListenersView): void {
174
- this.addObjectEventListeners(object, eventListeners);
175
- if (frameworkEventListenersObject) {
176
- this.addObjectEventListeners(object, frameworkEventListenersObject.eventListeners);
128
+ return [eventListeners, frameworkEventListenersObject.eventListeners].flatMap(
129
+ listeners => listeners.map(listener => ({object, listener})));
130
+
131
+ function isInternalEventListener(this: Array<Platform.Constructor.Constructor<unknown>>): boolean[] {
132
+ const isInternal = [];
133
+ const internalHandlersSet = new Set<Platform.Constructor.Constructor<unknown>>(this);
134
+ for (const handler of arguments) {
135
+ isInternal.push(internalHandlersSet.has(handler));
177
136
  }
137
+ return isInternal;
178
138
  }
179
139
  }
180
140
 
181
- private addObjectEventListeners(
182
- object: SDK.RemoteObject.RemoteObject, eventListeners: SDK.DOMDebuggerModel.EventListener[]|null): void {
183
- if (!eventListeners) {
184
- return;
141
+ async addObjects(objects: Array<SDK.RemoteObject.RemoteObject|null>): Promise<void> {
142
+ // Remove existing event listeners and reset linkifier first.
143
+ const eventTypes = this.treeOutline.rootElement().children();
144
+ for (const eventType of eventTypes) {
145
+ eventType.removeChildren();
185
146
  }
186
- for (const eventListener of eventListeners) {
187
- const treeItem = this.getOrCreateTreeElementForType(eventListener.type());
188
- treeItem.addObjectEventListener(eventListener, object);
147
+ this.#linkifier.reset();
148
+
149
+ const listeners = await EventListenersView.#loadListeners(objects.filter((o): o is NonNullable<typeof o> => !!o));
150
+
151
+ for (const [type, groupedListeners] of listeners) {
152
+ const treeItem = this.getOrCreateTreeElementForType(type);
153
+ for (const {object, listener} of groupedListeners) {
154
+ treeItem.addObjectEventListener(listener, object);
155
+ }
189
156
  }
157
+
158
+ this.addEmptyHolderIfNeeded();
159
+ this.eventListenersArrivedForTest();
190
160
  }
191
161
 
192
162
  showFrameworkListeners(showFramework: boolean, showPassive: boolean, showBlocking: boolean): void {
@@ -271,8 +241,8 @@ export class EventListenersTreeElement extends UI.TreeOutline.TreeElement {
271
241
  return element1.title > element2.title ? 1 : -1;
272
242
  }
273
243
 
274
- addObjectEventListener(eventListener: SDK.DOMDebuggerModel.EventListener, object: SDK.RemoteObject.RemoteObject):
275
- void {
244
+ addObjectEventListener(eventListener: SDK.DOMDebuggerModel.EventListener,
245
+ object: SDK.RemoteObject.RemoteObject): void {
276
246
  const treeElement = new ObjectEventListenerBar(eventListener, object, this.linkifier, this.changeCallback);
277
247
  this.appendChild(treeElement as UI.TreeOutline.TreeElement);
278
248
  }
@@ -283,9 +253,8 @@ export class ObjectEventListenerBar extends UI.TreeOutline.TreeElement {
283
253
  editable: boolean;
284
254
  private readonly changeCallback: () => void;
285
255
  private valueTitle?: Element;
286
- constructor(
287
- eventListener: SDK.DOMDebuggerModel.EventListener, object: SDK.RemoteObject.RemoteObject,
288
- linkifier: Components.Linkifier.Linkifier, changeCallback: () => void) {
256
+ constructor(eventListener: SDK.DOMDebuggerModel.EventListener, object: SDK.RemoteObject.RemoteObject,
257
+ linkifier: Components.Linkifier.Linkifier, changeCallback: () => void) {
289
258
  super('', true);
290
259
  this.#eventListener = eventListener;
291
260
  this.editable = false;
@@ -319,8 +288,8 @@ export class ObjectEventListenerBar extends UI.TreeOutline.TreeElement {
319
288
  propertiesMode: ObjectUI.ObjectPropertiesSection.ObjectPropertiesMode.OWN_AND_INTERNAL_AND_INHERITED,
320
289
  }));
321
290
  }
322
- ObjectUI.ObjectPropertiesSection.ObjectPropertyTreeElement.populateWithProperties(
323
- this, {properties}, true, true, undefined);
291
+ ObjectUI.ObjectPropertiesSection.ObjectPropertyTreeElement.populateWithProperties(this, {properties}, true, true,
292
+ undefined);
324
293
  }
325
294
 
326
295
  private setTitle(object: SDK.RemoteObject.RemoteObject, linkifier: Components.Linkifier.Linkifier): void {
@@ -363,8 +332,8 @@ export class ObjectEventListenerBar extends UI.TreeOutline.TreeElement {
363
332
  }
364
333
 
365
334
  const subtitle = title.createChild('span', 'event-listener-tree-subtitle');
366
- const linkElement = linkifier.linkifyRawLocation(
367
- this.#eventListener.location(), this.#eventListener.sourceURL(), undefined, {tabStop: true});
335
+ const linkElement = linkifier.linkifyRawLocation(this.#eventListener.location(), this.#eventListener.sourceURL(),
336
+ undefined, {tabStop: true});
368
337
  subtitle.appendChild(linkElement);
369
338
 
370
339
  this.listItemElement.addEventListener('contextmenu', event => {
@@ -373,9 +342,8 @@ export class ObjectEventListenerBar extends UI.TreeOutline.TreeElement {
373
342
  menu.appendApplicableItems(linkElement);
374
343
  }
375
344
  if (object.subtype === 'node') {
376
- menu.defaultSection().appendItem(
377
- i18nString(UIStrings.openInElementsPanel), () => Common.Revealer.reveal(object),
378
- {jslogContext: 'reveal-in-elements'});
345
+ menu.defaultSection().appendItem(i18nString(UIStrings.openInElementsPanel),
346
+ () => Common.Revealer.reveal(object), {jslogContext: 'reveal-in-elements'});
379
347
  }
380
348
  menu.defaultSection().appendItem(
381
349
  i18nString(UIStrings.deleteEventListener), this.removeListener.bind(this),
@@ -93,7 +93,7 @@ const UIStrings = {
93
93
  /**
94
94
  * @description The error message when the user is not logged in to Chrome.
95
95
  */
96
- notLoggedIn: 'This feature is only available when you sign in to Chrome with your Google account.',
96
+ notLoggedIn: 'This feature is only available when you sign in to Chrome with your Google account',
97
97
  /**
98
98
  * @description Title of a button which opens the Chrome sign-in page.
99
99
  */
@@ -106,7 +106,7 @@ const UIStrings = {
106
106
  /**
107
107
  * @description Message shown when the user is offline.
108
108
  */
109
- offline: 'Check your internet connection and try again.',
109
+ offline: 'Check your internet connection and try again',
110
110
  /**
111
111
  * @description The message shown if the user is not logged in.
112
112
  */
@@ -121,12 +121,12 @@ const UIStrings = {
121
121
  * available and a page reload might populate it.
122
122
  */
123
123
  reloadRecommendation:
124
- 'Reload the page to capture related network request data for this message to get a better insight.',
124
+ 'Reload the page to capture related network request data for this message to get a better insight',
125
125
  /**
126
126
  * @description Shown to the user when they need to enable the console insights feature in settings in order to use it.
127
127
  * @example {Console insights in Settings} PH1
128
128
  */
129
- turnOnInSettings: 'Turn on {PH1} to use AI assistance for understanding and addressing console warnings and errors.',
129
+ turnOnInSettings: 'Turn on {PH1} to use AI assistance for understanding and addressing console warnings and errors',
130
130
  /**
131
131
  * @description Text for a link to Chrome DevTools Settings.
132
132
  */
@@ -15,13 +15,13 @@ const UIStrings = {
15
15
  * @example {blob:https://web-platform.test:8444/example} url
16
16
  */
17
17
  blockedCrossPartitionFetching:
18
- 'Access to the Blob URL {url} was blocked because it was performed from a cross-partition context.',
18
+ 'Access to the Blob URL {url} was blocked because it was performed from a cross-partition context',
19
19
  /**
20
20
  * @description Description in the Issues panel for a partitioning blob URL issue when noopener is enforced for navigation.
21
21
  * @example {blob:https://web-platform.test:8444/example} url
22
22
  */
23
23
  enforceNoopenerForNavigation:
24
- 'Blob URL {url} top-level navigation had \'noopener\' set because the Blob URL origin was cross-site with the top-level site of the context that initiated the navigation.',
24
+ 'Blob URL {url} top-level navigation had \'noopener\' set because the Blob URL origin was cross-site with the top-level site of the context that initiated the navigation',
25
25
  /**
26
26
  * @description Label in the Issues panel for the number of blob URL issues.
27
27
  * @example {1} count
@@ -30,7 +30,7 @@ const UIStrings = {
30
30
  /**
31
31
  * @description Message in the Issues panel shown when no blob URL is available for a partitioning blob URL issue.
32
32
  */
33
- noBlobURLAvailable: 'No Blob URL available for this issue.',
33
+ noBlobURLAvailable: 'No Blob URL available for this issue',
34
34
  } as const;
35
35
 
36
36
  const str_ = i18n.i18n.registerUIStrings('panels/issues/AffectedPartitioningBlobURLView.ts', UIStrings);
@@ -87,7 +87,7 @@ const UIStrings = {
87
87
  /**
88
88
  * @description Explanation text in the Issues panel shown when no issues are detected.
89
89
  */
90
- issuesPanelDescription: 'On this page you can find warnings from the browser.',
90
+ issuesPanelDescription: 'On this page you can find warnings from the browser',
91
91
  /**
92
92
  * @description Category title in the Issues panel for a group of quirks mode issues.
93
93
  */
@@ -7,7 +7,7 @@ import * as i18n from '../../core/i18n/i18n.js';
7
7
  import * as Platform from '../../core/platform/platform.js';
8
8
  import type * as SDK from '../../core/sdk/sdk.js';
9
9
  import type * as Protocol from '../../generated/protocol.js';
10
- import * as Geometry from '../../models/geometry/geometry.js';
10
+ import * as Geometry from '../../ui/geometry/geometry.js';
11
11
  import * as uiI18n from '../../ui/i18n/i18n.js';
12
12
  import {Link} from '../../ui/kit/kit.js';
13
13
  import * as UI from '../../ui/legacy/legacy.js';
@@ -37,7 +37,7 @@ const UIStrings = {
37
37
  /**
38
38
  * @description Text of a DOM element in 3D view of the Layers panel that explains the panel.
39
39
  */
40
- layerExplanation: 'On this page you will be able to view and inspect document layers.',
40
+ layerExplanation: 'On this page you will be able to view and inspect document layers',
41
41
  /**
42
42
  * @description Accessibility label for canvas view in Layers panel.
43
43
  */
@@ -49,12 +49,12 @@ const UIStrings = {
49
49
  /**
50
50
  * @description Text in 3D view of the Layers panel.
51
51
  */
52
- webglSupportIsDisabledInYour: 'WebGL support is disabled in your browser.',
52
+ webglSupportIsDisabledInYour: 'WebGL support is disabled in your browser',
53
53
  /**
54
54
  * @description Text in 3D view of the Layers panel.
55
55
  * @example {about:gpu} PH1
56
56
  */
57
- checkSForPossibleReasons: 'Check {PH1} for possible reasons.',
57
+ checkSForPossibleReasons: 'Check {PH1} for possible reasons',
58
58
  /**
59
59
  * @description Context menu item in the 3D view of the Layers panel.
60
60
  */
@@ -6,7 +6,7 @@ import * as Common from '../../core/common/common.js';
6
6
  import * as SDK from '../../core/sdk/sdk.js';
7
7
  import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
8
8
  import type * as Protocol from '../../generated/protocol.js';
9
- import * as Geometry from '../../models/geometry/geometry.js';
9
+ import * as Geometry from '../../ui/geometry/geometry.js';
10
10
 
11
11
  export class LayerTreeModel extends SDK.SDKModel.SDKModel<EventTypes> {
12
12
  readonly layerTreeAgent: ProtocolProxyApi.LayerTreeApi;
@@ -117,7 +117,7 @@ const UIStrings = {
117
117
  /**
118
118
  * @description Tooltip description of a radio option for a Lighthouse mode that audits a page navigation.
119
119
  */
120
- navigationTooltip: 'Navigation mode analyzes a page load, exactly like the original Lighthouse reports.',
120
+ navigationTooltip: 'Navigation mode analyzes a page load, exactly like the original Lighthouse reports',
121
121
  /**
122
122
  * @description Label of a radio option for a Lighthouse mode that audits user interactions over a period of time.
123
123
  */
@@ -125,7 +125,7 @@ const UIStrings = {
125
125
  /**
126
126
  * @description Tooltip description of a radio option for a Lighthouse mode that audits user interactions over a period of time.
127
127
  */
128
- timespanTooltip: 'Timespan mode analyzes an arbitrary period of time, typically containing user interactions.',
128
+ timespanTooltip: 'Timespan mode analyzes an arbitrary period of time, typically containing user interactions',
129
129
  /**
130
130
  * @description Label of a radio option for a Lighthouse mode that audits the current page state.
131
131
  */
@@ -133,7 +133,7 @@ const UIStrings = {
133
133
  /**
134
134
  * @description Tooltip description of a radio option for a Lighthouse mode that audits the current page state.
135
135
  */
136
- snapshotTooltip: 'Snapshot mode analyzes the page in a particular state, typically after user interactions.',
136
+ snapshotTooltip: 'Snapshot mode analyzes the page in a particular state, typically after user interactions',
137
137
  /**
138
138
  * @description Text for the mobile platform, as opposed to desktop.
139
139
  */
@@ -168,7 +168,7 @@ const UIStrings = {
168
168
  * Lighthouse. Resetting the storage clears/empties it to a neutral state.
169
169
  */
170
170
  resetStorageLocalstorage:
171
- 'Reset storage (`cache`, `service workers`, etc) before auditing. (Good for performance & `PWA` testing)',
171
+ 'Reset storage (`cache`, `service workers`, etc) before auditing (Good for performance & `PWA` testing)',
172
172
  /**
173
173
  * @description Text of checkbox to enable JavaScript sampling while running audits in Lighthouse.
174
174
  */