chrome-devtools-frontend 1.0.998142 → 1.0.999279

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 (94) hide show
  1. package/.clang-format +1 -0
  2. package/front_end/core/common/Color.ts +9 -1
  3. package/front_end/core/common/Object.ts +2 -1
  4. package/front_end/core/common/Settings.ts +13 -1
  5. package/front_end/core/host/InspectorFrontendHost.ts +4 -1
  6. package/front_end/core/host/UserMetrics.ts +2 -1
  7. package/front_end/core/i18n/locales/en-US.json +4 -1
  8. package/front_end/core/i18n/locales/en-XL.json +4 -1
  9. package/front_end/core/sdk/CSSProperty.ts +6 -7
  10. package/front_end/core/sdk/ChildTargetManager.ts +0 -3
  11. package/front_end/core/sdk/ConsoleModel.ts +2 -1
  12. package/front_end/core/sdk/DebuggerModel.ts +4 -30
  13. package/front_end/core/sdk/NetworkManager.ts +3 -1
  14. package/front_end/core/sdk/RuntimeModel.ts +7 -1
  15. package/front_end/core/sdk/SourceMapManager.ts +10 -1
  16. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +5 -1
  17. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +31 -0
  18. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +15 -0
  19. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +6 -0
  20. package/front_end/generated/InspectorBackendCommands.js +0 -1
  21. package/front_end/generated/protocol.ts +0 -1
  22. package/front_end/legacy/legacy-defs.d.ts +2 -2
  23. package/front_end/models/formatter/ScriptFormatter.ts +3 -1
  24. package/front_end/models/issues_manager/DeprecationIssue.ts +202 -201
  25. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +5 -1
  26. package/front_end/models/text_utils/CodeMirrorUtils.ts +14 -17
  27. package/front_end/models/timeline_model/TimelineModel.ts +1 -1
  28. package/front_end/panels/application/IndexedDBViews.ts +5 -2
  29. package/front_end/panels/console/ConsoleView.ts +9 -1
  30. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -1
  31. package/front_end/panels/elements/PropertiesWidget.ts +0 -1
  32. package/front_end/panels/elements/StylesSidebarPane.ts +7 -1
  33. package/front_end/panels/lighthouse/LighthouseController.ts +19 -12
  34. package/front_end/panels/lighthouse/LighthousePanel.ts +3 -2
  35. package/front_end/panels/lighthouse/LighthouseStartView.ts +10 -4
  36. package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +50 -48
  37. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +9 -2
  38. package/front_end/panels/lighthouse/lighthouseDialog.css +5 -0
  39. package/front_end/panels/lighthouse/lighthouseStartView.css +3 -3
  40. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +3 -1
  41. package/front_end/panels/network/NetworkLogView.ts +5 -1
  42. package/front_end/panels/network/NetworkLogViewColumns.ts +3 -1
  43. package/front_end/panels/network/RequestTimingView.ts +1 -1
  44. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +8 -1
  45. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +3 -1
  46. package/front_end/panels/profiler/HeapSnapshotView.ts +14 -2
  47. package/front_end/panels/sources/SourcesPanel.ts +7 -1
  48. package/front_end/panels/timeline/TimelineController.ts +1 -1
  49. package/front_end/panels/timeline/TimelineFlameChartView.ts +4 -1
  50. package/front_end/panels/timeline/TimelineHistoryManager.ts +6 -1
  51. package/front_end/panels/timeline/TimelinePanel.ts +10 -1
  52. package/front_end/panels/timeline/TimelineUIUtils.ts +7 -28
  53. package/front_end/panels/web_audio/graph_visualizer/GraphView.ts +3 -1
  54. package/front_end/panels/web_audio/graph_visualizer/NodeRendererUtility.ts +8 -1
  55. package/front_end/panels/web_audio/graph_visualizer/NodeView.ts +13 -1
  56. package/front_end/panels/web_audio/web_audio.ts +8 -1
  57. package/front_end/third_party/puppeteer/README.chromium +1 -1
  58. package/front_end/third_party/puppeteer/package/README.md +11 -11
  59. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +1 -1
  60. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
  61. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +2 -1
  62. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  63. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  64. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +1 -1
  65. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  66. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
  67. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +1 -1
  68. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  69. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
  71. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +2 -1
  72. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  73. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  74. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +1 -1
  75. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
  77. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  79. package/front_end/third_party/puppeteer/package/lib/types.d.ts +3 -3
  80. package/front_end/third_party/puppeteer/package/package.json +13 -12
  81. package/front_end/ui/components/buttons/button.css +16 -3
  82. package/front_end/ui/components/data_grid/DataGrid.ts +9 -1
  83. package/front_end/ui/components/docs/button/basic.ts +10 -0
  84. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +11 -3
  85. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +12 -1
  86. package/front_end/ui/components/tree_outline/TreeOutline.ts +16 -11
  87. package/front_end/ui/legacy/ActionRegistration.ts +1 -0
  88. package/front_end/ui/legacy/Fragment.ts +2 -2
  89. package/front_end/ui/legacy/Toolbar.ts +4 -0
  90. package/front_end/ui/legacy/ViewManager.ts +12 -1
  91. package/front_end/ui/legacy/XLink.ts +6 -1
  92. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +8 -1
  93. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +7 -1
  94. package/package.json +1 -1
@@ -10,322 +10,328 @@ import {Issue, IssueCategory, IssueKind} from './Issue.js';
10
10
  import type {MarkdownIssueDescription} from './MarkdownIssueDescription.js';
11
11
  import {resolveLazyDescription} from './MarkdownIssueDescription.js';
12
12
 
13
- const UIStrings =
14
- {
15
- // Store strings used across messages in this block.
16
- /**
13
+ const
14
+ UIStrings =
15
+ {
16
+ // Store strings used across messages in this block.
17
+ /**
17
18
  * @description This links to the chrome feature status page when one exists.
18
19
  */
19
- feature: 'Check the feature status page for more details.',
20
- /**
20
+ feature: 'Check the feature status page for more details.',
21
+ /**
21
22
  * @description This links to the chromium dash schedule when a milestone is set.
22
23
  * @example {100} milestone
23
24
  */
24
- milestone: 'This change will go into effect with milestone {milestone}.',
25
- /**
25
+ milestone: 'This change will go into effect with milestone {milestone}.',
26
+ /**
26
27
  *@description Title of issue raised when a deprecated feature is used
27
28
  */
28
- title: 'Deprecated Feature Used',
29
+ title: 'Deprecated Feature Used',
29
30
 
30
- // Store alphabetized messages per DeprecationIssueType in this block.
31
- /**
31
+ // Store alphabetized messages per DeprecationIssueType in this block.
32
+ /**
32
33
  *@description TODO(crbug.com/1318846): Description needed for translation
33
34
  */
34
- authorizationCoveredByWildcard:
35
- 'Authorization will not be covered by the wildcard symbol (*) in CORS `Access-Control-Allow-Headers` handling.',
36
- /**
37
- *@description Warning displayed to developers when the Battery Status API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is deprecated and will soon be unsupported.
38
- */
39
- batteryStatusInsecureOrigin:
40
- 'Using the Battery Status API (e.g. `navigator.getBattery()`) in insecure origins like HTTP is deprecated and will be removed.',
41
- /**
35
+ authorizationCoveredByWildcard:
36
+ 'Authorization will not be covered by the wildcard symbol (*) in CORS `Access-Control-Allow-Headers` handling.',
37
+ /**
42
38
  *@description TODO(crbug.com/1320334): Description needed for translation
43
39
  */
44
- canRequestURLHTTPContainingNewline:
45
- 'Resource requests whose URLs contained both removed whitespace `\\(n|r|t)` characters and less-than characters (`<`) are blocked. Please remove newlines and encode less-than characters from places like element attribute values in order to load these resources.',
46
- /**
40
+ canRequestURLHTTPContainingNewline:
41
+ 'Resource requests whose URLs contained both removed whitespace `\\(n|r|t)` characters and less-than characters (`<`) are blocked. Please remove newlines and encode less-than characters from places like element attribute values in order to load these resources.',
42
+ /**
47
43
  *@description TODO(crbug.com/1320335): Description needed for translation
48
44
  */
49
- chromeLoadTimesConnectionInfo:
50
- '`chrome.loadTimes()` is deprecated, instead use standardized API: Navigation Timing 2.',
51
- /**
45
+ chromeLoadTimesConnectionInfo:
46
+ '`chrome.loadTimes()` is deprecated, instead use standardized API: Navigation Timing 2.',
47
+ /**
52
48
  *@description TODO(crbug.com/1320336): Description needed for translation
53
49
  */
54
- chromeLoadTimesFirstPaintAfterLoadTime:
55
- '`chrome.loadTimes()` is deprecated, instead use standardized API: Paint Timing.',
56
- /**
50
+ chromeLoadTimesFirstPaintAfterLoadTime:
51
+ '`chrome.loadTimes()` is deprecated, instead use standardized API: Paint Timing.',
52
+ /**
57
53
  *@description TODO(crbug.com/1320337): Description needed for translation
58
54
  */
59
- chromeLoadTimesWasAlternateProtocolAvailable:
60
- '`chrome.loadTimes()` is deprecated, instead use standardized API: `nextHopProtocol` in Navigation Timing 2.',
61
- /**
55
+ chromeLoadTimesWasAlternateProtocolAvailable:
56
+ '`chrome.loadTimes()` is deprecated, instead use standardized API: `nextHopProtocol` in Navigation Timing 2.',
57
+ /**
62
58
  *@description TODO(crbug.com/1318847): Description needed for translation
63
59
  */
64
- cookieWithTruncatingChar: 'Cookies containing a `\\(0|r|n)` character will be rejected instead of truncated.',
65
- /**
66
- *@description TODO(crbug.com/1318849): Description needed for translation
67
- */
68
- crossOriginAccessBasedOnDocumentDomain:
69
- 'Relaxing the same-origin policy by setting `document.domain` is deprecated, and will be disabled by default. This deprecation warning is for a cross-origin access that was enabled by setting `document.domain`.',
70
- /**
60
+ cookieWithTruncatingChar: 'Cookies containing a `\\(0|r|n)` character will be rejected instead of truncated.',
61
+ /**
62
+ *@description This warning occurs when a frame accesses another frame's
63
+ * data after having set `document.domain` without having set the
64
+ * `Origin-Agent-Cluster` http header. This is a companion warning to
65
+ * `documentDomainSettingWithoutOriginAgentClusterHeader`, where that
66
+ * warning occurs when `document.domain` is set, and this warning
67
+ * occurs when an access has been made, based on that previous
68
+ * `document.domain` setting.
69
+ */
70
+ crossOriginAccessBasedOnDocumentDomain:
71
+ 'Relaxing the same-origin policy by setting `document.domain` is deprecated, and will be disabled by default. This deprecation warning is for a cross-origin access that was enabled by setting `document.domain`.',
72
+ /**
71
73
  *@description TODO(crbug.com/1318850): Description needed for translation
72
74
  */
73
- crossOriginWindowAlert:
74
- 'Triggering `window.alert` from cross origin iframes has been deprecated and will be removed in the future.',
75
- /**
75
+ crossOriginWindowAlert:
76
+ 'Triggering `window.alert` from cross origin iframes has been deprecated and will be removed in the future.',
77
+ /**
76
78
  *@description TODO(crbug.com/1318851): Description needed for translation
77
79
  */
78
- crossOriginWindowConfirm:
79
- 'Triggering `window.confirm` from cross origin iframes has been deprecated and will be removed in the future.',
80
- /**
80
+ crossOriginWindowConfirm:
81
+ 'Triggering `window.confirm` from cross origin iframes has been deprecated and will be removed in the future.',
82
+ /**
81
83
  *@description TODO(crbug.com/1320339): Description needed for translation
82
84
  */
83
- cssSelectorInternalMediaControlsOverlayCastButton:
84
- 'The `disableRemotePlayback` attribute should be used in order to disable the default Cast integration instead of using `-internal-media-controls-overlay-cast-button` selector.',
85
- /**
85
+ cssSelectorInternalMediaControlsOverlayCastButton:
86
+ 'The `disableRemotePlayback` attribute should be used in order to disable the default Cast integration instead of using `-internal-media-controls-overlay-cast-button` selector.',
87
+ /**
86
88
  *@description TODO(crbug.com/1320340): Description needed for translation
87
89
  */
88
- customCursorIntersectsViewport:
89
- 'Custom cursors with size greater than 32x32 DIP intersecting native UI is deprecated and will be removed.',
90
- /**
90
+ customCursorIntersectsViewport:
91
+ 'Custom cursors with size greater than 32x32 DIP intersecting native UI is deprecated and will be removed.',
92
+ /**
91
93
  *@description This message is shown when the example deprecated feature is used
92
94
  */
93
- deprecationExample: 'This is an example of a translated deprecation issue message.',
94
- /**
95
- *@description TODO(crbug.com/1318852): Description needed for translation
96
- */
97
- documentDomainSettingWithoutOriginAgentClusterHeader:
98
- 'Relaxing the same-origin policy by setting `document.domain` is deprecated, and will be disabled by default. To continue using this feature, please opt-out of origin-keyed agent clusters by sending an `Origin-Agent-Cluster: ?0` header along with the HTTP response for the document and frames. See https://developer.chrome.com/blog/immutable-document-domain/ for more details.',
99
- /**
100
- *@description TODO(crbug.com/1320338): Description needed for translation
101
- */
102
- eventPath: '`Event.path` is deprecated and will be removed. Please use `Event.composedPath()` instead.',
103
- /**
95
+ deprecationExample: 'This is an example of a translated deprecation issue message.',
96
+ /**
97
+ *@description This warning occurs when a script modifies `document.domain`
98
+ * without having set on `Origin-Agent-Cluster` http header. In other
99
+ * words, when a script relies on the default behaviour of
100
+ * `Origin-Agent-Cluster` when setting document.domain.
101
+ */
102
+ documentDomainSettingWithoutOriginAgentClusterHeader:
103
+ 'Relaxing the same-origin policy by setting `document.domain` is deprecated, and will be disabled by default. To continue using this feature, please opt-out of origin-keyed agent clusters by sending an `Origin-Agent-Cluster: ?0` header along with the HTTP response for the document and frames. See https://developer.chrome.com/blog/immutable-document-domain/ for more details.',
104
+ /**
105
+ *@description Warning displayed to developers when the non-standard `Event.path` API is used to notify them that this API is deprecated.
106
+ */
107
+ eventPath: '`Event.path` is deprecated and will be removed. Please use `Event.composedPath()` instead.',
108
+ /**
104
109
  *@description Warning displayed to developers when the Geolocation API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is no longer supported.
105
110
  */
106
- geolocationInsecureOrigin:
107
- '`getCurrentPosition()` and `watchPosition()` no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
108
- /**
111
+ geolocationInsecureOrigin:
112
+ '`getCurrentPosition()` and `watchPosition()` no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
113
+ /**
109
114
  *@description Warning displayed to developers when the Geolocation API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is deprecated.
110
115
  */
111
- geolocationInsecureOriginDeprecatedNotRemoved:
112
- '`getCurrentPosition()` and `watchPosition()` are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
113
- /**
116
+ geolocationInsecureOriginDeprecatedNotRemoved:
117
+ '`getCurrentPosition()` and `watchPosition()` are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
118
+ /**
114
119
  *@description TODO(crbug.com/1318858): Description needed for translation
115
120
  */
116
- getUserMediaInsecureOrigin:
117
- '`getUserMedia()` no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
118
- /**
121
+ getUserMediaInsecureOrigin:
122
+ '`getUserMedia()` no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
123
+ /**
119
124
  *@description TODO(crbug.com/1320342): Description needed for translation
120
125
  */
121
- hostCandidateAttributeGetter:
122
- '`RTCPeerConnectionIceErrorEvent.hostCandidate` is deprecated. Please use `RTCPeerConnectionIceErrorEvent.address` or `RTCPeerConnectionIceErrorEvent.port` instead.',
123
- /**
126
+ hostCandidateAttributeGetter:
127
+ '`RTCPeerConnectionIceErrorEvent.hostCandidate` is deprecated. Please use `RTCPeerConnectionIceErrorEvent.address` or `RTCPeerConnectionIceErrorEvent.port` instead.',
128
+ /**
124
129
  *@description TODO(crbug.com/1320343): Description needed for translation
125
130
  */
126
- insecurePrivateNetworkSubresourceRequest:
127
- 'The website requested a subresource from a network that it could only access because of its users\' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them.',
128
- /**
131
+ insecurePrivateNetworkSubresourceRequest:
132
+ 'The website requested a subresource from a network that it could only access because of its users\' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them.',
133
+ /**
129
134
  *@description TODO(crbug.com/1318860): Description needed for translation
130
135
  */
131
- legacyConstraintGoogCpuOveruseDetection:
132
- 'CPU overuse detection is enabled-by-default and the ability to disable it using `googCpuOveruseDetection` will soon be removed. Please stop using this legacy constraint.',
133
- /**
136
+ legacyConstraintGoogCpuOveruseDetection:
137
+ 'CPU overuse detection is enabled-by-default and the ability to disable it using `googCpuOveruseDetection` will soon be removed. Please stop using this legacy constraint.',
138
+ /**
134
139
  *@description TODO(crbug.com/1318861): Description needed for translation
135
140
  */
136
- legacyConstraintGoogIPv6:
137
- 'IPv6 is enabled-by-default and the ability to disable it using `googIPv6` will soon be removed. Please stop using this legacy constraint.',
138
- /**
141
+ legacyConstraintGoogIPv6:
142
+ 'IPv6 is enabled-by-default and the ability to disable it using `googIPv6` will soon be removed. Please stop using this legacy constraint.',
143
+ /**
139
144
  *@description TODO(crbug.com/1318863): Description needed for translation
140
145
  */
141
- legacyConstraintGoogScreencastMinBitrate:
142
- 'Screencast min bitrate is now set to 100 kbps by default and `googScreencastMinBitrate` will soon be ignored in favor of this new default. Please stop using this legacy constraint.',
143
- /**
146
+ legacyConstraintGoogScreencastMinBitrate:
147
+ 'Screencast min bitrate is now set to 100 kbps by default and `googScreencastMinBitrate` will soon be ignored in favor of this new default. Please stop using this legacy constraint.',
148
+ /**
144
149
  *@description TODO(crbug.com/1318864): Description needed for translation
145
150
  */
146
- legacyConstraintGoogSuspendBelowMinBitrate:
147
- 'Support for the `googSuspendBelowMinBitrate` constraint is about to be removed. Please stop using this legacy constraint.',
148
- /**
151
+ legacyConstraintGoogSuspendBelowMinBitrate:
152
+ 'Support for the `googSuspendBelowMinBitrate` constraint is about to be removed. Please stop using this legacy constraint.',
153
+ /**
149
154
  *@description TODO(crbug.com/1318865): Description needed for translation
150
155
  */
151
- localCSSFileExtensionRejected:
152
- 'CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.',
153
- /**
156
+ localCSSFileExtensionRejected:
157
+ 'CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.',
158
+ /**
154
159
  *@description TODO(crbug.com/1320344): Description needed for translation
155
160
  */
156
- mediaElementAudioSourceNode:
157
- 'Creating a `MediaElementAudioSourceNode` on an `OfflineAudioContext` is deprecated and will be removed.',
158
- /**
161
+ mediaElementAudioSourceNode:
162
+ 'Creating a `MediaElementAudioSourceNode` on an `OfflineAudioContext` is deprecated and will be removed.',
163
+ /**
159
164
  *@description TODO(crbug.com/1320345): Description needed for translation
160
165
  */
161
- mediaSourceAbortRemove:
162
- 'Using `SourceBuffer.abort()` to abort `remove()`\'s asynchronous range removal is deprecated due to specification change. Support will be removed in the future. You should instead await `updateend`. `abort()` is intended to only abort an asynchronous media append or reset parser state.',
163
- /**
166
+ mediaSourceAbortRemove:
167
+ 'Using `SourceBuffer.abort()` to abort `remove()`\'s asynchronous range removal is deprecated due to specification change. Support will be removed in the future. You should instead await `updateend`. `abort()` is intended to only abort an asynchronous media append or reset parser state.',
168
+ /**
164
169
  *@description TODO(crbug.com/1320346): Description needed for translation
165
170
  */
166
- mediaSourceDurationTruncatingBuffered:
167
- 'Setting `MediaSource.duration` below the highest presentation timestamp of any buffered coded frames is deprecated due to specification change. Support for implicit removal of truncated buffered media will be removed in the future. You should instead perform explicit `remove(newDuration, oldDuration)` on all `sourceBuffers`, where `newDuration < oldDuration`.',
168
- /**
171
+ mediaSourceDurationTruncatingBuffered:
172
+ 'Setting `MediaSource.duration` below the highest presentation timestamp of any buffered coded frames is deprecated due to specification change. Support for implicit removal of truncated buffered media will be removed in the future. You should instead perform explicit `remove(newDuration, oldDuration)` on all `sourceBuffers`, where `newDuration < oldDuration`.',
173
+ /**
169
174
  *@description TODO(crbug.com/1320347): Description needed for translation
170
175
  */
171
- noSysexWebMIDIWithoutPermission:
172
- 'Web MIDI will ask a permission to use even if the sysex is not specified in the `MIDIOptions`.',
173
- /**
176
+ noSysexWebMIDIWithoutPermission:
177
+ 'Web MIDI will ask a permission to use even if the sysex is not specified in the `MIDIOptions`.',
178
+ /**
174
179
  *@description Warning displayed to developers when the Notification API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is no longer supported.
175
180
  */
176
- notificationInsecureOrigin:
177
- 'The Notification API may no longer be used from insecure origins. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
178
- /**
181
+ notificationInsecureOrigin:
182
+ 'The Notification API may no longer be used from insecure origins. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gle/chrome-insecure-origins for more details.',
183
+ /**
179
184
  *@description Warning displayed to developers when permission to use notifications has been requested by a cross-origin iframe, to notify them that this use is no longer supported.
180
185
  */
181
- notificationPermissionRequestedIframe: 'Permission for the Notification API may no longer be requested from a cross-origin iframe. You should consider requesting permission from a top-level frame or opening a new window instead.',
182
- /**
186
+ notificationPermissionRequestedIframe:
187
+ 'Permission for the Notification API may no longer be requested from a cross-origin iframe. You should consider requesting permission from a top-level frame or opening a new window instead.',
188
+ /**
183
189
  *@description TODO(crbug.com/1318867): Description needed for translation
184
190
  */
185
- obsoleteWebRtcCipherSuite:
186
- 'Your partner is negotiating an obsolete (D)TLS version. Please check with your partner to have this fixed.',
187
- /**
191
+ obsoleteWebRtcCipherSuite:
192
+ 'Your partner is negotiating an obsolete (D)TLS version. Please check with your partner to have this fixed.',
193
+ /**
188
194
  *@description TODO(crbug.com/1320349): Description needed for translation
189
195
  */
190
- paymentRequestBasicCard: 'The `basic-card` payment method is deprecated and will be removed.',
191
- /**
196
+ paymentRequestBasicCard: 'The `basic-card` payment method is deprecated and will be removed.',
197
+ /**
192
198
  *@description TODO(crbug.com/1320350): Description needed for translation
193
199
  */
194
- paymentRequestShowWithoutGesture:
195
- 'Calling `PaymentRequest.show()` without user activation is deprecated and will be removed.',
196
- /**
200
+ paymentRequestShowWithoutGesture:
201
+ 'Calling `PaymentRequest.show()` without user activation is deprecated and will be removed.',
202
+ /**
197
203
  *@description This issue indicates that a `<source>` element with a `<picture>` parent was using an `src` attribute, which is not valid and is ignored by the browser. The `srcset` attribute should be used instead.
198
204
  */
199
- pictureSourceSrc:
200
- '`<source src>` with a `<picture>` parent is invalid and therefore ignored. Please use `<source srcset>` instead.',
201
- /**
202
- *@description TODO(crbug.com/1318869): Description needed for translation
205
+ pictureSourceSrc:
206
+ '`<source src>` with a `<picture>` parent is invalid and therefore ignored. Please use `<source srcset>` instead.',
207
+ /**
208
+ *@description Warning displayed to developers when the vendor-prefixed method is used rather than the equivalent unprefixed method.
203
209
  */
204
- prefixedCancelAnimationFrame:
205
- '`webkitCancelAnimationFrame` is vendor-specific. Please use the standard `cancelAnimationFrame` instead.',
206
- /**
207
- *@description TODO(crbug.com/1318871): Description needed for translation
210
+ prefixedCancelAnimationFrame:
211
+ '`webkitCancelAnimationFrame` is vendor-specific. Please use the standard `cancelAnimationFrame` instead.',
212
+ /**
213
+ *@description Warning displayed to developers when the vendor-prefixed method is used rather than the equivalent unprefixed method.
208
214
  */
209
- prefixedRequestAnimationFrame:
210
- '`webkitRequestAnimationFrame` is vendor-specific. Please use the standard `requestAnimationFrame` instead.',
211
- /**
215
+ prefixedRequestAnimationFrame:
216
+ '`webkitRequestAnimationFrame` is vendor-specific. Please use the standard `requestAnimationFrame` instead.',
217
+ /**
212
218
  *@description TODO(crbug.com/1320351): Description needed for translation
213
219
  */
214
- prefixedStorageInfo:
215
- '`window.webkitStorageInfo` is deprecated. Please use `navigator.webkitTemporaryStorage` or `navigator.webkitPersistentStorage` instead.',
216
- /**
220
+ prefixedStorageInfo:
221
+ '`window.webkitStorageInfo` is deprecated. Please use `navigator.webkitTemporaryStorage` or `navigator.webkitPersistentStorage` instead.',
222
+ /**
217
223
  *@description TODO(crbug.com/1320352): Description needed for translation
218
224
  */
219
- prefixedVideoDisplayingFullscreen:
220
- '`HTMLVideoElement.webkitDisplayingFullscreen` is deprecated. Please use `Document.fullscreenElement` instead.',
221
- /**
225
+ prefixedVideoDisplayingFullscreen:
226
+ '`HTMLVideoElement.webkitDisplayingFullscreen` is deprecated. Please use `Document.fullscreenElement` instead.',
227
+ /**
222
228
  *@description TODO(crbug.com/1320353): Description needed for translation
223
229
  */
224
- prefixedVideoEnterFullScreen:
225
- '`HTMLVideoElement.webkitEnterFullScreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
226
- /**
230
+ prefixedVideoEnterFullScreen:
231
+ '`HTMLVideoElement.webkitEnterFullScreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
232
+ /**
227
233
  *@description TODO(crbug.com/1320353): Description needed for translation
228
234
  */
229
- prefixedVideoEnterFullscreen:
230
- '`HTMLVideoElement.webkitEnterFullscreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
231
- /**
235
+ prefixedVideoEnterFullscreen:
236
+ '`HTMLVideoElement.webkitEnterFullscreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
237
+ /**
232
238
  *@description TODO(crbug.com/1320354): Description needed for translation
233
239
  */
234
- prefixedVideoExitFullScreen:
235
- '`HTMLVideoElement.webkitExitFullsSreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
236
- /**
240
+ prefixedVideoExitFullScreen:
241
+ '`HTMLVideoElement.webkitExitFullsSreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
242
+ /**
237
243
  *@description TODO(crbug.com/1320354): Description needed for translation
238
244
  */
239
- prefixedVideoExitFullscreen:
240
- '`HTMLVideoElement.webkitExitFullscreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
241
- /**
245
+ prefixedVideoExitFullscreen:
246
+ '`HTMLVideoElement.webkitExitFullscreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
247
+ /**
242
248
  *@description TODO(crbug.com/1320355): Description needed for translation
243
249
  */
244
- prefixedVideoSupportsFullscreen:
245
- '`HTMLVideoElement.webkitSupportsFullscreen` is deprecated. Please use `Document.fullscreenEnabled` instead.',
246
- /**
250
+ prefixedVideoSupportsFullscreen:
251
+ '`HTMLVideoElement.webkitSupportsFullscreen` is deprecated. Please use `Document.fullscreenEnabled` instead.',
252
+ /**
247
253
  *@description TODO(crbug.com/1320356): Description needed for translation
248
254
  */
249
- rangeExpand: '`Range.expand()` is deprecated. Please use `Selection.modify()` instead.',
250
- /**
255
+ rangeExpand: '`Range.expand()` is deprecated. Please use `Selection.modify()` instead.',
256
+ /**
251
257
  *@description TODO(crbug.com/1320357): Description needed for translation
252
258
  */
253
- requestedSubresourceWithEmbeddedCredentials:
254
- 'Subresource requests whose URLs contain embedded credentials (e.g. `https://user:pass@host/`) are blocked.',
255
- /**
259
+ requestedSubresourceWithEmbeddedCredentials:
260
+ 'Subresource requests whose URLs contain embedded credentials (e.g. `https://user:pass@host/`) are blocked.',
261
+ /**
256
262
  *@description TODO(crbug.com/1318872): Description needed for translation
257
263
  */
258
- rtcConstraintEnableDtlsSrtpFalse:
259
- 'The constraint `DtlsSrtpKeyAgreement` is removed. You have specified a `false` value for this constraint, which is interpreted as an attempt to use the removed `SDES` key negotiation method. This functionality is removed; use a service that supports DTLS key negotiation instead.',
260
- /**
264
+ rtcConstraintEnableDtlsSrtpFalse:
265
+ 'The constraint `DtlsSrtpKeyAgreement` is removed. You have specified a `false` value for this constraint, which is interpreted as an attempt to use the removed `SDES` key negotiation method. This functionality is removed; use a service that supports DTLS key negotiation instead.',
266
+ /**
261
267
  *@description TODO(crbug.com/1318873): Description needed for translation
262
268
  */
263
- rtcConstraintEnableDtlsSrtpTrue:
264
- 'The constraint `DtlsSrtpKeyAgreement` is removed. You have specified a `true` value for this constraint, which had no effect, but you can remove this constraint for tidiness.',
265
- /**
269
+ rtcConstraintEnableDtlsSrtpTrue:
270
+ 'The constraint `DtlsSrtpKeyAgreement` is removed. You have specified a `true` value for this constraint, which had no effect, but you can remove this constraint for tidiness.',
271
+ /**
266
272
  *@description TODO(crbug.com/1318874): Description needed for translation
267
273
  */
268
- rtcPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics:
269
- 'Complex Plan B SDP detected! Chrome will switch the default `sdpSemantics` from `plan-b` to the standardized `unified-plan` format and this peer connection is relying on the default `sdpSemantics`. This SDP is not compatible with Unified Plan and will be rejected by clients expecting Unified Plan. For more information about how to prepare for the switch, see https://webrtc.org/web-apis/chrome/unified-plan/.',
270
- /**
274
+ rtcPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics:
275
+ 'Complex Plan B SDP detected! Chrome will switch the default `sdpSemantics` from `plan-b` to the standardized `unified-plan` format and this peer connection is relying on the default `sdpSemantics`. This SDP is not compatible with Unified Plan and will be rejected by clients expecting Unified Plan. For more information about how to prepare for the switch, see https://webrtc.org/web-apis/chrome/unified-plan/.',
276
+ /**
271
277
  *@description TODO(crbug.com/1318875): Description needed for translation
272
278
  */
273
- rtcPeerConnectionLegacyCreateWithMediaConstraints:
274
- 'The `mediaConstraints` version of `RTCOfferOptions/RTCAnswerOptions` are deprecated and will soon be removed, please migrate to the promise-based `createOffer`/`createAnswer` instead.',
275
- /**
279
+ rtcPeerConnectionLegacyCreateWithMediaConstraints:
280
+ 'The `mediaConstraints` version of `RTCOfferOptions/RTCAnswerOptions` are deprecated and will soon be removed, please migrate to the promise-based `createOffer`/`createAnswer` instead.',
281
+ /**
276
282
  *@description TODO(crbug.com/1320358): Description needed for translation
277
283
  */
278
- rtcPeerConnectionSdpSemanticsPlanB:
279
- 'Plan B SDP semantics, which is used when constructing an `RTCPeerConnection` with `{sdpSemantics:\'plan-b\'}`, is a legacy non-standard version of the Session Description Protocol that has been permanently deleted from the Web Platform. It is still available when building with IS_FUCHSIA, but we intend to delete it as soon as possible. Stop depending on it. See https://crbug.com/1302249 for status.',
280
- /**
284
+ rtcPeerConnectionSdpSemanticsPlanB:
285
+ 'Plan B SDP semantics, which is used when constructing an `RTCPeerConnection` with `{sdpSemantics:\'plan-b\'}`, is a legacy non-standard version of the Session Description Protocol that has been permanently deleted from the Web Platform. It is still available when building with IS_FUCHSIA, but we intend to delete it as soon as possible. Stop depending on it. See https://crbug.com/1302249 for status.',
286
+ /**
281
287
  *@description TODO(crbug.com/1320360): Description needed for translation
282
288
  */
283
- rtcpMuxPolicyNegotiate: 'The `rtcpMuxPolicy` option is deprecated and will be removed.',
284
- /**
289
+ rtcpMuxPolicyNegotiate: 'The `rtcpMuxPolicy` option is deprecated and will be removed.',
290
+ /**
285
291
  *@description TODO(crbug.com/1318876): Description needed for translation
286
292
  */
287
- rtpDataChannel:
288
- 'RTP data channels are no longer supported. The `RtpDataChannels` constraint is currently ignored, and may cause an error at a later date.',
289
- /**
293
+ rtpDataChannel:
294
+ 'RTP data channels are no longer supported. The `RtpDataChannels` constraint is currently ignored, and may cause an error at a later date.',
295
+ /**
290
296
  *@description TODO(crbug.com/1320361): Description needed for translation
291
297
  */
292
- selectionAddRangeIntersect:
293
- 'The behavior that `Selection.addRange()` merges existing Range and the specified Range was removed.',
294
- /**
298
+ selectionAddRangeIntersect:
299
+ 'The behavior that `Selection.addRange()` merges existing Range and the specified Range was removed.',
300
+ /**
295
301
  *@description TODO(crbug.com/1318878): Description needed for translation
296
302
  */
297
- sharedArrayBufferConstructedWithoutIsolation:
298
- '`SharedArrayBuffer` will require cross-origin isolation. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.',
299
- /**
303
+ sharedArrayBufferConstructedWithoutIsolation:
304
+ '`SharedArrayBuffer` will require cross-origin isolation. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.',
305
+ /**
300
306
  *@description TODO(crbug.com/1320363): Description needed for translation
301
307
  */
302
- textToSpeech_DisallowedByAutoplay:
303
- '`speechSynthesis.speak()` without user activation is deprecated and will be removed.',
304
- /**
308
+ textToSpeech_DisallowedByAutoplay:
309
+ '`speechSynthesis.speak()` without user activation is deprecated and will be removed.',
310
+ /**
305
311
  *@description TODO(crbug.com/1318879): Description needed for translation
306
312
  */
307
- v8SharedArrayBufferConstructedInExtensionWithoutIsolation:
308
- 'Extensions should opt into cross-origin isolation to continue using `SharedArrayBuffer`. See https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/.',
309
- /**
313
+ v8SharedArrayBufferConstructedInExtensionWithoutIsolation:
314
+ 'Extensions should opt into cross-origin isolation to continue using `SharedArrayBuffer`. See https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/.',
315
+ /**
310
316
  *@description TODO(crbug.com/1318880): Description needed for translation
311
317
  */
312
- webCodecsVideoFrameDefaultTimestamp:
313
- 'Constructing a `VideoFrame` without a timestamp is deprecated and support will be removed. Please provide a timestamp via `VideoFrameInit`.',
314
- /**
318
+ webCodecsVideoFrameDefaultTimestamp:
319
+ 'Constructing a `VideoFrame` without a timestamp is deprecated and support will be removed. Please provide a timestamp via `VideoFrameInit`.',
320
+ /**
315
321
  *@description TODO(crbug.com/1318881): Description needed for translation
316
322
  */
317
- xhrJSONEncodingDetection: 'UTF-16 is not supported by response json in `XMLHttpRequest`',
318
- /**
323
+ xhrJSONEncodingDetection: 'UTF-16 is not supported by response json in `XMLHttpRequest`',
324
+ /**
319
325
  *@description TODO(crbug.com/1318882): Description needed for translation
320
326
  */
321
- xmlHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
322
- 'Synchronous `XMLHttpRequest` on the main thread is deprecated because of its detrimental effects to the end user\u2019s experience. For more help, check https://xhr.spec.whatwg.org/.',
323
- /**
327
+ xmlHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
328
+ 'Synchronous `XMLHttpRequest` on the main thread is deprecated because of its detrimental effects to the end user\u2019s experience. For more help, check https://xhr.spec.whatwg.org/.',
329
+ /**
324
330
  *@description TODO(crbug.com/1320365): Description needed for translation
325
331
  */
326
- xrSupportsSession:
327
- '`supportsSession()` is deprecated. Please use `isSessionSupported()` and check the resolved boolean value instead.',
328
- };
332
+ xrSupportsSession:
333
+ '`supportsSession()` is deprecated. Please use `isSessionSupported()` and check the resolved boolean value instead.',
334
+ };
329
335
  const str_ = i18n.i18n.registerUIStrings('models/issues_manager/DeprecationIssue.ts', UIStrings);
330
336
  const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
331
337
 
@@ -359,11 +365,6 @@ export class DeprecationIssue extends Issue {
359
365
  messageFunction = i18nLazyString(UIStrings.authorizationCoveredByWildcard);
360
366
  milestone = 97;
361
367
  break;
362
- case Protocol.Audits.DeprecationIssueType.BatteryStatusInsecureOrigin:
363
- messageFunction = i18nLazyString(UIStrings.batteryStatusInsecureOrigin);
364
- feature = 4878376799043584;
365
- milestone = 103;
366
- break;
367
368
  case Protocol.Audits.DeprecationIssueType.CanRequestURLHTTPContainingNewline:
368
369
  messageFunction = i18nLazyString(UIStrings.canRequestURLHTTPContainingNewline);
369
370
  feature = 5735596811091968;
@@ -8,7 +8,11 @@ import * as Bindings from '../../models/bindings/bindings.js';
8
8
  import * as TextUtils from '../../models/text_utils/text_utils.js';
9
9
  import * as Workspace from '../../models/workspace/workspace.js';
10
10
 
11
- import {ContentSecurityPolicyIssue, trustedTypesPolicyViolationCode, trustedTypesSinkViolationCode} from './ContentSecurityPolicyIssue.js';
11
+ import {
12
+ ContentSecurityPolicyIssue,
13
+ trustedTypesPolicyViolationCode,
14
+ trustedTypesSinkViolationCode,
15
+ } from './ContentSecurityPolicyIssue.js';
12
16
  import type {Issue, IssueKind} from './Issue.js';
13
17
  import {toZeroBasedLocation} from './Issue.js';
14
18
  import type {IssueAddedEvent, IssuesManager} from './IssuesManager.js';
@@ -29,25 +29,22 @@
29
29
  */
30
30
 
31
31
  import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
32
- type Tokenizer =
33
- (line: string, callback: (value: string, style: string|null) => void) => void;
32
+ type Tokenizer = (line: string, callback: (value: string, style: string|null) => void) => void;
34
33
 
35
34
  export function createCssTokenizer(): Tokenizer {
36
- async function tokenize(
37
- line: string, callback: (value: string, style: string|null) => void): Promise<void> {
38
- const streamParser = await CodeMirror.cssStreamParser();
39
- const stream = new CodeMirror.StringStream();
40
- stream.string = line;
35
+ async function tokenize(line: string, callback: (value: string, style: string|null) => void): Promise<void> {
36
+ const streamParser = await CodeMirror.cssStreamParser();
37
+ const stream = new CodeMirror.StringStream();
38
+ stream.string = line;
41
39
 
42
- const startState = streamParser.startState();
43
- let lastPos = stream.pos;
44
- while (!stream.eol()) {
45
- const token = streamParser.token(stream, startState);
46
- const segment = stream.current().substring(lastPos, stream.pos);
47
- callback(segment, token);
48
- lastPos = stream.pos;
49
- }
40
+ const startState = streamParser.startState();
41
+ let lastPos = stream.pos;
42
+ while (!stream.eol()) {
43
+ const token = streamParser.token(stream, startState);
44
+ const segment = stream.current().substring(lastPos, stream.pos);
45
+ callback(segment, token);
46
+ lastPos = stream.pos;
50
47
  }
51
- return tokenize;
48
+ }
49
+ return tokenize;
52
50
  }
53
-
@@ -1211,7 +1211,7 @@ export class TimelineModelImpl {
1211
1211
 
1212
1212
  private processBrowserEvent(event: SDK.TracingModel.Event): void {
1213
1213
  if (event.name === RecordType.LatencyInfoFlow) {
1214
- if (event.args.chrome_latency_info.trace_id) {
1214
+ if (event.args.chrome_latency_info?.trace_id) {
1215
1215
  this.knownInputEvents.add(event.args.chrome_latency_info.trace_id);
1216
1216
  }
1217
1217
  return;