chrome-devtools-frontend 1.0.1002543 → 1.0.1002867

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.
@@ -23,42 +23,42 @@ const UIStrings = {
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
+ * @description Title of issue raised when a deprecated feature is used
27
27
  */
28
28
  title: 'Deprecated Feature Used',
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
+ * @description TODO(crbug.com/1318846): Description needed for translation
33
33
  */
34
34
  authorizationCoveredByWildcard:
35
35
  'Authorization will not be covered by the wildcard symbol (*) in CORS `Access-Control-Allow-Headers` handling.',
36
36
  /**
37
- *@description TODO(crbug.com/1320334): Description needed for translation
37
+ * @description TODO(crbug.com/1320334): Description needed for translation
38
38
  */
39
39
  canRequestURLHTTPContainingNewline:
40
40
  '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.',
41
41
  /**
42
- *@description TODO(crbug.com/1320335): Description needed for translation
42
+ * @description TODO(crbug.com/1320335): Description needed for translation
43
43
  */
44
44
  chromeLoadTimesConnectionInfo:
45
45
  '`chrome.loadTimes()` is deprecated, instead use standardized API: Navigation Timing 2.',
46
46
  /**
47
- *@description TODO(crbug.com/1320336): Description needed for translation
47
+ * @description TODO(crbug.com/1320336): Description needed for translation
48
48
  */
49
49
  chromeLoadTimesFirstPaintAfterLoadTime:
50
50
  '`chrome.loadTimes()` is deprecated, instead use standardized API: Paint Timing.',
51
51
  /**
52
- *@description TODO(crbug.com/1320337): Description needed for translation
52
+ * @description TODO(crbug.com/1320337): Description needed for translation
53
53
  */
54
54
  chromeLoadTimesWasAlternateProtocolAvailable:
55
55
  '`chrome.loadTimes()` is deprecated, instead use standardized API: `nextHopProtocol` in Navigation Timing 2.',
56
56
  /**
57
- *@description TODO(crbug.com/1318847): Description needed for translation
57
+ * @description TODO(crbug.com/1318847): Description needed for translation
58
58
  */
59
59
  cookieWithTruncatingChar: 'Cookies containing a `\\(0|r|n)` character will be rejected instead of truncated.',
60
60
  /**
61
- *@description This warning occurs when a frame accesses another frame's
61
+ * @description This warning occurs when a frame accesses another frame's
62
62
  * data after having set `document.domain` without having set the
63
63
  * `Origin-Agent-Cluster` http header. This is a companion warning to
64
64
  * `documentDomainSettingWithoutOriginAgentClusterHeader`, where that
@@ -69,31 +69,27 @@ const UIStrings = {
69
69
  crossOriginAccessBasedOnDocumentDomain:
70
70
  '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`.',
71
71
  /**
72
- *@description TODO(crbug.com/1318850): Description needed for translation
72
+ * @description Issue text shown when the web page uses a deprecated web API. The placeholder is
73
+ * the deprecated web API function.
74
+ * @example {window.alert} PH1
73
75
  */
74
- crossOriginWindowAlert:
75
- 'Triggering `window.alert` from cross origin iframes has been deprecated and will be removed in the future.',
76
+ crossOriginWindowApi: 'Triggering {PH1} from cross origin iframes has been deprecated and will be removed in the future.',
76
77
  /**
77
- *@description TODO(crbug.com/1318851): Description needed for translation
78
- */
79
- crossOriginWindowConfirm:
80
- 'Triggering `window.confirm` from cross origin iframes has been deprecated and will be removed in the future.',
81
- /**
82
- *@description TODO(crbug.com/1320339): Description needed for translation
78
+ * @description TODO(crbug.com/1320339): Description needed for translation
83
79
  */
84
80
  cssSelectorInternalMediaControlsOverlayCastButton:
85
81
  'The `disableRemotePlayback` attribute should be used in order to disable the default Cast integration instead of using `-internal-media-controls-overlay-cast-button` selector.',
86
82
  /**
87
- *@description TODO(crbug.com/1320340): Description needed for translation
83
+ * @description TODO(crbug.com/1320340): Description needed for translation
88
84
  */
89
85
  customCursorIntersectsViewport:
90
86
  'Custom cursors with size greater than 32x32 DIP intersecting native UI is deprecated and will be removed.',
91
87
  /**
92
- *@description This message is shown when the example deprecated feature is used
88
+ * @description This message is shown when the example deprecated feature is used
93
89
  */
94
90
  deprecationExample: 'This is an example of a translated deprecation issue message.',
95
91
  /**
96
- *@description This warning occurs when a script modifies `document.domain`
92
+ * @description This warning occurs when a script modifies `document.domain`
97
93
  * without having set on `Origin-Agent-Cluster` http header. In other
98
94
  * words, when a script relies on the default behaviour of
99
95
  * `Origin-Agent-Cluster` when setting document.domain.
@@ -101,151 +97,121 @@ const UIStrings = {
101
97
  documentDomainSettingWithoutOriginAgentClusterHeader:
102
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.',
103
99
  /**
104
- *@description Warning displayed to developers when the non-standard `Event.path` API is used to notify them that this API is deprecated.
100
+ * @description Warning displayed to developers when the non-standard `Event.path` API is used to notify them that this API is deprecated.
105
101
  */
106
102
  eventPath: '`Event.path` is deprecated and will be removed. Please use `Event.composedPath()` instead.',
107
103
  /**
108
- *@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.
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.
109
105
  */
110
106
  geolocationInsecureOrigin:
111
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.',
112
108
  /**
113
- *@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.
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.
114
110
  */
115
111
  geolocationInsecureOriginDeprecatedNotRemoved:
116
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.',
117
113
  /**
118
- *@description TODO(crbug.com/1318858): Description needed for translation
114
+ * @description TODO(crbug.com/1318858): Description needed for translation
119
115
  */
120
116
  getUserMediaInsecureOrigin:
121
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.',
122
118
  /**
123
- *@description TODO(crbug.com/1320342): Description needed for translation
119
+ * @description TODO(crbug.com/1320342): Description needed for translation
124
120
  */
125
121
  hostCandidateAttributeGetter:
126
122
  '`RTCPeerConnectionIceErrorEvent.hostCandidate` is deprecated. Please use `RTCPeerConnectionIceErrorEvent.address` or `RTCPeerConnectionIceErrorEvent.port` instead.',
127
123
  /**
128
- *@description TODO(crbug.com/1320343): Description needed for translation
124
+ * @description TODO(crbug.com/1320343): Description needed for translation
129
125
  */
130
126
  insecurePrivateNetworkSubresourceRequest:
131
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.',
132
128
  /**
133
- *@description A deprecation warning shown in the DevTools Issues tab.
129
+ * @description A deprecation warning shown in the DevTools Issues tab.
134
130
  * It's shown when a video conferencing website attempts to disable
135
131
  * use of IPv6 addresses with a non-standard API.
136
132
  */
137
133
  legacyConstraintGoogIPv6:
138
134
  'IPv6 is enabled-by-default and the ability to disable it using `googIPv6` will soon be removed. Please stop using this legacy constraint.',
139
135
  /**
140
- *@description TODO(crbug.com/1318865): Description needed for translation
136
+ * @description TODO(crbug.com/1318865): Description needed for translation
141
137
  */
142
138
  localCSSFileExtensionRejected:
143
139
  'CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.',
144
140
  /**
145
- *@description TODO(crbug.com/1320344): Description needed for translation
141
+ * @description TODO(crbug.com/1320344): Description needed for translation
146
142
  */
147
143
  mediaElementAudioSourceNode:
148
144
  'Creating a `MediaElementAudioSourceNode` on an `OfflineAudioContext` is deprecated and will be removed.',
149
145
  /**
150
- *@description TODO(crbug.com/1320345): Description needed for translation
146
+ * @description TODO(crbug.com/1320345): Description needed for translation
151
147
  */
152
148
  mediaSourceAbortRemove:
153
149
  '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.',
154
150
  /**
155
- *@description TODO(crbug.com/1320346): Description needed for translation
151
+ * @description TODO(crbug.com/1320346): Description needed for translation
156
152
  */
157
153
  mediaSourceDurationTruncatingBuffered:
158
154
  '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`.',
159
155
  /**
160
- *@description TODO(crbug.com/1320347): Description needed for translation
156
+ * @description TODO(crbug.com/1320347): Description needed for translation
161
157
  */
162
158
  noSysexWebMIDIWithoutPermission:
163
159
  'Web MIDI will ask a permission to use even if the sysex is not specified in the `MIDIOptions`.',
164
160
  /**
165
- *@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.
161
+ * @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.
166
162
  */
167
163
  notificationInsecureOrigin:
168
164
  '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.',
169
165
  /**
170
- *@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.
166
+ * @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.
171
167
  */
172
168
  notificationPermissionRequestedIframe:
173
169
  '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.',
174
170
  /**
175
- *@description TODO(crbug.com/1318867): Description needed for translation
171
+ * @description TODO(crbug.com/1318867): Description needed for translation
176
172
  */
177
173
  obsoleteWebRtcCipherSuite:
178
174
  'Your partner is negotiating an obsolete (D)TLS version. Please check with your partner to have this fixed.',
179
175
  /**
180
- *@description TODO(crbug.com/1320349): Description needed for translation
176
+ * @description TODO(crbug.com/1320349): Description needed for translation
181
177
  */
182
178
  paymentRequestBasicCard: 'The `basic-card` payment method is deprecated and will be removed.',
183
179
  /**
184
- *@description TODO(crbug.com/1320350): Description needed for translation
180
+ * @description TODO(crbug.com/1320350): Description needed for translation
185
181
  */
186
182
  paymentRequestShowWithoutGesture:
187
183
  'Calling `PaymentRequest.show()` without user activation is deprecated and will be removed.',
188
184
  /**
189
- *@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.
185
+ * @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.
190
186
  */
191
187
  pictureSourceSrc:
192
188
  '`<source src>` with a `<picture>` parent is invalid and therefore ignored. Please use `<source srcset>` instead.',
193
189
  /**
194
- *@description Warning displayed to developers when the vendor-prefixed method is used rather than the equivalent unprefixed method.
195
- */
196
- prefixedCancelAnimationFrame:
197
- '`webkitCancelAnimationFrame` is vendor-specific. Please use the standard `cancelAnimationFrame` instead.',
198
- /**
199
- *@description Warning displayed to developers when the vendor-prefixed method is used rather than the equivalent unprefixed method.
190
+ * @description Warning displayed to developers when the vendor-prefixed method is used rather than the equivalent unprefixed method.
191
+ * Both placeholders are Web API functions (single words).
192
+ * @example {webkitCancelAnimationFrame} PH1
193
+ * @example {cancelAnimationFrame} PH2
200
194
  */
201
- prefixedRequestAnimationFrame:
202
- '`webkitRequestAnimationFrame` is vendor-specific. Please use the standard `requestAnimationFrame` instead.',
195
+ vendorSpecificApi: '{PH1} is vendor-specific. Please use the standard {PH2} instead.',
203
196
  /**
204
- *@description TODO(crbug.com/1320351): Description needed for translation
197
+ * @description TODO(crbug.com/1320351): Description needed for translation
205
198
  */
206
199
  prefixedStorageInfo:
207
200
  '`window.webkitStorageInfo` is deprecated. Please use `navigator.webkitTemporaryStorage` or `navigator.webkitPersistentStorage` instead.',
208
201
  /**
209
- *@description TODO(crbug.com/1320352): Description needed for translation
210
- */
211
- prefixedVideoDisplayingFullscreen:
212
- '`HTMLVideoElement.webkitDisplayingFullscreen` is deprecated. Please use `Document.fullscreenElement` instead.',
213
- /**
214
- *@description TODO(crbug.com/1320353): Description needed for translation
215
- */
216
- prefixedVideoEnterFullScreen:
217
- '`HTMLVideoElement.webkitEnterFullScreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
218
- /**
219
- *@description TODO(crbug.com/1320353): Description needed for translation
220
- */
221
- prefixedVideoEnterFullscreen:
222
- '`HTMLVideoElement.webkitEnterFullscreen()` is deprecated. Please use `Element.requestFullscreen()` instead.',
223
- /**
224
- *@description TODO(crbug.com/1320354): Description needed for translation
225
- */
226
- prefixedVideoExitFullScreen:
227
- '`HTMLVideoElement.webkitExitFullsSreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
228
- /**
229
- *@description TODO(crbug.com/1320354): Description needed for translation
230
- */
231
- prefixedVideoExitFullscreen:
232
- '`HTMLVideoElement.webkitExitFullscreen()` is deprecated. Please use `Document.exitFullscreen()` instead.',
233
- /**
234
- *@description TODO(crbug.com/1320355): Description needed for translation
235
- */
236
- prefixedVideoSupportsFullscreen:
237
- '`HTMLVideoElement.webkitSupportsFullscreen` is deprecated. Please use `Document.fullscreenEnabled` instead.',
238
- /**
239
- *@description TODO(crbug.com/1320356): Description needed for translation
202
+ * @description Standard message when one web API is deprecated in favor of another. Both
203
+ * placeholders are always web API functions.
204
+ * @example {HTMLVideoElement.webkitDisplayingFullscreen} PH1
205
+ * @example {Document.fullscreenElement} PH2
240
206
  */
241
- rangeExpand: '`Range.expand()` is deprecated. Please use `Selection.modify()` instead.',
207
+ deprecatedWithReplacement: '{PH1} is deprecated. Please use {PH2} instead.',
242
208
  /**
243
- *@description TODO(crbug.com/1320357): Description needed for translation
209
+ * @description TODO(crbug.com/1320357): Description needed for translation
244
210
  */
245
211
  requestedSubresourceWithEmbeddedCredentials:
246
212
  'Subresource requests whose URLs contain embedded credentials (e.g. `https://user:pass@host/`) are blocked.',
247
213
  /**
248
- *@description A deprecation warning shown in the DevTools Issues tab.
214
+ * @description A deprecation warning shown in the DevTools Issues tab.
249
215
  * It's shown when a video conferencing website attempts to use a
250
216
  * non-standard crypto method when performing a handshake to set up a
251
217
  * connection with another endpoint.
@@ -253,7 +219,7 @@ const UIStrings = {
253
219
  rtcConstraintEnableDtlsSrtpFalse:
254
220
  '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.',
255
221
  /**
256
- *@description A deprecation warning shown in the DevTools Issues tab.
222
+ * @description A deprecation warning shown in the DevTools Issues tab.
257
223
  * It's shown when a video conferencing website uses a non-standard
258
224
  * API for controlling the crypto method used, but is not having an
259
225
  * effect because the desired behavior is already enabled-by-default.
@@ -261,7 +227,7 @@ const UIStrings = {
261
227
  rtcConstraintEnableDtlsSrtpTrue:
262
228
  '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.',
263
229
  /**
264
- *@description A deprecation warning shown in the DevTools Issues tab.
230
+ * @description A deprecation warning shown in the DevTools Issues tab.
265
231
  * The `Session Description Protocol`, or `SDP` for short, is a
266
232
  * protocol used by video conferencing websites to establish the
267
233
  * number of audio and/or video streams to send and/or receive. This
@@ -273,7 +239,7 @@ const UIStrings = {
273
239
  rtcPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics:
274
240
  '`Complex Plan B SDP` detected. This dialect of the `Session Description Protocol` is no longer supported. Please use `Unified Plan SDP` instead.',
275
241
  /**
276
- *@description A deprecation warning shown in the DevTools Issues tab.
242
+ * @description A deprecation warning shown in the DevTools Issues tab.
277
243
  * The `Session Description Protocol`, or `SDP` for short, is a
278
244
  * protocol used by video conferencing websites to establish the
279
245
  * number of audio and/or video streams to send and/or receive. This
@@ -285,13 +251,13 @@ const UIStrings = {
285
251
  rtcPeerConnectionSdpSemanticsPlanB:
286
252
  '`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.',
287
253
  /**
288
- *@description A deprecation warning shown in the DevTools Issues tab.
254
+ * @description A deprecation warning shown in the DevTools Issues tab.
289
255
  * It's shown then a video conferencing website attempts to use the
290
256
  * `RTCP MUX` policy.
291
257
  */
292
258
  rtcpMuxPolicyNegotiate: 'The `rtcpMuxPolicy` option is deprecated and will be removed.',
293
259
  /**
294
- *@description A deprecation warning shown in the DevTools Issues tab.
260
+ * @description A deprecation warning shown in the DevTools Issues tab.
295
261
  * It's shown when a video conferencing website attempts to turn on or
296
262
  * off a feature that has been removed, `RTP data channels`.
297
263
  * `RTP data channels` are used to send and receive arbitrary data,
@@ -301,33 +267,33 @@ const UIStrings = {
301
267
  rtpDataChannel:
302
268
  '`RTP data channels` are no longer supported. The `RtpDataChannels` constraint is currently ignored, and may cause an error at a later date.',
303
269
  /**
304
- *@description TODO(crbug.com/1318878): Description needed for translation
270
+ * @description TODO(crbug.com/1318878): Description needed for translation
305
271
  */
306
272
  sharedArrayBufferConstructedWithoutIsolation:
307
273
  '`SharedArrayBuffer` will require cross-origin isolation. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.',
308
274
  /**
309
- *@description A deprecation warning shown in the DevTools Issues tab.
275
+ * @description A deprecation warning shown in the DevTools Issues tab.
310
276
  * It's shown when the speech synthesis API is called before the page
311
277
  * receives a user activation.
312
278
  */
313
279
  textToSpeech_DisallowedByAutoplay:
314
280
  '`speechSynthesis.speak()` without user activation is deprecated and will be removed.',
315
281
  /**
316
- *@description TODO(crbug.com/1318879): Description needed for translation
282
+ * @description TODO(crbug.com/1318879): Description needed for translation
317
283
  */
318
284
  v8SharedArrayBufferConstructedInExtensionWithoutIsolation:
319
285
  'Extensions should opt into cross-origin isolation to continue using `SharedArrayBuffer`. See https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/.',
320
286
  /**
321
- *@description TODO(crbug.com/1318881): Description needed for translation
287
+ * @description TODO(crbug.com/1318881): Description needed for translation
322
288
  */
323
289
  xhrJSONEncodingDetection: 'UTF-16 is not supported by response json in `XMLHttpRequest`',
324
290
  /**
325
- *@description TODO(crbug.com/1318882): Description needed for translation
291
+ * @description TODO(crbug.com/1318882): Description needed for translation
326
292
  */
327
293
  xmlHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
328
294
  '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
295
  /**
330
- *@description Warning displayed to developers that instead of using
296
+ * @description Warning displayed to developers that instead of using
331
297
  * `supportsSession()`, which returns a promise that resolves if
332
298
  * the XR session can be supported and rejects if not, they should
333
299
  * use `isSessionSupported()` which will return a promise which
@@ -396,10 +362,10 @@ export class DeprecationIssue extends Issue {
396
362
  milestone = 106;
397
363
  break;
398
364
  case Protocol.Audits.DeprecationIssueType.CrossOriginWindowAlert:
399
- messageFunction = i18nLazyString(UIStrings.crossOriginWindowAlert);
365
+ messageFunction = i18nLazyString(UIStrings.crossOriginWindowApi, {PH1: 'window.alert'});
400
366
  break;
401
367
  case Protocol.Audits.DeprecationIssueType.CrossOriginWindowConfirm:
402
- messageFunction = i18nLazyString(UIStrings.crossOriginWindowConfirm);
368
+ messageFunction = i18nLazyString(UIStrings.crossOriginWindowApi, {PH1: 'window.confirm'});
403
369
  break;
404
370
  case Protocol.Audits.DeprecationIssueType.CSSSelectorInternalMediaControlsOverlayCastButton:
405
371
  messageFunction = i18nLazyString(UIStrings.cssSelectorInternalMediaControlsOverlayCastButton);
@@ -492,34 +458,49 @@ export class DeprecationIssue extends Issue {
492
458
  messageFunction = i18nLazyString(UIStrings.pictureSourceSrc);
493
459
  break;
494
460
  case Protocol.Audits.DeprecationIssueType.PrefixedCancelAnimationFrame:
495
- messageFunction = i18nLazyString(UIStrings.prefixedCancelAnimationFrame);
461
+ messageFunction = i18nLazyString(
462
+ UIStrings.vendorSpecificApi, {PH1: 'webkitCancelAnimationFrame', PH2: 'cancelAnimationFrame'});
496
463
  break;
497
464
  case Protocol.Audits.DeprecationIssueType.PrefixedRequestAnimationFrame:
498
- messageFunction = i18nLazyString(UIStrings.prefixedRequestAnimationFrame);
465
+ messageFunction = i18nLazyString(
466
+ UIStrings.vendorSpecificApi, {PH1: 'webkitRequestAnimationFrame', PH2: 'requestAnimationFrame'});
499
467
  break;
500
468
  case Protocol.Audits.DeprecationIssueType.PrefixedStorageInfo:
501
469
  messageFunction = i18nLazyString(UIStrings.prefixedStorageInfo);
502
470
  break;
503
471
  case Protocol.Audits.DeprecationIssueType.PrefixedVideoDisplayingFullscreen:
504
- messageFunction = i18nLazyString(UIStrings.prefixedVideoDisplayingFullscreen);
472
+ messageFunction = i18nLazyString(
473
+ UIStrings.deprecatedWithReplacement,
474
+ {PH1: 'HTMLVideoElement.webkitDisplayingFullscreen', PH2: 'Document.fullscreenElement'});
505
475
  break;
506
476
  case Protocol.Audits.DeprecationIssueType.PrefixedVideoEnterFullScreen:
507
- messageFunction = i18nLazyString(UIStrings.prefixedVideoEnterFullScreen);
477
+ messageFunction = i18nLazyString(
478
+ UIStrings.deprecatedWithReplacement,
479
+ {PH1: 'HTMLVideoElement.webkitEnterFullScreen()', PH2: 'Element.requestFullscreen()'});
508
480
  break;
509
481
  case Protocol.Audits.DeprecationIssueType.PrefixedVideoEnterFullscreen:
510
- messageFunction = i18nLazyString(UIStrings.prefixedVideoEnterFullscreen);
482
+ messageFunction = i18nLazyString(
483
+ UIStrings.deprecatedWithReplacement,
484
+ {PH1: 'HTMLVideoElement.webkitEnterFullscreen()', PH2: 'Element.requestFullscreen()'});
511
485
  break;
512
486
  case Protocol.Audits.DeprecationIssueType.PrefixedVideoExitFullScreen:
513
- messageFunction = i18nLazyString(UIStrings.prefixedVideoExitFullScreen);
487
+ messageFunction = i18nLazyString(
488
+ UIStrings.deprecatedWithReplacement,
489
+ {PH1: 'HTMLVideoElement.webkitExitFullScreen()', PH2: 'Document.exitFullscreen()'});
514
490
  break;
515
491
  case Protocol.Audits.DeprecationIssueType.PrefixedVideoExitFullscreen:
516
- messageFunction = i18nLazyString(UIStrings.prefixedVideoExitFullscreen);
492
+ messageFunction = i18nLazyString(
493
+ UIStrings.deprecatedWithReplacement,
494
+ {PH1: 'HTMLVideoElement.webkitExitFullscreen()', PH2: 'Document.exitFullscreen()'});
517
495
  break;
518
496
  case Protocol.Audits.DeprecationIssueType.PrefixedVideoSupportsFullscreen:
519
- messageFunction = i18nLazyString(UIStrings.prefixedVideoSupportsFullscreen);
497
+ messageFunction = i18nLazyString(
498
+ UIStrings.deprecatedWithReplacement,
499
+ {PH1: 'HTMLVideoElement.webkitSupportsFullscreen', PH2: 'Document.fullscreenEnabled'});
520
500
  break;
521
501
  case Protocol.Audits.DeprecationIssueType.RangeExpand:
522
- messageFunction = i18nLazyString(UIStrings.rangeExpand);
502
+ messageFunction =
503
+ i18nLazyString(UIStrings.deprecatedWithReplacement, {PH1: 'Range.expand()', PH2: 'Selection.modify()'});
523
504
  break;
524
505
  case Protocol.Audits.DeprecationIssueType.RequestedSubresourceWithEmbeddedCredentials:
525
506
  messageFunction = i18nLazyString(UIStrings.requestedSubresourceWithEmbeddedCredentials);
@@ -0,0 +1,3 @@
1
+ # Ensure that Attribution Reporting API response headers are valid
2
+
3
+ This page tries to use the Attribution Reporting API but failed because a response header was invalid.
@@ -232,6 +232,9 @@
232
232
 
233
233
  .sidebar-pane-section-toolbar.new-rule-toolbar {
234
234
  visibility: hidden;
235
+ margin-bottom: 5px;
236
+
237
+ --toolbar-height: 16px;
235
238
  }
236
239
 
237
240
  .styles-pane:not(.is-editing-style) .styles-section.matched-styles:not(.read-only):hover .sidebar-pane-section-toolbar.new-rule-toolbar {
@@ -23,6 +23,10 @@ const UIStrings = {
23
23
  * @description Noun, label for the column showing the associated HTML element in the issue details table.
24
24
  */
25
25
  element: 'Element',
26
+ /**
27
+ * @description Noun, label for the column showing the invalid header value in the issue details table.
28
+ */
29
+ invalidHeaderValue: 'Invalid Header Value',
26
30
  /**
27
31
  * @description Noun, label for the column showing the associated network request in the issue details table.
28
32
  */
@@ -74,6 +78,11 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
74
78
  this.appendColumnTitle(header, i18nString(UIStrings.element));
75
79
  this.appendColumnTitle(header, i18nString(UIStrings.untrustworthyOrigin));
76
80
  break;
81
+ case IssuesManager.AttributionReportingIssue.IssueCode.InvalidHeader:
82
+ this.appendColumnTitle(header, i18nString(UIStrings.frame));
83
+ this.appendColumnTitle(header, i18nString(UIStrings.request));
84
+ this.appendColumnTitle(header, i18nString(UIStrings.invalidHeaderValue));
85
+ break;
77
86
  case IssuesManager.AttributionReportingIssue.IssueCode.PermissionPolicyDisabled:
78
87
  this.appendColumnTitle(header, i18nString(UIStrings.frame));
79
88
  this.appendColumnTitle(header, i18nString(UIStrings.element));
@@ -107,6 +116,11 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
107
116
  this.#appendRequestOrEmptyCell(element, details.request);
108
117
  this.appendIssueDetailCell(element, details.invalidParameter || '');
109
118
  break;
119
+ case IssuesManager.AttributionReportingIssue.IssueCode.InvalidHeader:
120
+ this.#appendFrameOrEmptyCell(element, issue);
121
+ this.#appendRequestOrEmptyCell(element, details.request);
122
+ this.appendIssueDetailCell(element, details.invalidParameter || '');
123
+ break;
110
124
  case IssuesManager.AttributionReportingIssue.IssueCode.PermissionPolicyDisabled:
111
125
  this.#appendFrameOrEmptyCell(element, issue);
112
126
  await this.#appendElementOrEmptyCell(element, issue);
@@ -509,7 +509,8 @@ export const RuntimeSettings: RuntimeSetting[] = [
509
509
  value: 'snapshot',
510
510
  },
511
511
  ],
512
- learnMore: 'https://web.dev/lighthouse-user-flows/' as Platform.DevToolsPath.UrlString,
512
+ learnMore: 'https://github.com/GoogleChrome/lighthouse/blob/HEAD/docs/user-flows.md' as
513
+ Platform.DevToolsPath.UrlString,
513
514
  },
514
515
  {
515
516
  // This setting is disabled, but we keep it around to show in the UI.