chrome-devtools-frontend 1.0.930993 → 1.0.932348

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 (81) hide show
  1. package/config/gni/devtools_grd_files.gni +6 -2
  2. package/front_end/core/common/ParsedURL.ts +12 -10
  3. package/front_end/core/host/InspectorFrontendHostAPI.ts +8 -6
  4. package/front_end/core/i18n/locales/en-US.json +345 -12
  5. package/front_end/core/i18n/locales/en-XL.json +345 -12
  6. package/front_end/core/platform/DevToolsPath.ts +34 -0
  7. package/front_end/core/platform/platform.ts +2 -0
  8. package/front_end/core/protocol_client/NodeURL.ts +2 -1
  9. package/front_end/core/sdk/CSSStyleSheetHeader.ts +4 -2
  10. package/front_end/core/sdk/ChildTargetManager.ts +2 -0
  11. package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +4 -2
  12. package/front_end/core/sdk/DebuggerModel.ts +4 -3
  13. package/front_end/core/sdk/NetworkRequest.ts +3 -2
  14. package/front_end/core/sdk/Resource.ts +6 -5
  15. package/front_end/core/sdk/Script.ts +4 -2
  16. package/front_end/core/sdk/Target.ts +4 -0
  17. package/front_end/core/sdk/TracingModel.ts +8 -17
  18. package/front_end/entrypoint_template.html +1 -1
  19. package/front_end/entrypoints/formatter_worker/ESTreeWalker.ts +1 -1
  20. package/front_end/models/bindings/BreakpointManager.ts +6 -3
  21. package/front_end/models/bindings/ResourceMapping.ts +2 -1
  22. package/front_end/models/bindings/StylesSourceMapping.ts +2 -1
  23. package/front_end/models/emulation/DeviceModeModel.ts +1 -1
  24. package/front_end/models/persistence/IsolatedFileSystem.ts +9 -7
  25. package/front_end/models/persistence/IsolatedFileSystemManager.ts +8 -7
  26. package/front_end/models/persistence/PersistenceActions.ts +1 -1
  27. package/front_end/models/persistence/PlatformFileSystem.ts +4 -3
  28. package/front_end/models/text_utils/ContentProvider.ts +2 -1
  29. package/front_end/models/text_utils/StaticContentProvider.ts +4 -2
  30. package/front_end/models/workspace/UISourceCode.ts +3 -2
  31. package/front_end/panels/animation/AnimationGroupPreviewUI.ts +25 -25
  32. package/front_end/panels/animation/AnimationModel.ts +157 -156
  33. package/front_end/panels/animation/AnimationScreenshotPopover.ts +26 -26
  34. package/front_end/panels/animation/AnimationTimeline.ts +274 -260
  35. package/front_end/panels/animation/AnimationUI.ts +155 -145
  36. package/front_end/panels/application/BackForwardCacheStrings.ts +621 -0
  37. package/front_end/panels/application/BackForwardCacheView.ts +24 -8
  38. package/front_end/panels/application/ReportingApiReportsView.ts +3 -2
  39. package/front_end/panels/application/ReportingApiView.ts +1 -2
  40. package/front_end/panels/application/backForwardCacheView.css +10 -0
  41. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +48 -40
  42. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +37 -37
  43. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +23 -19
  44. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +56 -56
  45. package/front_end/panels/changes/ChangesView.ts +42 -225
  46. package/front_end/panels/changes/changes-legacy.ts +0 -2
  47. package/front_end/panels/changes/changes.ts +0 -6
  48. package/front_end/panels/changes/changesView.css +2 -69
  49. package/front_end/panels/changes/module.json +1 -1
  50. package/front_end/panels/console/ConsolePinPane.ts +80 -75
  51. package/front_end/panels/console/ConsoleView.ts +1 -9
  52. package/front_end/panels/console/consolePinPane.css +4 -1
  53. package/front_end/panels/elements/StylesSidebarPane.ts +2 -1
  54. package/front_end/panels/security/mainView.css +2 -1
  55. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +2 -1
  56. package/front_end/panels/sources/NavigatorView.ts +5 -2
  57. package/front_end/panels/sources/SourcesPanel.ts +28 -1
  58. package/front_end/panels/sources/sources-meta.ts +1 -4
  59. package/front_end/third_party/codemirror.next/bundle.ts +6 -4
  60. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  61. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
  62. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +30 -1
  63. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  64. package/front_end/third_party/codemirror.next/package.json +4 -3
  65. package/front_end/ui/components/buttons/Button.ts +22 -6
  66. package/front_end/ui/components/buttons/button.css +50 -4
  67. package/front_end/ui/components/diff_view/DiffView.ts +288 -0
  68. package/front_end/ui/components/diff_view/diffView.css +73 -0
  69. package/front_end/ui/components/diff_view/diff_view.ts +5 -0
  70. package/front_end/ui/components/docs/button/basic.html +28 -0
  71. package/front_end/ui/components/docs/button/basic.ts +43 -2
  72. package/front_end/ui/components/report_view/report.css +1 -0
  73. package/front_end/ui/components/text_editor/config.ts +34 -1
  74. package/front_end/ui/legacy/ForwardedInputEventHandler.ts +5 -3
  75. package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -4
  76. package/front_end/ui/legacy/themeColors.css +4 -0
  77. package/package.json +1 -1
  78. package/scripts/build/generate_css_js_files.js +1 -0
  79. package/scripts/migration/class-fields/migrate.js +1 -3
  80. package/front_end/panels/changes/ChangesHighlighter.ts +0 -179
  81. package/front_end/panels/changes/ChangesTextEditor.ts +0 -96
@@ -0,0 +1,621 @@
1
+ // Copyright 2021 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import * as i18n from '../../core/i18n/i18n.js';
6
+
7
+ const UIStrings = {
8
+ /**
9
+ * @description Description text for not restored reason NotMainFrame.
10
+ */
11
+ notMainFrame: 'Navigation happened in a frame other than the main frame.',
12
+ /**
13
+ * @description Description text for not restored reason BackForwardCacheDisabled.
14
+ */
15
+ backForwardCacheDisabled:
16
+ 'Back/forward cache is disabled by flags. Visit chrome://flags/#back-forward-cache to enable it locally on this device.',
17
+ /**
18
+ * @description Description text for not restored reason RelatedActiveContentsExist.
19
+ */
20
+ relatedActiveContentsExist:
21
+ 'The page was opened using `window.open()` and another tab has a reference to it, or the page opened a window.',
22
+ /**
23
+ * @description Description text for not restored reason HTTPStatusNotOK.
24
+ */
25
+ HTTPStatusNotOK: 'Only pages with a status code of 2XX can be cached.',
26
+ /**
27
+ * @description Description text for not restored reason SchemeNotHTTPOrHTTPS.
28
+ */
29
+ schemeNotHTTPOrHTTPS: 'Only pages whose URL scheme is HTTP / HTTPS can be cached.',
30
+ /**
31
+ * @description Description text for not restored reason Loading.
32
+ */
33
+ loading: 'The page did not finish loading before navigating away.',
34
+ /**
35
+ * @description Description text for not restored reason WasGrantedMediaAccess.
36
+ */
37
+ wasGrantedMediaAccess:
38
+ 'Pages that have granted access to record video or audio are not currently eligible for back/forward cache.',
39
+ /**
40
+ * @description Description text for not restored reason HTTPMethodNotGET.
41
+ */
42
+ HTTPMethodNotGET: 'Only pages loaded via a GET request are eligible for back/forward cache.',
43
+ /**
44
+ * @description Description text for not restored reason SubframeIsNavigating.
45
+ */
46
+ subframeIsNavigating: 'An iframe on the page started a navigation that did not complete.',
47
+ /**
48
+ * @description Description text for not restored reason Timeout.
49
+ */
50
+ timeout: 'The page exceeded the maximum time in back/forward cache and was expired.',
51
+ /**
52
+ * @description Description text for not restored reason CacheLimit.
53
+ */
54
+ cacheLimit: 'The page was evicted from the cache to allow another page to be cached.',
55
+ /**
56
+ * @description Description text for not restored reason JavaScriptExecution.
57
+ */
58
+ JavaScriptExecution: 'Chrome detected an attempt to execute JavaScript while in the cache.',
59
+ /**
60
+ * @description Description text for not restored reason RendererProcessKilled.
61
+ */
62
+ rendererProcessKilled: 'The renderer process for the page in back/forward cache was killed.',
63
+ /**
64
+ * @description Description text for not restored reason RendererProcessCrashed.
65
+ */
66
+ rendererProcessCrashed: 'The renderer process for the page in back/forward cache crashed.',
67
+ /**
68
+ * @description Description text for not restored reason GrantedMediaStreamAccess.
69
+ */
70
+ grantedMediaStreamAccess:
71
+ 'Pages that have granted media stream access are not currently eligible for back/forward cache.',
72
+ /**
73
+ * @description Description text for not restored reason CacheFlushed.
74
+ */
75
+ cacheFlushed: 'The cache was intentionally cleared.',
76
+ /**
77
+ * @description Description text for not restored reason ServiceWorkerVersionActivation.
78
+ */
79
+ serviceWorkerVersionActivation: 'The page was evicted from back/forward cache due to a service worker activation.',
80
+ /**
81
+ * @description Description text for not restored reason SessionRestored.
82
+ */
83
+ sessionRestored: 'Chrome restarted and cleared the back/forward cache entries.',
84
+ /**
85
+ * @description Description text for not restored reason ServiceWorkerPostMessage.
86
+ */
87
+ serviceWorkerPostMessage: 'A service worker attempted to send the page in back/forward cache a `MessageEvent`.',
88
+ /**
89
+ * @description Description text for not restored reason EnteredBackForwardCacheBeforeServiceWorkerHostAdded.
90
+ */
91
+ enteredBackForwardCacheBeforeServiceWorkerHostAdded:
92
+ 'A service worker was activated while the page was in back/forward cache.',
93
+ /**
94
+ * @description Description text for not restored reason ServiceWorkerClaim.
95
+ */
96
+ serviceWorkerClaim: 'The page was claimed by a service worker while it is in back/forward cache.',
97
+ /**
98
+ * @description Description text for not restored reason HaveInnerContents.
99
+ */
100
+ haveInnerContents: 'Pages that use portals are not currently eligible for back/forward cache.',
101
+ /**
102
+ * @description Description text for not restored reason TimeoutPuttingInCache.
103
+ */
104
+ timeoutPuttingInCache:
105
+ 'The page timed out entering back/forward cache (likely due to long-running pagehide handlers).',
106
+ /**
107
+ * @description Description text for not restored reason BackForwardCacheDisabledByLowMemory.
108
+ */
109
+ backForwardCacheDisabledByLowMemory: 'Back/forward cache is disabled due to insufficient memory.',
110
+ /**
111
+ * @description Description text for not restored reason BackForwardcCacheDisabledByCommandLine.
112
+ */
113
+ backForwardCacheDisabledByCommandLine: 'Back/forward cache is disabled by the command line.',
114
+ /**
115
+ * @description Description text for not restored reason NetworkRequestDatapipeDrainedAsBytesConsumer.
116
+ */
117
+ networkRequestDatapipeDrainedAsBytesConsumer:
118
+ 'Pages that have inflight fetch() or XHR are not currently eligible for back/forward cache.',
119
+ /**
120
+ * @description Description text for not restored reason NetworkRequestRedirected.
121
+ */
122
+ networkRequestRedirected:
123
+ 'The page was evicted from back/forward cache because an active network request involved a redirect.',
124
+ /**
125
+ * @description Description text for not restored reason NetworkRequestTimeout.
126
+ */
127
+ networkRequestTimeout:
128
+ 'The page was evicted from the cache because a network connection was open too long. Chrome limits the amount of time that a page may receive data while cached.',
129
+ /**
130
+ * @description Description text for not restored reason NetworkExceedsBufferLimit.
131
+ */
132
+ networkExceedsBufferLimit:
133
+ 'The page was evicted from the cache because an active network connection received too much data. Chrome limits the amount of data that a page may receive while cached.',
134
+ /**
135
+ * @description Description text for not restored reason NavigationCancelledWhileRestoring.
136
+ */
137
+ navigationCancelledWhileRestoring:
138
+ 'Navigation was cancelled before the page could be restored from back/forward cache.',
139
+ /**
140
+ * @description Description text for not restored reason BackForwardCacheDisabledForPrerender.
141
+ */
142
+ backForwardCacheDisabledForPrerender: 'Back/forward cache is disabled for prerenderer.',
143
+ /**
144
+ * @description Description text for not restored reason userAgentOverrideDiffers.
145
+ */
146
+ userAgentOverrideDiffers: 'Browser has changed the user agent override header.',
147
+ /**
148
+ * @description Description text for not restored reason ForegroundCacheLimit.
149
+ */
150
+ foregroundCacheLimit: 'The page was evicted from the cache to allow another page to be cached.',
151
+ /**
152
+ * @description Description text for not restored reason BackForwardCacheDisabledForDelegate.
153
+ */
154
+ backForwardCacheDisabledForDelegate: 'Back/forward cache is not supported by delegate.',
155
+ /**
156
+ * @description Description text for not restored reason OptInUnloadHeaderNotPresent.
157
+ */
158
+ optInUnloadHeaderNotPresent: 'The page has unload handler without the back/forward cache opt-in header.',
159
+ /**
160
+ * @description Description text for not restored reason UnloadHandlerExistsInMainFrame.
161
+ */
162
+ unloadHandlerExistsInMainFrame: 'The page has an unload handler in the main frame.',
163
+ /**
164
+ * @description Description text for not restored reason UnloadHandlerExistsInSubFrame.
165
+ */
166
+ unloadHandlerExistsInSubFrame: 'The page has an unload handler in a sub frame.',
167
+ /**
168
+ * @description Description text for not restored reason ServiceWorkerUnregistration.
169
+ */
170
+ serviceWorkerUnregistration: 'ServiceWorker was unregistered while a page was in back/forward cache.',
171
+ /**
172
+ * @description Description text for not restored reason NoResponseHead.
173
+ */
174
+ noResponseHead: 'Pages that do not have a valid response head cannot enter back/forward cache.',
175
+ /**
176
+ * @description Description text for not restored reason CacheControlNoStore.
177
+ */
178
+ cacheControlNoStore: 'Pages with cache-control:no-store header cannot enter back/forward cache.',
179
+ /**
180
+ * @description Description text for not restored reason IneligibleAPI.
181
+ */
182
+ ineligibleAPI: 'Ineligible APIs were used.',
183
+ /**
184
+ * @description Description text for not restored reason InternalError.
185
+ */
186
+ internalError: 'Internal error.',
187
+ /**
188
+ * @description Description text for not restored reason WebSocket.
189
+ */
190
+ webSocket: 'Pages with WebSocket cannot enter back/forward cache.',
191
+ /**
192
+ * @description Description text for not restored reason WebTransport.
193
+ */
194
+ webTransport: 'Pages with WebTransport cannot enter back/forward cache.',
195
+ /**
196
+ * @description Description text for not restored reason WebRTC.
197
+ */
198
+ webRTC: 'Pages with WebRTC cannot enter back/forward cache.',
199
+ /**
200
+ * @description Description text for not restored reason MainResourceHasCacheControlNoStore.
201
+ */
202
+ mainResourceHasCacheControlNoStore:
203
+ 'Pages whose main resource has cache-control:no-store cannot enter back/forward cache.',
204
+ /**
205
+ * @description Description text for not restored reason MainResourceHasCacheControlNoCache.
206
+ */
207
+ mainResourceHasCacheControlNoCache:
208
+ 'Pages whose main resource has cache-control:no-cache cannot enter back/forward cache.',
209
+ /**
210
+ * @description Description text for not restored reason SubresourceHasCacheControlNoStore.
211
+ */
212
+ subresourceHasCacheControlNoStore:
213
+ 'Pages whose subresource has cache-control:no-store cannot enter back/forward cache.',
214
+ /**
215
+ * @description Description text for not restored reason SubresourceHasCacheControlNoCache.
216
+ */
217
+ subresourceHasCacheControlNoCache:
218
+ 'Pages whose subresource has cache-control:no-cache cannot enter back/forward cache.',
219
+ /**
220
+ * @description Description text for not restored reason ContainsPlugins.
221
+ */
222
+ containsPlugins: 'Pages containing plugins are not currently eligible for back/forward cache.',
223
+ /**
224
+ * @description Description text for not restored reason DocumentLoaded.
225
+ */
226
+ documentLoaded: 'The document did not finish loading before navigating away.',
227
+ /**
228
+ * @description Description text for not restored reason DedicatedWorkerOrWorklet.
229
+ */
230
+ dedicatedWorkerOrWorklet:
231
+ 'Pages that use a dedicated worker or worklet are not currently eligible for back/forward cache.',
232
+ /**
233
+ * @description Description text for not restored reason OutstandingNetworkRequestOthers.
234
+ */
235
+ outstandingNetworkRequestOthers:
236
+ 'Pages with an in-flight network request are not currently eligible for back/forward cache.',
237
+ /**
238
+ * @description Description text for not restored reason OutstandingIndexedDBTransaction.
239
+ */
240
+ outstandingIndexedDBTransaction:
241
+ 'Page with ongoing indexed DB transactions are not currently eligible for back/forward cache.',
242
+ /**
243
+ * @description Description text for not restored reason RequestedNotificationsPermission.
244
+ */
245
+ requestedNotificationsPermission:
246
+ 'Pages that have requested notifications permissions are not currently eligible for back/forward cache.',
247
+ /**
248
+ * @description Description text for not restored reason RequestedMIDIPermission.
249
+ */
250
+ requestedMIDIPermission:
251
+ 'Pages that have requested MIDI permissions are not currently eligible for back/forward cache.',
252
+ /**
253
+ * @description Description text for not restored reason RequestedAudioCapturePermission.
254
+ */
255
+ requestedAudioCapturePermission:
256
+ 'Pages that have requested audio capture permissions are not currently eligible for back/forward cache.',
257
+ /**
258
+ * @description Description text for not restored reason RequestedVideoCapturePermission.
259
+ */
260
+ requestedVideoCapturePermission:
261
+ 'Pages that have requested video capture permissions are not currently eligible for back/forward cache.',
262
+ /**
263
+ * @description Description text for not restored reason RequestedBackForwardCacheBlockedSensors.
264
+ */
265
+ requestedBackForwardCacheBlockedSensors:
266
+ 'Pages that have requested sensor permissions are not currently eligible for back/forward cache.',
267
+ /**
268
+ * @description Description text for not restored reason RequestedBackgroundWorkPermission.
269
+ */
270
+ requestedBackgroundWorkPermission:
271
+ 'Pages that have requested background sync or fetch permissions are not currently eligible for back/forward cache.',
272
+ /**
273
+ * @description Description text for not restored reason BroadcastChannel.
274
+ */
275
+ broadcastChannel: 'The page cannot be cached because it has a BroadcastChannel instance with registered listeners.',
276
+ /**
277
+ * @description Description text for not restored reason IndexedDBConnection.
278
+ */
279
+ indexedDBConnection:
280
+ 'Pages that have an open IndexedDB connection are not currently eligible for back/forward cache.',
281
+ /**
282
+ * @description Description text for not restored reason WebXR.
283
+ */
284
+ webXR: 'Pages that use WebXR are not currently eligible for back/forward cache.',
285
+ /**
286
+ * @description Description text for not restored reason SharedWorker.
287
+ */
288
+ sharedWorker: 'Pages that use SharedWorker are not currently eligible for back/forward cache.',
289
+ /**
290
+ * @description Description text for not restored reason WebLocks.
291
+ */
292
+ webLocks: 'Pages that use WebLocks are not currently eligible for back/forward cache.',
293
+ /**
294
+ * @description Description text for not restored reason WebHID.
295
+ */
296
+ webHID: 'Pages that use WebHID are not currently eligible for back/forward cache.',
297
+ /**
298
+ * @description Description text for not restored reason WebShare.
299
+ */
300
+ webShare: 'Pages that use WebShare are not currently eligible for back/forwad cache.',
301
+ /**
302
+ * @description Description text for not restored reason RequestedStorageAccessGrant.
303
+ */
304
+ requestedStorageAccessGrant:
305
+ 'Pages that have requested storage access are not currently eligible for back/forward cache.',
306
+ /**
307
+ * @description Description text for not restored reason WebNfc.
308
+ */
309
+ webNfc: 'Pages that use WebNfc are not currently eligible for back/forwad cache.',
310
+ /**
311
+ * @description Description text for not restored reason OutstandingNetworkRequestFetch.
312
+ */
313
+ outstandingNetworkRequestFetch:
314
+ 'Pages with an in-flight fetch network request are not currently eligible for back/forward cache.',
315
+ /**
316
+ * @description Description text for not restored reason OutstandingNetworkRequestXHR.
317
+ */
318
+ outstandingNetworkRequestXHR:
319
+ 'Pages with an in-flight XHR network request are not currently eligible for back/forward cache.',
320
+ /**
321
+ * @description Description text for not restored reason AppBanner.
322
+ */
323
+ appBanner: 'Pages that requested an AppBanner are not currently eligible for back/forward cache.',
324
+ /**
325
+ * @description Description text for not restored reason Printing.
326
+ */
327
+ printing: 'Pages that show Printing UI are not currently eligible for back/forward cache.',
328
+ /**
329
+ * @description Description text for not restored reason WebDatabase.
330
+ */
331
+ webDatabase: 'Pages that use WebDatabase are not currently eligible for back/forward cache.',
332
+ /**
333
+ * @description Description text for not restored reason PictureInPicture.
334
+ */
335
+ pictureInPicture: 'Pages that use Picture-in-Picture are not currently eligible for back/forward cache.',
336
+ /**
337
+ * @description Description text for not restored reason Portal.
338
+ */
339
+ portal: 'Pages that use portals are not currently eligible for back/forward cache.',
340
+ /**
341
+ * @description Description text for not restored reason SpeechRecognizer.
342
+ */
343
+ speechRecognizer: 'Pages that use SpeechRecognizer are not currently eligible for back/forward cache.',
344
+ /**
345
+ * @description Description text for not restored reason IdleManager.
346
+ */
347
+ idleManager: 'Pages that use IdleManager are not currently eligible for back/forward cache.',
348
+ /**
349
+ * @description Description text for not restored reason PaymentManager.
350
+ */
351
+ paymentManager: 'Pages that use PaymentManager are not currently eligible for back/forward cache.',
352
+ /**
353
+ * @description Description text for not restored reason SpeechSynthesis.
354
+ */
355
+ speechSynthesis: 'Pages that use SpeechSynthesis are not currently eligible for back/forward cache.',
356
+ /**
357
+ * @description Description text for not restored reason KeyboardLock.
358
+ */
359
+ keyboardLock: 'Pages that use Keyboard lock are not currently eligible for back/forward cache.',
360
+ /**
361
+ * @description Description text for not restored reason WebOTPService.
362
+ */
363
+ webOTPService: 'Pages that use WebOTPService are not currently eligible for bfcache.',
364
+ /**
365
+ * @description Description text for not restored reason OutstandingNetworkRequestDirectSocket.
366
+ */
367
+ outstandingNetworkRequestDirectSocket:
368
+ 'Pages with an in-flight network request are not currently eligible for back/forward cache.',
369
+ /**
370
+ * @description Description text for not restored reason InjectedJavascript.
371
+ */
372
+ injectedJavascript:
373
+ 'IPages that JavaScript is injected into by extensions are not currently eligible for back/forward cache.',
374
+ /**
375
+ * @description Description text for not restored reason InjectedStyleSheet.
376
+ */
377
+ injectedStyleSheet:
378
+ 'Pages that StyleSheet is injected into by extensions are not currently eligible for back/forward cache.',
379
+ /**
380
+ * @description Description text for not restored reason ContentSecurityHandler.
381
+ */
382
+ contentSecurityHandler: 'Pages that use SecurityHandler are not eligible for back/forward cache.',
383
+ /**
384
+ * @description Description text for not restored reason NotMainFrame.
385
+ */
386
+ contentWebAuthenticationAPI: 'Pages that use WebAuthetication API are not eligible for back/forward cache.',
387
+ /**
388
+ * @description Description text for not restored reason NotMainFrame.
389
+ */
390
+ contentFileChooser: 'Pages that use FileChooser API are not eligible for back/forward cache.',
391
+ /**
392
+ * @description Description text for not restored reason NotMainFrame.
393
+ */
394
+ contentSerial: 'Pages that use Serial API are not eligible for back/forward cache.',
395
+ /**
396
+ * @description Description text for not restored reason NotMainFrame.
397
+ */
398
+ contentFileSystemAccess: 'Pages that use File System Access API are not eligible for back/forward cache.',
399
+ /**
400
+ * @description Description text for not restored reason NotMainFrame.
401
+ */
402
+ contentMediaDevicesDispatcherHost: 'Pages that use Media Device Dispatcher are not eligible for back/forward cache.',
403
+ /**
404
+ * @description Description text for not restored reason NotMainFrame.
405
+ */
406
+ contentWebBluetooth: 'Pages that use WebBluetooth API are not eligible for back/forward cache.',
407
+ /**
408
+ * @description Description text for not restored reason ContentWebUSB.
409
+ */
410
+ contentWebUSB: 'Pages that use WebUSB API are not eligible for back/forward cache.',
411
+ /**
412
+ * @description Description text for not restored reason ContentMediaSession.
413
+ */
414
+ contentMediaSession:
415
+ 'Pages that use MediaSession API and set a playback state are not eligible for back/forward cache.',
416
+ /**
417
+ * @description Description text for not restored reason ContentMediaSessionService.
418
+ */
419
+ contentMediaSessionService:
420
+ 'Pages that use MediaSession API and set action handlers are not eligible for back/forward cache.',
421
+ /**
422
+ * @description Description text for not restored reason ContentMediaPlay.
423
+ */
424
+ contentMediaPlay: 'A media player was playing upon navigating away.',
425
+ /**
426
+ * @description Description text for not restored reason EmbedderPopupBlockerTabHelper.
427
+ */
428
+ embedderPopupBlockerTabHelper: 'EmbedderPopupBlockerTabHelper',
429
+ /**
430
+ * @description Description text for not restored reason EmbedderSafeBrowsingTriggeredPopupBlocker.
431
+ */
432
+ embedderSafeBrowsingTriggeredPopupBlocker: 'EmbedderSafeBrowsingTriggeredPopupBlocker',
433
+ /**
434
+ * @description Description text for not restored reason EmbedderSafeBrowsingThreatDetails.
435
+ */
436
+ embedderSafeBrowsingThreatDetails: 'EmbedderSafeBrowsingThreatDetails',
437
+ /**
438
+ * @description Description text for not restored reason EmbedderAppBannerManager.
439
+ */
440
+ embedderAppBannerManager: 'EmbedderAppBannerManager',
441
+ /**
442
+ * @description Description text for not restored reason EmbedderDomDistillerViewerSource.
443
+ */
444
+ embedderDomDistillerViewerSource: 'EmbedderDomDistillerViewerSource',
445
+ /**
446
+ * @description Description text for not restored reason EmbedderDomDistillerSelfDeletingRequestDelegate.
447
+ */
448
+ embedderDomDistillerSelfDeletingRequestDelegate: 'EmbedderDomDistillerSelfDeletingRequestDelegate',
449
+ /**
450
+ * @description Description text for not restored reason EmbedderOomInterventionTabHelper.
451
+ */
452
+ embedderOomInterventionTabHelper: 'EmbedderOomInterventionTabHelper',
453
+ /**
454
+ * @description Description text for not restored reason EmbedderOfflinePage.
455
+ */
456
+ embedderOfflinePage: 'EmbedderOfflinePage',
457
+ /**
458
+ * @description Description text for not restored reason EmbedderChromePasswordManagerClientBindCredentialManager.
459
+ */
460
+ embedderChromePasswordManagerClientBindCredentialManager: 'EmbedderChromePasswordManagerClientBindCredentialManager',
461
+ /**
462
+ * @description Description text for not restored reason EmbedderPermissionRequestManager.
463
+ */
464
+ embedderPermissionRequestManager: 'EmbedderPermissionRequestManager',
465
+ /**
466
+ * @description Description text for not restored reason EmbedderModalDialog.
467
+ */
468
+ embedderModalDialog: 'EmbedderModalDialog',
469
+ /**
470
+ * @description Description text for not restored reason EmbedderExtensions.
471
+ */
472
+ embedderExtensions: 'EmbedderExtensions',
473
+ /**
474
+ * @description Description text for not restored reason EmbedderExtensionMessaging.
475
+ */
476
+ embedderExtensionMessaging: 'EmbedderExtensionMessaging',
477
+ /**
478
+ * @description Description text for not restored reason EmbedderExtensionMessagingForOpenPort.
479
+ */
480
+ embedderExtensionMessagingForOpenPort: 'EmbedderExtensionMessagingForOpenPort',
481
+ /**
482
+ * @description Description text for not restored reason EmbedderExtensionSentMessageToCachedFrame.
483
+ */
484
+ embedderExtensionSentMessageToCachedFrame: 'EmbedderExtensionSentMessageToCachedFrame',
485
+ };
486
+
487
+ const str_ = i18n.i18n.registerUIStrings('panels/application/BackForwardCacheStrings.ts', UIStrings);
488
+ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
489
+
490
+ export const NotRestoredReasonDescription = {
491
+ 'NotMainFrame': {name: i18nLazyString(UIStrings.notMainFrame)},
492
+ 'BackForwardCacheDisabled': {name: i18nLazyString(UIStrings.backForwardCacheDisabled)},
493
+ 'RelatedActiveContentsExist': {name: i18nLazyString(UIStrings.relatedActiveContentsExist)},
494
+ 'HTTPStatusNotOK': {name: i18nLazyString(UIStrings.HTTPStatusNotOK)},
495
+ 'SchemeNotHTTPOrHTTPS': {name: i18nLazyString(UIStrings.schemeNotHTTPOrHTTPS)},
496
+ 'Loading': {name: i18nLazyString(UIStrings.loading)},
497
+ 'WasGrantedMediaAccess': {name: i18nLazyString(UIStrings.wasGrantedMediaAccess)},
498
+ 'HTTPMethodNotGET': {name: i18nLazyString(UIStrings.HTTPMethodNotGET)},
499
+ 'SubframeIsNavigating': {name: i18nLazyString(UIStrings.subframeIsNavigating)},
500
+ 'Timeout': {name: i18nLazyString(UIStrings.timeout)},
501
+ 'CacheLimit': {name: i18nLazyString(UIStrings.cacheLimit)},
502
+ 'JavaScriptExecution': {name: i18nLazyString(UIStrings.JavaScriptExecution)},
503
+ 'RendererProcessKilled': {name: i18nLazyString(UIStrings.rendererProcessKilled)},
504
+ 'RendererProcessCrashed': {name: i18nLazyString(UIStrings.rendererProcessCrashed)},
505
+ 'GrantedMediaStreamAccess': {name: i18nLazyString(UIStrings.grantedMediaStreamAccess)},
506
+ 'CacheFlushed': {name: i18nLazyString(UIStrings.cacheFlushed)},
507
+ 'ServiceWorkerVersionActivation': {name: i18nLazyString(UIStrings.serviceWorkerVersionActivation)},
508
+ 'SessionRestored': {name: i18nLazyString(UIStrings.sessionRestored)},
509
+ 'ServiceWorkerPostMessage': {name: i18nLazyString(UIStrings.serviceWorkerPostMessage)},
510
+ 'EnteredBackForwardCacheBeforeServiceWorkerHostAdded':
511
+ {name: i18nLazyString(UIStrings.enteredBackForwardCacheBeforeServiceWorkerHostAdded)},
512
+ 'ServiceWorkerClaim': {name: i18nLazyString(UIStrings.serviceWorkerClaim)},
513
+ 'HaveInnerContents': {name: i18nLazyString(UIStrings.haveInnerContents)},
514
+ 'TimeoutPuttingInCache': {name: i18nLazyString(UIStrings.timeoutPuttingInCache)},
515
+ 'BackForwardCacheDisabledByLowMemory': {name: i18nLazyString(UIStrings.backForwardCacheDisabledByLowMemory)},
516
+ 'BackForwardCacheDisabledByCommandLine': {name: i18nLazyString(UIStrings.backForwardCacheDisabledByCommandLine)},
517
+ 'NetworkRequestDatapipeDrainedAsBytesConsumer':
518
+ {name: i18nLazyString(UIStrings.networkRequestDatapipeDrainedAsBytesConsumer)},
519
+ 'NetworkRequestRedirected': {name: i18nLazyString(UIStrings.networkRequestRedirected)},
520
+ 'NetworkRequestTimeout': {name: i18nLazyString(UIStrings.networkRequestTimeout)},
521
+ 'NetworkExceedsBufferLimit': {name: i18nLazyString(UIStrings.networkExceedsBufferLimit)},
522
+ 'NavigationCancelledWhileRestoring': {name: i18nLazyString(UIStrings.navigationCancelledWhileRestoring)},
523
+ 'BackForwardCacheDisabledForPrerender': {name: i18nLazyString(UIStrings.backForwardCacheDisabledForPrerender)},
524
+ 'UserAgentOverrideDiffers': {name: i18nLazyString(UIStrings.userAgentOverrideDiffers)},
525
+ 'ForegroundCacheLimit': {name: i18nLazyString(UIStrings.foregroundCacheLimit)},
526
+ 'BackForwardCacheDisabledForDelegate': {name: i18nLazyString(UIStrings.backForwardCacheDisabledForDelegate)},
527
+ 'OptInUnloadHeaderNotPresent': {name: i18nLazyString(UIStrings.optInUnloadHeaderNotPresent)},
528
+ 'UnloadHandlerExistsInMainFrame': {name: i18nLazyString(UIStrings.unloadHandlerExistsInMainFrame)},
529
+ 'UnloadHandlerExistsInSubFrame': {name: i18nLazyString(UIStrings.unloadHandlerExistsInSubFrame)},
530
+ 'ServiceWorkerUnregistration': {name: i18nLazyString(UIStrings.serviceWorkerUnregistration)},
531
+ 'NoResponseHead': {name: i18nLazyString(UIStrings.noResponseHead)},
532
+ 'CacheControlNoStore': {name: i18nLazyString(UIStrings.cacheControlNoStore)},
533
+ 'CacheControlNoStoreCookieModified': {name: i18nLazyString(UIStrings.cacheControlNoStore)},
534
+ 'CacheControlNoStoreHTTPOnlyCookieModified': {name: i18nLazyString(UIStrings.cacheControlNoStore)},
535
+ 'DisableForRenderFrameHostCalled': {name: i18nLazyString(UIStrings.ineligibleAPI)},
536
+ 'BlocklistedFeatures': {name: i18nLazyString(UIStrings.ineligibleAPI)},
537
+ 'SchedulerTrackedFeatureUsed': {name: i18nLazyString(UIStrings.ineligibleAPI)},
538
+ 'DomainNotAllowed': {name: i18nLazyString(UIStrings.internalError)},
539
+ 'ConflictingBrowsingInstance': {name: i18nLazyString(UIStrings.internalError)},
540
+ 'NotMostRecentNavigationEntry': {name: i18nLazyString(UIStrings.internalError)},
541
+ 'IgnoreEventAndEvict': {name: i18nLazyString(UIStrings.internalError)},
542
+ 'BrowsingInstanceNotSwapped': {name: i18nLazyString(UIStrings.internalError)},
543
+ 'ActivationNavigationsDisallowedForBug1234857': {name: i18nLazyString(UIStrings.internalError)},
544
+ 'Unknown': {name: i18nLazyString(UIStrings.internalError)},
545
+ 'RenderFrameHostReused_SameSite': {name: i18nLazyString(UIStrings.internalError)},
546
+ 'RenderFrameHostReused_CrossSite': {name: i18nLazyString(UIStrings.internalError)},
547
+ 'WebSocket': {name: i18nLazyString(UIStrings.webSocket)},
548
+ 'WebTransport': {name: i18nLazyString(UIStrings.webTransport)},
549
+ 'WebRTC': {name: i18nLazyString(UIStrings.webRTC)},
550
+ 'MainResourceHasCacheControlNoStore': {name: i18nLazyString(UIStrings.mainResourceHasCacheControlNoStore)},
551
+ 'MainResourceHasCacheControlNoCache': {name: i18nLazyString(UIStrings.mainResourceHasCacheControlNoCache)},
552
+ 'SubresourceHasCacheControlNoStore': {name: i18nLazyString(UIStrings.subresourceHasCacheControlNoStore)},
553
+ 'SubresourceHasCacheControlNoCache': {name: i18nLazyString(UIStrings.subresourceHasCacheControlNoCache)},
554
+ 'ContainsPlugins': {name: i18nLazyString(UIStrings.containsPlugins)},
555
+ 'DocumentLoaded': {name: i18nLazyString(UIStrings.documentLoaded)},
556
+ 'DedicatedWorkerOrWorklet': {name: i18nLazyString(UIStrings.dedicatedWorkerOrWorklet)},
557
+ 'OutstandingNetworkRequestOthers': {name: i18nLazyString(UIStrings.outstandingNetworkRequestOthers)},
558
+ 'OutstandingIndexedDBTransaction': {name: i18nLazyString(UIStrings.outstandingIndexedDBTransaction)},
559
+ 'RequestedNotificationsPermission': {name: i18nLazyString(UIStrings.requestedNotificationsPermission)},
560
+ 'RequestedMIDIPermission': {name: i18nLazyString(UIStrings.requestedMIDIPermission)},
561
+ 'RequestedAudioCapturePermission': {name: i18nLazyString(UIStrings.requestedAudioCapturePermission)},
562
+ 'RequestedVideoCapturePermission': {name: i18nLazyString(UIStrings.requestedVideoCapturePermission)},
563
+ 'RequestedBackForwardCacheBlockedSensors': {name: i18nLazyString(UIStrings.requestedBackForwardCacheBlockedSensors)},
564
+ 'RequestedBackgroundWorkPermission': {name: i18nLazyString(UIStrings.requestedBackgroundWorkPermission)},
565
+ 'BroadcastChannel': {name: i18nLazyString(UIStrings.broadcastChannel)},
566
+ 'IndexedDBConnection': {name: i18nLazyString(UIStrings.indexedDBConnection)},
567
+ 'WebXR': {name: i18nLazyString(UIStrings.webXR)},
568
+ 'SharedWorker': {name: i18nLazyString(UIStrings.sharedWorker)},
569
+ 'WebLocks': {name: i18nLazyString(UIStrings.webLocks)},
570
+ 'WebHID': {name: i18nLazyString(UIStrings.webHID)},
571
+ 'WebShare': {name: i18nLazyString(UIStrings.webShare)},
572
+ 'RequestedStorageAccessGrant': {name: i18nLazyString(UIStrings.requestedStorageAccessGrant)},
573
+ 'WebNfc': {name: i18nLazyString(UIStrings.webNfc)},
574
+ 'OutstandingNetworkRequestFetch': {name: i18nLazyString(UIStrings.outstandingNetworkRequestFetch)},
575
+ 'OutstandingNetworkRequestXHR': {name: i18nLazyString(UIStrings.outstandingNetworkRequestXHR)},
576
+ 'AppBanner': {name: i18nLazyString(UIStrings.appBanner)},
577
+ 'Printing': {name: i18nLazyString(UIStrings.printing)},
578
+ 'WebDatabase': {name: i18nLazyString(UIStrings.webDatabase)},
579
+ 'PictureInPicture': {name: i18nLazyString(UIStrings.pictureInPicture)},
580
+ 'Portal': {name: i18nLazyString(UIStrings.portal)},
581
+ 'SpeechRecognizer': {name: i18nLazyString(UIStrings.speechRecognizer)},
582
+ 'IdleManager': {name: i18nLazyString(UIStrings.idleManager)},
583
+ 'PaymentManager': {name: i18nLazyString(UIStrings.paymentManager)},
584
+ 'SpeechSynthesis': {name: i18nLazyString(UIStrings.speechSynthesis)},
585
+ 'KeyboardLock': {name: i18nLazyString(UIStrings.keyboardLock)},
586
+ 'WebOTPService': {name: i18nLazyString(UIStrings.webOTPService)},
587
+ 'OutstandingNetworkRequestDirectSocket': {name: i18nLazyString(UIStrings.outstandingNetworkRequestDirectSocket)},
588
+ 'InjectedJavascript': {name: i18nLazyString(UIStrings.injectedJavascript)},
589
+ 'InjectedStyleSheet': {name: i18nLazyString(UIStrings.injectedStyleSheet)},
590
+ 'Dummy': {name: i18nLazyString(UIStrings.internalError)},
591
+ 'ContentSecurityHandler': {name: i18nLazyString(UIStrings.contentSecurityHandler)},
592
+ 'ContentWebAuthenticationAPI': {name: i18nLazyString(UIStrings.contentWebAuthenticationAPI)},
593
+ 'ContentFileChooser': {name: i18nLazyString(UIStrings.contentFileChooser)},
594
+ 'ContentSerial': {name: i18nLazyString(UIStrings.contentSerial)},
595
+ 'ContentFileSystemAccess': {name: i18nLazyString(UIStrings.contentFileSystemAccess)},
596
+ 'ContentMediaDevicesDispatcherHost': {name: i18nLazyString(UIStrings.contentMediaDevicesDispatcherHost)},
597
+ 'ContentWebBluetooth': {name: i18nLazyString(UIStrings.contentWebBluetooth)},
598
+ 'ContentWebUSB': {name: i18nLazyString(UIStrings.contentWebUSB)},
599
+ 'ContentMediaSession': {name: i18nLazyString(UIStrings.contentMediaSession)},
600
+ 'ContentMediaSessionService': {name: i18nLazyString(UIStrings.contentMediaSessionService)},
601
+ 'ContentMediaPlay': {name: i18nLazyString(UIStrings.contentMediaPlay)},
602
+ 'EmbedderPopupBlockerTabHelper': {name: i18nLazyString(UIStrings.embedderPopupBlockerTabHelper)},
603
+ 'EmbedderSafeBrowsingTriggeredPopupBlocker':
604
+ {name: i18nLazyString(UIStrings.embedderSafeBrowsingTriggeredPopupBlocker)},
605
+ 'EmbedderSafeBrowsingThreatDetails': {name: i18nLazyString(UIStrings.embedderSafeBrowsingThreatDetails)},
606
+ 'EmbedderAppBannerManager': {name: i18nLazyString(UIStrings.embedderAppBannerManager)},
607
+ 'EmbedderDomDistillerViewerSource': {name: i18nLazyString(UIStrings.embedderDomDistillerViewerSource)},
608
+ 'EmbedderDomDistillerSelfDeletingRequestDelegate':
609
+ {name: i18nLazyString(UIStrings.embedderDomDistillerSelfDeletingRequestDelegate)},
610
+ 'EmbedderOomInterventionTabHelper': {name: i18nLazyString(UIStrings.embedderOomInterventionTabHelper)},
611
+ 'EmbedderOfflinePage': {name: i18nLazyString(UIStrings.embedderOfflinePage)},
612
+ 'EmbedderChromePasswordManagerClientBindCredentialManager':
613
+ {name: i18nLazyString(UIStrings.embedderChromePasswordManagerClientBindCredentialManager)},
614
+ 'EmbedderPermissionRequestManager': {name: i18nLazyString(UIStrings.embedderPermissionRequestManager)},
615
+ 'EmbedderModalDialog': {name: i18nLazyString(UIStrings.embedderModalDialog)},
616
+ 'EmbedderExtensions': {name: i18nLazyString(UIStrings.embedderExtensions)},
617
+ 'EmbedderExtensionMessaging': {name: i18nLazyString(UIStrings.embedderExtensionMessaging)},
618
+ 'EmbedderExtensionMessagingForOpenPort': {name: i18nLazyString(UIStrings.embedderExtensionMessagingForOpenPort)},
619
+ 'EmbedderExtensionSentMessageToCachedFrame':
620
+ {name: i18nLazyString(UIStrings.embedderExtensionSentMessageToCachedFrame)},
621
+ };