chrome-devtools-frontend 1.0.996595 → 1.0.998045
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +1 -0
- package/README.md +2 -2
- package/docs/design_guidelines.md +1 -1
- package/front_end/core/i18n/locales/en-US.json +6 -99
- package/front_end/core/i18n/locales/en-XL.json +6 -99
- package/front_end/core/root/Runtime.ts +5 -0
- package/front_end/core/sdk/DebuggerModel.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +1 -2
- package/front_end/entrypoints/main/MainImpl.ts +1 -1
- package/front_end/generated/InspectorBackendCommands.js +0 -1
- package/front_end/generated/protocol.ts +5 -17
- package/front_end/models/bindings/BreakpointManager.ts +27 -3
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +9 -0
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +13 -0
- package/front_end/models/issues_manager/DeprecationIssue.ts +376 -117
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +1 -1
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +1 -1
- package/front_end/panels/css_overview/cssOverview.css +4 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +19 -9
- package/front_end/panels/elements/components/adornerSettingsPane.css +5 -0
- package/front_end/panels/elements/stylesSectionTree.css +4 -4
- package/front_end/panels/sources/DebuggerPlugin.ts +6 -2
- package/front_end/panels/sources/SourcesPanel.ts +22 -6
- package/front_end/panels/sources/sources-legacy.ts +1 -1
- package/front_end/panels/sources/sources-meta.ts +61 -7
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -1
- package/front_end/ui/legacy/SplitWidget.ts +17 -7
- package/front_end/ui/legacy/themeColors.css +2 -0
- package/front_end/ui/legacy/toolbar.css +5 -1
- package/package.json +1 -1
- package/scripts/eslint_rules/lib/lit_template_result_or_nothing.js +140 -0
- package/scripts/eslint_rules/lib/no_only_eslint_tests.js +5 -1
- package/scripts/eslint_rules/tests/lit_template_result_or_nothing_test.js +133 -0
- package/scripts/hosted_mode/server.js +1 -1
@@ -10,170 +10,322 @@ 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
|
-
|
13
|
+
const UIStrings =
|
14
|
+
{
|
15
|
+
// Store strings used across messages in this block.
|
16
|
+
/**
|
16
17
|
* @description This links to the chrome feature status page when one exists.
|
17
18
|
*/
|
18
|
-
|
19
|
-
|
19
|
+
feature: 'Check the feature status page for more details.',
|
20
|
+
/**
|
20
21
|
* @description This links to the chromium dash schedule when a milestone is set.
|
21
22
|
* @example {100} milestone
|
22
23
|
*/
|
23
|
-
|
24
|
-
|
24
|
+
milestone: 'This change will go into effect with milestone {milestone}.',
|
25
|
+
/**
|
25
26
|
*@description Title of issue raised when a deprecated feature is used
|
26
27
|
*/
|
27
|
-
|
28
|
+
title: 'Deprecated Feature Used',
|
28
29
|
|
29
|
-
|
30
|
-
|
30
|
+
// Store alphabetized messages per DeprecationIssueType in this block.
|
31
|
+
/**
|
31
32
|
*@description TODO(crbug.com/1318846): Description needed for translation
|
32
33
|
*/
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
+
/**
|
42
|
+
*@description TODO(crbug.com/1320334): Description needed for translation
|
43
|
+
*/
|
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
|
+
/**
|
47
|
+
*@description TODO(crbug.com/1320335): Description needed for translation
|
48
|
+
*/
|
49
|
+
chromeLoadTimesConnectionInfo:
|
50
|
+
'`chrome.loadTimes()` is deprecated, instead use standardized API: Navigation Timing 2.',
|
51
|
+
/**
|
52
|
+
*@description TODO(crbug.com/1320336): Description needed for translation
|
53
|
+
*/
|
54
|
+
chromeLoadTimesFirstPaintAfterLoadTime:
|
55
|
+
'`chrome.loadTimes()` is deprecated, instead use standardized API: Paint Timing.',
|
56
|
+
/**
|
57
|
+
*@description TODO(crbug.com/1320337): Description needed for translation
|
58
|
+
*/
|
59
|
+
chromeLoadTimesWasAlternateProtocolAvailable:
|
60
|
+
'`chrome.loadTimes()` is deprecated, instead use standardized API: `nextHopProtocol` in Navigation Timing 2.',
|
61
|
+
/**
|
36
62
|
*@description TODO(crbug.com/1318847): Description needed for translation
|
37
63
|
*/
|
38
|
-
|
39
|
-
|
64
|
+
cookieWithTruncatingChar: 'Cookies containing a `\\(0|r|n)` character will be rejected instead of truncated.',
|
65
|
+
/**
|
40
66
|
*@description TODO(crbug.com/1318849): Description needed for translation
|
41
67
|
*/
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
+
/**
|
45
71
|
*@description TODO(crbug.com/1318850): Description needed for translation
|
46
72
|
*/
|
47
|
-
|
48
|
-
|
49
|
-
|
73
|
+
crossOriginWindowAlert:
|
74
|
+
'Triggering `window.alert` from cross origin iframes has been deprecated and will be removed in the future.',
|
75
|
+
/**
|
50
76
|
*@description TODO(crbug.com/1318851): Description needed for translation
|
51
77
|
*/
|
52
|
-
|
53
|
-
|
54
|
-
|
78
|
+
crossOriginWindowConfirm:
|
79
|
+
'Triggering `window.confirm` from cross origin iframes has been deprecated and will be removed in the future.',
|
80
|
+
/**
|
81
|
+
*@description TODO(crbug.com/1320339): Description needed for translation
|
82
|
+
*/
|
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
|
+
/**
|
86
|
+
*@description TODO(crbug.com/1320340): Description needed for translation
|
87
|
+
*/
|
88
|
+
customCursorIntersectsViewport:
|
89
|
+
'Custom cursors with size greater than 32x32 DIP intersecting native UI is deprecated and will be removed.',
|
90
|
+
/**
|
55
91
|
*@description This message is shown when the example deprecated feature is used
|
56
92
|
*/
|
57
|
-
|
58
|
-
|
93
|
+
deprecationExample: 'This is an example of a translated deprecation issue message.',
|
94
|
+
/**
|
59
95
|
*@description TODO(crbug.com/1318852): Description needed for translation
|
60
96
|
*/
|
61
|
-
|
62
|
-
|
63
|
-
|
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
|
+
/**
|
64
104
|
*@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.
|
65
105
|
*/
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
+
/**
|
69
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 deprecated.
|
70
110
|
*/
|
71
|
-
|
72
|
-
|
73
|
-
|
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
|
+
/**
|
74
114
|
*@description TODO(crbug.com/1318858): Description needed for translation
|
75
115
|
*/
|
76
|
-
|
77
|
-
|
78
|
-
|
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
|
+
/**
|
119
|
+
*@description TODO(crbug.com/1320342): Description needed for translation
|
120
|
+
*/
|
121
|
+
hostCandidateAttributeGetter:
|
122
|
+
'`RTCPeerConnectionIceErrorEvent.hostCandidate` is deprecated. Please use `RTCPeerConnectionIceErrorEvent.address` or `RTCPeerConnectionIceErrorEvent.port` instead.',
|
123
|
+
/**
|
124
|
+
*@description TODO(crbug.com/1320343): Description needed for translation
|
125
|
+
*/
|
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
|
+
/**
|
79
129
|
*@description TODO(crbug.com/1318860): Description needed for translation
|
80
130
|
*/
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
+
/**
|
84
134
|
*@description TODO(crbug.com/1318861): Description needed for translation
|
85
135
|
*/
|
86
|
-
|
87
|
-
|
88
|
-
|
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
|
+
/**
|
89
139
|
*@description TODO(crbug.com/1318863): Description needed for translation
|
90
140
|
*/
|
91
|
-
|
92
|
-
|
93
|
-
|
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
|
+
/**
|
94
144
|
*@description TODO(crbug.com/1318864): Description needed for translation
|
95
145
|
*/
|
96
|
-
|
97
|
-
|
98
|
-
|
146
|
+
legacyConstraintGoogSuspendBelowMinBitrate:
|
147
|
+
'Support for the `googSuspendBelowMinBitrate` constraint is about to be removed. Please stop using this legacy constraint.',
|
148
|
+
/**
|
99
149
|
*@description TODO(crbug.com/1318865): Description needed for translation
|
100
150
|
*/
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
151
|
+
localCSSFileExtensionRejected:
|
152
|
+
'CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.',
|
153
|
+
/**
|
154
|
+
*@description TODO(crbug.com/1320344): Description needed for translation
|
155
|
+
*/
|
156
|
+
mediaElementAudioSourceNode:
|
157
|
+
'Creating a `MediaElementAudioSourceNode` on an `OfflineAudioContext` is deprecated and will be removed.',
|
158
|
+
/**
|
159
|
+
*@description TODO(crbug.com/1320345): Description needed for translation
|
160
|
+
*/
|
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
|
+
/**
|
164
|
+
*@description TODO(crbug.com/1320346): Description needed for translation
|
165
|
+
*/
|
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
|
+
/**
|
169
|
+
*@description TODO(crbug.com/1320347): Description needed for translation
|
170
|
+
*/
|
171
|
+
noSysexWebMIDIWithoutPermission:
|
172
|
+
'Web MIDI will ask a permission to use even if the sysex is not specified in the `MIDIOptions`.',
|
173
|
+
/**
|
174
|
+
*@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
|
+
*/
|
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
|
+
/**
|
179
|
+
*@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
|
+
*/
|
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
|
+
/**
|
108
183
|
*@description TODO(crbug.com/1318867): Description needed for translation
|
109
184
|
*/
|
110
|
-
|
111
|
-
|
112
|
-
|
185
|
+
obsoleteWebRtcCipherSuite:
|
186
|
+
'Your partner is negotiating an obsolete (D)TLS version. Please check with your partner to have this fixed.',
|
187
|
+
/**
|
188
|
+
*@description TODO(crbug.com/1320349): Description needed for translation
|
189
|
+
*/
|
190
|
+
paymentRequestBasicCard: 'The `basic-card` payment method is deprecated and will be removed.',
|
191
|
+
/**
|
192
|
+
*@description TODO(crbug.com/1320350): Description needed for translation
|
193
|
+
*/
|
194
|
+
paymentRequestShowWithoutGesture:
|
195
|
+
'Calling `PaymentRequest.show()` without user activation is deprecated and will be removed.',
|
196
|
+
/**
|
113
197
|
*@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.
|
114
198
|
*/
|
115
|
-
|
116
|
-
|
117
|
-
|
199
|
+
pictureSourceSrc:
|
200
|
+
'`<source src>` with a `<picture>` parent is invalid and therefore ignored. Please use `<source srcset>` instead.',
|
201
|
+
/**
|
118
202
|
*@description TODO(crbug.com/1318869): Description needed for translation
|
119
203
|
*/
|
120
|
-
|
121
|
-
|
122
|
-
|
204
|
+
prefixedCancelAnimationFrame:
|
205
|
+
'`webkitCancelAnimationFrame` is vendor-specific. Please use the standard `cancelAnimationFrame` instead.',
|
206
|
+
/**
|
123
207
|
*@description TODO(crbug.com/1318871): Description needed for translation
|
124
208
|
*/
|
125
|
-
|
126
|
-
|
127
|
-
|
209
|
+
prefixedRequestAnimationFrame:
|
210
|
+
'`webkitRequestAnimationFrame` is vendor-specific. Please use the standard `requestAnimationFrame` instead.',
|
211
|
+
/**
|
212
|
+
*@description TODO(crbug.com/1320351): Description needed for translation
|
213
|
+
*/
|
214
|
+
prefixedStorageInfo:
|
215
|
+
'`window.webkitStorageInfo` is deprecated. Please use `navigator.webkitTemporaryStorage` or `navigator.webkitPersistentStorage` instead.',
|
216
|
+
/**
|
217
|
+
*@description TODO(crbug.com/1320352): Description needed for translation
|
218
|
+
*/
|
219
|
+
prefixedVideoDisplayingFullscreen:
|
220
|
+
'`HTMLVideoElement.webkitDisplayingFullscreen` is deprecated. Please use `Document.fullscreenElement` instead.',
|
221
|
+
/**
|
222
|
+
*@description TODO(crbug.com/1320353): Description needed for translation
|
223
|
+
*/
|
224
|
+
prefixedVideoEnterFullScreen:
|
225
|
+
'`HTMLVideoElement.webkitEnterFullScreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
|
226
|
+
/**
|
227
|
+
*@description TODO(crbug.com/1320353): Description needed for translation
|
228
|
+
*/
|
229
|
+
prefixedVideoEnterFullscreen:
|
230
|
+
'`HTMLVideoElement.webkitEnterFullscreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
|
231
|
+
/**
|
232
|
+
*@description TODO(crbug.com/1320354): Description needed for translation
|
233
|
+
*/
|
234
|
+
prefixedVideoExitFullScreen:
|
235
|
+
'`HTMLVideoElement.webkitExitFullsSreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
|
236
|
+
/**
|
237
|
+
*@description TODO(crbug.com/1320354): Description needed for translation
|
238
|
+
*/
|
239
|
+
prefixedVideoExitFullscreen:
|
240
|
+
'`HTMLVideoElement.webkitExitFullscreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
|
241
|
+
/**
|
242
|
+
*@description TODO(crbug.com/1320355): Description needed for translation
|
243
|
+
*/
|
244
|
+
prefixedVideoSupportsFullscreen:
|
245
|
+
'`HTMLVideoElement.webkitSupportsFullscreen` is deprecated. Please use `Document.fullscreenEnabled` instead.',
|
246
|
+
/**
|
247
|
+
*@description TODO(crbug.com/1320356): Description needed for translation
|
248
|
+
*/
|
249
|
+
rangeExpand: '`Range.expand()` is deprecated. Please use `Selection.modify()` instead.',
|
250
|
+
/**
|
251
|
+
*@description TODO(crbug.com/1320357): Description needed for translation
|
252
|
+
*/
|
253
|
+
requestedSubresourceWithEmbeddedCredentials:
|
254
|
+
'Subresource requests whose URLs contain embedded credentials (e.g. `https://user:pass@host/`) are blocked.',
|
255
|
+
/**
|
128
256
|
*@description TODO(crbug.com/1318872): Description needed for translation
|
129
257
|
*/
|
130
|
-
|
131
|
-
|
132
|
-
|
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
|
+
/**
|
133
261
|
*@description TODO(crbug.com/1318873): Description needed for translation
|
134
262
|
*/
|
135
|
-
|
136
|
-
|
137
|
-
|
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
|
+
/**
|
138
266
|
*@description TODO(crbug.com/1318874): Description needed for translation
|
139
267
|
*/
|
140
|
-
|
141
|
-
|
142
|
-
|
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
|
+
/**
|
143
271
|
*@description TODO(crbug.com/1318875): Description needed for translation
|
144
272
|
*/
|
145
|
-
|
146
|
-
|
147
|
-
|
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
|
+
/**
|
276
|
+
*@description TODO(crbug.com/1320358): Description needed for translation
|
277
|
+
*/
|
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
|
+
/**
|
281
|
+
*@description TODO(crbug.com/1320360): Description needed for translation
|
282
|
+
*/
|
283
|
+
rtcpMuxPolicyNegotiate: 'The `rtcpMuxPolicy` option is deprecated and will be removed.',
|
284
|
+
/**
|
148
285
|
*@description TODO(crbug.com/1318876): Description needed for translation
|
149
286
|
*/
|
150
|
-
|
151
|
-
|
152
|
-
|
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
|
+
/**
|
290
|
+
*@description TODO(crbug.com/1320361): Description needed for translation
|
291
|
+
*/
|
292
|
+
selectionAddRangeIntersect:
|
293
|
+
'The behavior that `Selection.addRange()` merges existing Range and the specified Range was removed.',
|
294
|
+
/**
|
153
295
|
*@description TODO(crbug.com/1318878): Description needed for translation
|
154
296
|
*/
|
155
|
-
|
156
|
-
|
157
|
-
|
297
|
+
sharedArrayBufferConstructedWithoutIsolation:
|
298
|
+
'`SharedArrayBuffer` will require cross-origin isolation. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.',
|
299
|
+
/**
|
300
|
+
*@description TODO(crbug.com/1320363): Description needed for translation
|
301
|
+
*/
|
302
|
+
textToSpeech_DisallowedByAutoplay:
|
303
|
+
'`speechSynthesis.speak()` without user activation is deprecated and will be removed.',
|
304
|
+
/**
|
158
305
|
*@description TODO(crbug.com/1318879): Description needed for translation
|
159
306
|
*/
|
160
|
-
|
161
|
-
|
162
|
-
|
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
|
+
/**
|
163
310
|
*@description TODO(crbug.com/1318880): Description needed for translation
|
164
311
|
*/
|
165
|
-
|
166
|
-
|
167
|
-
|
312
|
+
webCodecsVideoFrameDefaultTimestamp:
|
313
|
+
'Constructing a `VideoFrame` without a timestamp is deprecated and support will be removed. Please provide a timestamp via `VideoFrameInit`.',
|
314
|
+
/**
|
168
315
|
*@description TODO(crbug.com/1318881): Description needed for translation
|
169
316
|
*/
|
170
|
-
|
171
|
-
|
317
|
+
xhrJSONEncodingDetection: 'UTF-16 is not supported by response json in `XMLHttpRequest`',
|
318
|
+
/**
|
172
319
|
*@description TODO(crbug.com/1318882): Description needed for translation
|
173
320
|
*/
|
174
|
-
|
175
|
-
|
176
|
-
|
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
|
+
/**
|
324
|
+
*@description TODO(crbug.com/1320365): Description needed for translation
|
325
|
+
*/
|
326
|
+
xrSupportsSession:
|
327
|
+
'`supportsSession()` is deprecated. Please use `isSessionSupported()` and check the resolved boolean value instead.',
|
328
|
+
};
|
177
329
|
const str_ = i18n.i18n.registerUIStrings('models/issues_manager/DeprecationIssue.ts', UIStrings);
|
178
330
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
179
331
|
|
@@ -181,14 +333,9 @@ export class DeprecationIssue extends Issue {
|
|
181
333
|
#issueDetails: Protocol.Audits.DeprecationIssueDetails;
|
182
334
|
|
183
335
|
constructor(issueDetails: Protocol.Audits.DeprecationIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
|
184
|
-
let typeCode = String(issueDetails.type);
|
185
|
-
// TODO(crbug.com/1264960): Remove legacy type when issues are translated.
|
186
|
-
if (issueDetails.type === Protocol.Audits.DeprecationIssueType.Untranslated) {
|
187
|
-
typeCode = String(issueDetails.deprecationType);
|
188
|
-
}
|
189
336
|
const issueCode = [
|
190
337
|
Protocol.Audits.InspectorIssueCode.DeprecationIssue,
|
191
|
-
|
338
|
+
issueDetails.type,
|
192
339
|
].join('::');
|
193
340
|
super({code: issueCode, umaCode: 'DeprecationIssue'}, issuesModel);
|
194
341
|
this.#issueDetails = issueDetails;
|
@@ -212,6 +359,27 @@ export class DeprecationIssue extends Issue {
|
|
212
359
|
messageFunction = i18nLazyString(UIStrings.authorizationCoveredByWildcard);
|
213
360
|
milestone = 97;
|
214
361
|
break;
|
362
|
+
case Protocol.Audits.DeprecationIssueType.BatteryStatusInsecureOrigin:
|
363
|
+
messageFunction = i18nLazyString(UIStrings.batteryStatusInsecureOrigin);
|
364
|
+
feature = 4878376799043584;
|
365
|
+
milestone = 103;
|
366
|
+
break;
|
367
|
+
case Protocol.Audits.DeprecationIssueType.CanRequestURLHTTPContainingNewline:
|
368
|
+
messageFunction = i18nLazyString(UIStrings.canRequestURLHTTPContainingNewline);
|
369
|
+
feature = 5735596811091968;
|
370
|
+
break;
|
371
|
+
case Protocol.Audits.DeprecationIssueType.ChromeLoadTimesConnectionInfo:
|
372
|
+
messageFunction = i18nLazyString(UIStrings.chromeLoadTimesConnectionInfo);
|
373
|
+
feature = 5637885046816768;
|
374
|
+
break;
|
375
|
+
case Protocol.Audits.DeprecationIssueType.ChromeLoadTimesFirstPaintAfterLoadTime:
|
376
|
+
messageFunction = i18nLazyString(UIStrings.chromeLoadTimesFirstPaintAfterLoadTime);
|
377
|
+
feature = 5637885046816768;
|
378
|
+
break;
|
379
|
+
case Protocol.Audits.DeprecationIssueType.ChromeLoadTimesWasAlternateProtocolAvailable:
|
380
|
+
messageFunction = i18nLazyString(UIStrings.chromeLoadTimesWasAlternateProtocolAvailable);
|
381
|
+
feature = 5637885046816768;
|
382
|
+
break;
|
215
383
|
case Protocol.Audits.DeprecationIssueType.CookieWithTruncatingChar:
|
216
384
|
messageFunction = i18nLazyString(UIStrings.cookieWithTruncatingChar);
|
217
385
|
milestone = 103;
|
@@ -226,6 +394,15 @@ export class DeprecationIssue extends Issue {
|
|
226
394
|
case Protocol.Audits.DeprecationIssueType.CrossOriginWindowConfirm:
|
227
395
|
messageFunction = i18nLazyString(UIStrings.crossOriginWindowConfirm);
|
228
396
|
break;
|
397
|
+
case Protocol.Audits.DeprecationIssueType.CSSSelectorInternalMediaControlsOverlayCastButton:
|
398
|
+
messageFunction = i18nLazyString(UIStrings.cssSelectorInternalMediaControlsOverlayCastButton);
|
399
|
+
feature = 5714245488476160;
|
400
|
+
break;
|
401
|
+
case Protocol.Audits.DeprecationIssueType.CustomCursorIntersectsViewport:
|
402
|
+
messageFunction = i18nLazyString(UIStrings.customCursorIntersectsViewport);
|
403
|
+
feature = 5825971391299584;
|
404
|
+
milestone = 75;
|
405
|
+
break;
|
229
406
|
case Protocol.Audits.DeprecationIssueType.DeprecationExample:
|
230
407
|
messageFunction = i18nLazyString(UIStrings.deprecationExample);
|
231
408
|
feature = 5684289032159232;
|
@@ -235,6 +412,11 @@ export class DeprecationIssue extends Issue {
|
|
235
412
|
messageFunction = i18nLazyString(UIStrings.documentDomainSettingWithoutOriginAgentClusterHeader);
|
236
413
|
milestone = 106;
|
237
414
|
break;
|
415
|
+
case Protocol.Audits.DeprecationIssueType.EventPath:
|
416
|
+
messageFunction = i18nLazyString(UIStrings.eventPath);
|
417
|
+
feature = 5726124632965120;
|
418
|
+
milestone = 109;
|
419
|
+
break;
|
238
420
|
case Protocol.Audits.DeprecationIssueType.GeolocationInsecureOrigin:
|
239
421
|
messageFunction = i18nLazyString(UIStrings.geolocationInsecureOrigin);
|
240
422
|
break;
|
@@ -244,6 +426,14 @@ export class DeprecationIssue extends Issue {
|
|
244
426
|
case Protocol.Audits.DeprecationIssueType.GetUserMediaInsecureOrigin:
|
245
427
|
messageFunction = i18nLazyString(UIStrings.getUserMediaInsecureOrigin);
|
246
428
|
break;
|
429
|
+
case Protocol.Audits.DeprecationIssueType.HostCandidateAttributeGetter:
|
430
|
+
messageFunction = i18nLazyString(UIStrings.hostCandidateAttributeGetter);
|
431
|
+
break;
|
432
|
+
case Protocol.Audits.DeprecationIssueType.InsecurePrivateNetworkSubresourceRequest:
|
433
|
+
messageFunction = i18nLazyString(UIStrings.insecurePrivateNetworkSubresourceRequest);
|
434
|
+
feature = 5436853517811712;
|
435
|
+
milestone = 92;
|
436
|
+
break;
|
247
437
|
case Protocol.Audits.DeprecationIssueType.LegacyConstraintGoogCpuOveruseDetection:
|
248
438
|
messageFunction = i18nLazyString(UIStrings.legacyConstraintGoogCpuOveruseDetection);
|
249
439
|
milestone = 103;
|
@@ -264,13 +454,45 @@ export class DeprecationIssue extends Issue {
|
|
264
454
|
messageFunction = i18nLazyString(UIStrings.localCSSFileExtensionRejected);
|
265
455
|
milestone = 64;
|
266
456
|
break;
|
457
|
+
case Protocol.Audits.DeprecationIssueType.MediaElementAudioSourceNode:
|
458
|
+
messageFunction = i18nLazyString(UIStrings.mediaElementAudioSourceNode);
|
459
|
+
feature = 5258622686724096;
|
460
|
+
milestone = 71;
|
461
|
+
break;
|
462
|
+
case Protocol.Audits.DeprecationIssueType.MediaSourceAbortRemove:
|
463
|
+
messageFunction = i18nLazyString(UIStrings.mediaSourceAbortRemove);
|
464
|
+
feature = 6107495151960064;
|
465
|
+
break;
|
466
|
+
case Protocol.Audits.DeprecationIssueType.MediaSourceDurationTruncatingBuffered:
|
467
|
+
messageFunction = i18nLazyString(UIStrings.mediaSourceDurationTruncatingBuffered);
|
468
|
+
feature = 6107495151960064;
|
469
|
+
break;
|
470
|
+
case Protocol.Audits.DeprecationIssueType.NoSysexWebMIDIWithoutPermission:
|
471
|
+
messageFunction = i18nLazyString(UIStrings.noSysexWebMIDIWithoutPermission);
|
472
|
+
feature = 5138066234671104;
|
473
|
+
milestone = 82;
|
474
|
+
break;
|
267
475
|
case Protocol.Audits.DeprecationIssueType.NotificationInsecureOrigin:
|
268
476
|
messageFunction = i18nLazyString(UIStrings.notificationInsecureOrigin);
|
269
477
|
break;
|
478
|
+
case Protocol.Audits.DeprecationIssueType.NotificationPermissionRequestedIframe:
|
479
|
+
messageFunction = i18nLazyString(UIStrings.notificationPermissionRequestedIframe);
|
480
|
+
feature = 6451284559265792;
|
481
|
+
break;
|
270
482
|
case Protocol.Audits.DeprecationIssueType.ObsoleteWebRtcCipherSuite:
|
271
483
|
messageFunction = i18nLazyString(UIStrings.obsoleteWebRtcCipherSuite);
|
272
484
|
milestone = 81;
|
273
485
|
break;
|
486
|
+
case Protocol.Audits.DeprecationIssueType.PaymentRequestBasicCard:
|
487
|
+
messageFunction = i18nLazyString(UIStrings.paymentRequestBasicCard);
|
488
|
+
feature = 5730051011117056;
|
489
|
+
milestone = 100;
|
490
|
+
break;
|
491
|
+
case Protocol.Audits.DeprecationIssueType.PaymentRequestShowWithoutGesture:
|
492
|
+
messageFunction = i18nLazyString(UIStrings.paymentRequestShowWithoutGesture);
|
493
|
+
feature = 5948593429020672;
|
494
|
+
milestone = 102;
|
495
|
+
break;
|
274
496
|
case Protocol.Audits.DeprecationIssueType.PictureSourceSrc:
|
275
497
|
messageFunction = i18nLazyString(UIStrings.pictureSourceSrc);
|
276
498
|
break;
|
@@ -280,6 +502,34 @@ export class DeprecationIssue extends Issue {
|
|
280
502
|
case Protocol.Audits.DeprecationIssueType.PrefixedRequestAnimationFrame:
|
281
503
|
messageFunction = i18nLazyString(UIStrings.prefixedRequestAnimationFrame);
|
282
504
|
break;
|
505
|
+
case Protocol.Audits.DeprecationIssueType.PrefixedStorageInfo:
|
506
|
+
messageFunction = i18nLazyString(UIStrings.prefixedStorageInfo);
|
507
|
+
break;
|
508
|
+
case Protocol.Audits.DeprecationIssueType.PrefixedVideoDisplayingFullscreen:
|
509
|
+
messageFunction = i18nLazyString(UIStrings.prefixedVideoDisplayingFullscreen);
|
510
|
+
break;
|
511
|
+
case Protocol.Audits.DeprecationIssueType.PrefixedVideoEnterFullScreen:
|
512
|
+
messageFunction = i18nLazyString(UIStrings.prefixedVideoEnterFullScreen);
|
513
|
+
break;
|
514
|
+
case Protocol.Audits.DeprecationIssueType.PrefixedVideoEnterFullscreen:
|
515
|
+
messageFunction = i18nLazyString(UIStrings.prefixedVideoEnterFullscreen);
|
516
|
+
break;
|
517
|
+
case Protocol.Audits.DeprecationIssueType.PrefixedVideoExitFullScreen:
|
518
|
+
messageFunction = i18nLazyString(UIStrings.prefixedVideoExitFullScreen);
|
519
|
+
break;
|
520
|
+
case Protocol.Audits.DeprecationIssueType.PrefixedVideoExitFullscreen:
|
521
|
+
messageFunction = i18nLazyString(UIStrings.prefixedVideoExitFullscreen);
|
522
|
+
break;
|
523
|
+
case Protocol.Audits.DeprecationIssueType.PrefixedVideoSupportsFullscreen:
|
524
|
+
messageFunction = i18nLazyString(UIStrings.prefixedVideoSupportsFullscreen);
|
525
|
+
break;
|
526
|
+
case Protocol.Audits.DeprecationIssueType.RangeExpand:
|
527
|
+
messageFunction = i18nLazyString(UIStrings.rangeExpand);
|
528
|
+
break;
|
529
|
+
case Protocol.Audits.DeprecationIssueType.RequestedSubresourceWithEmbeddedCredentials:
|
530
|
+
messageFunction = i18nLazyString(UIStrings.requestedSubresourceWithEmbeddedCredentials);
|
531
|
+
feature = 5669008342777856;
|
532
|
+
break;
|
283
533
|
case Protocol.Audits.DeprecationIssueType.RTCConstraintEnableDtlsSrtpFalse:
|
284
534
|
messageFunction = i18nLazyString(UIStrings.rtcConstraintEnableDtlsSrtpFalse);
|
285
535
|
milestone = 97;
|
@@ -296,17 +546,32 @@ export class DeprecationIssue extends Issue {
|
|
296
546
|
messageFunction = i18nLazyString(UIStrings.rtcPeerConnectionLegacyCreateWithMediaConstraints);
|
297
547
|
milestone = 103;
|
298
548
|
break;
|
549
|
+
case Protocol.Audits.DeprecationIssueType.RTCPeerConnectionSdpSemanticsPlanB:
|
550
|
+
messageFunction = i18nLazyString(UIStrings.rtcPeerConnectionSdpSemanticsPlanB);
|
551
|
+
feature = 5823036655665152;
|
552
|
+
milestone = 93;
|
553
|
+
break;
|
554
|
+
case Protocol.Audits.DeprecationIssueType.RtcpMuxPolicyNegotiate:
|
555
|
+
messageFunction = i18nLazyString(UIStrings.rtcpMuxPolicyNegotiate);
|
556
|
+
feature = 5654810086866944;
|
557
|
+
milestone = 62;
|
558
|
+
break;
|
299
559
|
case Protocol.Audits.DeprecationIssueType.RTPDataChannel:
|
300
560
|
messageFunction = i18nLazyString(UIStrings.rtpDataChannel);
|
301
561
|
milestone = 88;
|
302
562
|
break;
|
563
|
+
case Protocol.Audits.DeprecationIssueType.SelectionAddRangeIntersect:
|
564
|
+
messageFunction = i18nLazyString(UIStrings.selectionAddRangeIntersect);
|
565
|
+
feature = 6680566019653632;
|
566
|
+
break;
|
303
567
|
case Protocol.Audits.DeprecationIssueType.SharedArrayBufferConstructedWithoutIsolation:
|
304
568
|
messageFunction = i18nLazyString(UIStrings.sharedArrayBufferConstructedWithoutIsolation);
|
305
569
|
milestone = 106;
|
306
570
|
break;
|
307
|
-
|
308
|
-
|
309
|
-
|
571
|
+
case Protocol.Audits.DeprecationIssueType.TextToSpeech_DisallowedByAutoplay:
|
572
|
+
messageFunction = i18nLazyString(UIStrings.textToSpeech_DisallowedByAutoplay);
|
573
|
+
feature = 5687444770914304;
|
574
|
+
milestone = 71;
|
310
575
|
break;
|
311
576
|
case Protocol.Audits.DeprecationIssueType.V8SharedArrayBufferConstructedInExtensionWithoutIsolation:
|
312
577
|
messageFunction = i18nLazyString(UIStrings.v8SharedArrayBufferConstructedInExtensionWithoutIsolation);
|
@@ -324,6 +589,10 @@ export class DeprecationIssue extends Issue {
|
|
324
589
|
case Protocol.Audits.DeprecationIssueType.XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
|
325
590
|
messageFunction = i18nLazyString(UIStrings.xmlHttpRequestSynchronousInNonWorkerOutsideBeforeUnload);
|
326
591
|
break;
|
592
|
+
case Protocol.Audits.DeprecationIssueType.XRSupportsSession:
|
593
|
+
messageFunction = i18nLazyString(UIStrings.xrSupportsSession);
|
594
|
+
milestone = 80;
|
595
|
+
break;
|
327
596
|
}
|
328
597
|
const links = [];
|
329
598
|
if (feature !== 0) {
|
@@ -370,16 +639,6 @@ export class DeprecationIssue extends Issue {
|
|
370
639
|
console.warn('Deprecation issue without details received.');
|
371
640
|
return [];
|
372
641
|
}
|
373
|
-
if (details.type !== Protocol.Audits.DeprecationIssueType.Untranslated &&
|
374
|
-
(details.deprecationType || details.message)) {
|
375
|
-
console.warn('Translated deprecation issue with malformed details received.');
|
376
|
-
return [];
|
377
|
-
}
|
378
|
-
if (details.type === Protocol.Audits.DeprecationIssueType.Untranslated &&
|
379
|
-
(!details.deprecationType || !details.message)) {
|
380
|
-
console.warn('Untranslated deprecation issue with malformed details received.');
|
381
|
-
return [];
|
382
|
-
}
|
383
642
|
return [new DeprecationIssue(details, issuesModel)];
|
384
643
|
}
|
385
644
|
}
|