lighthouse 10.2.0 → 10.3.0

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 (132) hide show
  1. package/cli/test/smokehouse/__snapshots__/report-assert-test.js.snap +4 -6
  2. package/core/audits/accessibility/html-xml-lang-mismatch.d.ts +10 -0
  3. package/core/audits/accessibility/html-xml-lang-mismatch.js +47 -0
  4. package/core/audits/accessibility/input-button-name.d.ts +10 -0
  5. package/core/audits/accessibility/input-button-name.js +44 -0
  6. package/core/audits/accessibility/table-fake-caption.d.ts +10 -0
  7. package/core/audits/accessibility/table-fake-caption.js +47 -0
  8. package/core/audits/accessibility/td-has-header.d.ts +10 -0
  9. package/core/audits/accessibility/td-has-header.js +45 -0
  10. package/core/audits/audit.d.ts +2 -1
  11. package/core/audits/audit.js +5 -2
  12. package/core/audits/byte-efficiency/byte-efficiency-audit.d.ts +3 -3
  13. package/core/audits/byte-efficiency/byte-efficiency-audit.js +14 -19
  14. package/core/audits/deprecations.js +1 -1
  15. package/core/audits/largest-contentful-paint-element.d.ts +14 -2
  16. package/core/audits/largest-contentful-paint-element.js +49 -31
  17. package/core/audits/layout-shift-elements.d.ts +3 -2
  18. package/core/audits/layout-shift-elements.js +10 -2
  19. package/core/audits/metrics.js +0 -2
  20. package/core/audits/network-requests.js +6 -0
  21. package/core/audits/seo/crawlable-anchors.js +4 -0
  22. package/core/audits/server-response-time.d.ts +2 -1
  23. package/core/audits/server-response-time.js +17 -3
  24. package/core/audits/uses-rel-preconnect.js +20 -4
  25. package/core/computed/entity-classification.d.ts +14 -1
  26. package/core/computed/entity-classification.js +61 -6
  27. package/core/computed/metrics/cumulative-layout-shift.d.ts +2 -9
  28. package/core/computed/metrics/cumulative-layout-shift.js +3 -16
  29. package/core/computed/metrics/time-to-first-byte.js +10 -7
  30. package/core/computed/metrics/timing-summary.js +0 -3
  31. package/core/config/default-config.js +8 -0
  32. package/core/gather/driver/execution-context.js +13 -5
  33. package/core/gather/driver/target-manager.d.ts +13 -0
  34. package/core/gather/driver/target-manager.js +49 -0
  35. package/core/gather/gatherers/accessibility.js +19 -20
  36. package/core/gather/gatherers/anchor-elements.js +2 -0
  37. package/core/gather/gatherers/global-listeners.js +38 -21
  38. package/core/gather/gatherers/inspector-issues.js +2 -1
  39. package/core/gather/gatherers/trace-elements.d.ts +3 -2
  40. package/core/gather/gatherers/trace-elements.js +10 -19
  41. package/core/legacy/config/config.d.ts +1 -1
  42. package/core/legacy/config/config.js +1 -1
  43. package/core/legacy/gather/driver.d.ts +1 -0
  44. package/core/legacy/gather/driver.js +11 -0
  45. package/core/lib/asset-saver.d.ts +4 -0
  46. package/core/lib/asset-saver.js +19 -0
  47. package/core/lib/bf-cache-strings.d.ts +3 -0
  48. package/core/lib/bf-cache-strings.js +248 -232
  49. package/core/lib/cdt/generated/SourceMap.d.ts +18 -31
  50. package/core/lib/cdt/generated/SourceMap.js +51 -101
  51. package/core/lib/dependency-graph/simulator/network-analyzer.d.ts +6 -2
  52. package/core/lib/dependency-graph/simulator/network-analyzer.js +45 -13
  53. package/core/lib/deprecation-description.d.ts +17 -0
  54. package/core/lib/deprecation-description.js +71 -0
  55. package/core/lib/deprecations-strings.d.ts +282 -63
  56. package/core/lib/deprecations-strings.js +282 -551
  57. package/core/lib/lh-error.d.ts +9 -4
  58. package/core/lib/lh-error.js +15 -11
  59. package/core/lib/network-request.d.ts +13 -6
  60. package/core/lib/network-request.js +39 -14
  61. package/core/lib/tracehouse/trace-processor.js +1 -1
  62. package/core/lib/url-utils.js +4 -0
  63. package/core/runner.js +4 -2
  64. package/dist/report/bundle.esm.js +24 -7
  65. package/dist/report/flow.js +3 -3
  66. package/dist/report/standalone.js +8 -8
  67. package/package.json +12 -12
  68. package/readme.md +7 -0
  69. package/report/assets/styles.css +18 -2
  70. package/report/assets/templates.html +4 -0
  71. package/report/renderer/category-renderer.js +5 -2
  72. package/report/renderer/components.js +2 -2
  73. package/report/renderer/dom.d.ts +4 -1
  74. package/report/renderer/dom.js +3 -2
  75. package/shared/localization/locales/ar-XB.json +20 -170
  76. package/shared/localization/locales/ar.json +20 -170
  77. package/shared/localization/locales/bg.json +19 -169
  78. package/shared/localization/locales/ca.json +19 -169
  79. package/shared/localization/locales/cs.json +19 -169
  80. package/shared/localization/locales/da.json +19 -169
  81. package/shared/localization/locales/de.json +19 -169
  82. package/shared/localization/locales/el.json +19 -169
  83. package/shared/localization/locales/en-GB.json +9 -159
  84. package/shared/localization/locales/en-US.json +151 -70
  85. package/shared/localization/locales/en-XA.json +20 -170
  86. package/shared/localization/locales/en-XL.json +151 -70
  87. package/shared/localization/locales/es-419.json +19 -169
  88. package/shared/localization/locales/es.json +19 -169
  89. package/shared/localization/locales/fi.json +19 -169
  90. package/shared/localization/locales/fil.json +17 -167
  91. package/shared/localization/locales/fr.json +18 -168
  92. package/shared/localization/locales/he.json +19 -169
  93. package/shared/localization/locales/hi.json +20 -170
  94. package/shared/localization/locales/hr.json +19 -169
  95. package/shared/localization/locales/hu.json +19 -169
  96. package/shared/localization/locales/id.json +19 -169
  97. package/shared/localization/locales/it.json +19 -169
  98. package/shared/localization/locales/ja.json +19 -169
  99. package/shared/localization/locales/ko.json +19 -169
  100. package/shared/localization/locales/lt.json +20 -170
  101. package/shared/localization/locales/lv.json +20 -170
  102. package/shared/localization/locales/nl.json +18 -168
  103. package/shared/localization/locales/no.json +19 -169
  104. package/shared/localization/locales/pl.json +19 -169
  105. package/shared/localization/locales/pt-PT.json +19 -169
  106. package/shared/localization/locales/pt.json +19 -169
  107. package/shared/localization/locales/ro.json +19 -169
  108. package/shared/localization/locales/ru.json +19 -169
  109. package/shared/localization/locales/sk.json +20 -170
  110. package/shared/localization/locales/sl.json +19 -169
  111. package/shared/localization/locales/sr-Latn.json +19 -169
  112. package/shared/localization/locales/sr.json +19 -169
  113. package/shared/localization/locales/sv.json +19 -169
  114. package/shared/localization/locales/ta.json +19 -169
  115. package/shared/localization/locales/te.json +19 -169
  116. package/shared/localization/locales/th.json +19 -169
  117. package/shared/localization/locales/tr.json +19 -169
  118. package/shared/localization/locales/uk.json +19 -169
  119. package/shared/localization/locales/vi.json +20 -170
  120. package/shared/localization/locales/zh-HK.json +19 -169
  121. package/shared/localization/locales/zh-TW.json +19 -169
  122. package/shared/localization/locales/zh.json +19 -169
  123. package/shared/util.d.ts +6 -0
  124. package/shared/util.js +14 -1
  125. package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +2 -1
  126. package/tsconfig-base.json +1 -1
  127. package/types/artifacts.d.ts +10 -8
  128. package/types/audit.d.ts +5 -0
  129. package/types/gatherer.d.ts +1 -0
  130. package/types/lhr/audit-details.d.ts +1 -0
  131. package/types/lhr/audit-result.d.ts +10 -0
  132. package/types/internal/es-main.d.ts +0 -18
@@ -5,514 +5,527 @@ import * as i18n from '../lib/i18n/i18n.js';
5
5
 
6
6
  const UIStrings = {
7
7
  /**
8
- * @description Description text for not restored reason NotMainFrame.
9
- */
8
+ * @description Description text for not restored reason NotMainFrame.
9
+ */
10
10
  notMainFrame: 'Navigation happened in a frame other than the main frame.',
11
11
  /**
12
- * @description Description text for not restored reason BackForwardCacheDisabled.
13
- */
12
+ * @description Description text for not restored reason BackForwardCacheDisabled.
13
+ */
14
14
  backForwardCacheDisabled:
15
15
  'Back/forward cache is disabled by flags. Visit chrome://flags/#back-forward-cache to enable it locally on this device.',
16
16
  /**
17
- * @description Description text for not restored reason RelatedActiveContentsExist.
18
- * Note: "window.open()" is the name of a JavaScript method and should not be translated.
19
- */
17
+ * @description Description text for not restored reason RelatedActiveContentsExist.
18
+ * Note: "window.open()" is the name of a JavaScript method and should not be translated.
19
+ */
20
20
  relatedActiveContentsExist:
21
21
  'The page was opened using \'`window.open()`\' and another tab has a reference to it, or the page opened a window.',
22
22
  /**
23
- * @description Description text for not restored reason HTTPStatusNotOK.
24
- */
23
+ * @description Description text for not restored reason HTTPStatusNotOK.
24
+ */
25
25
  HTTPStatusNotOK: 'Only pages with a status code of 2XX can be cached.',
26
26
  /**
27
- * @description Description text for not restored reason SchemeNotHTTPOrHTTPS.
28
- */
27
+ * @description Description text for not restored reason SchemeNotHTTPOrHTTPS.
28
+ */
29
29
  schemeNotHTTPOrHTTPS: 'Only pages whose URL scheme is HTTP / HTTPS can be cached.',
30
30
  /**
31
- * @description Description text for not restored reason Loading.
32
- */
31
+ * @description Description text for not restored reason Loading.
32
+ */
33
33
  loading: 'The page did not finish loading before navigating away.',
34
34
  /**
35
- * @description Description text for not restored reason WasGrantedMediaAccess.
36
- */
35
+ * @description Description text for not restored reason WasGrantedMediaAccess.
36
+ */
37
37
  wasGrantedMediaAccess:
38
38
  'Pages that have granted access to record video or audio are not currently eligible for back/forward cache.',
39
39
  /**
40
- * @description Description text for not restored reason HTTPMethodNotGET.
41
- */
40
+ * @description Description text for not restored reason HTTPMethodNotGET.
41
+ */
42
42
  HTTPMethodNotGET: 'Only pages loaded via a GET request are eligible for back/forward cache.',
43
43
  /**
44
- * @description Description text for not restored reason SubframeIsNavigating.
45
- */
44
+ * @description Description text for not restored reason SubframeIsNavigating.
45
+ */
46
46
  subframeIsNavigating: 'An iframe on the page started a navigation that did not complete.',
47
47
  /**
48
- * @description Description text for not restored reason Timeout.
49
- */
48
+ * @description Description text for not restored reason Timeout.
49
+ */
50
50
  timeout: 'The page exceeded the maximum time in back/forward cache and was expired.',
51
51
  /**
52
- * @description Description text for not restored reason CacheLimit.
53
- */
52
+ * @description Description text for not restored reason CacheLimit.
53
+ */
54
54
  cacheLimit: 'The page was evicted from the cache to allow another page to be cached.',
55
55
  /**
56
- * @description Description text for not restored reason JavaScriptExecution.
57
- */
56
+ * @description Description text for not restored reason JavaScriptExecution.
57
+ */
58
58
  JavaScriptExecution: 'Chrome detected an attempt to execute JavaScript while in the cache.',
59
59
  /**
60
- * @description Description text for not restored reason RendererProcessKilled.
61
- */
60
+ * @description Description text for not restored reason RendererProcessKilled.
61
+ */
62
62
  rendererProcessKilled: 'The renderer process for the page in back/forward cache was killed.',
63
63
  /**
64
- * @description Description text for not restored reason RendererProcessCrashed.
65
- */
64
+ * @description Description text for not restored reason RendererProcessCrashed.
65
+ */
66
66
  rendererProcessCrashed: 'The renderer process for the page in back/forward cache crashed.',
67
67
  /**
68
- * @description Description text for not restored reason GrantedMediaStreamAccess.
69
- */
68
+ * @description Description text for not restored reason GrantedMediaStreamAccess.
69
+ */
70
70
  grantedMediaStreamAccess:
71
71
  'Pages that have granted media stream access are not currently eligible for back/forward cache.',
72
72
  /**
73
- * @description Description text for not restored reason CacheFlushed.
74
- */
73
+ * @description Description text for not restored reason CacheFlushed.
74
+ */
75
75
  cacheFlushed: 'The cache was intentionally cleared.',
76
76
  /**
77
- * @description Description text for not restored reason ServiceWorkerVersionActivation.
78
- */
77
+ * @description Description text for not restored reason ServiceWorkerVersionActivation.
78
+ */
79
79
  serviceWorkerVersionActivation: 'The page was evicted from back/forward cache due to a service worker activation.',
80
80
  /**
81
- * @description Description text for not restored reason SessionRestored.
82
- */
81
+ * @description Description text for not restored reason SessionRestored.
82
+ */
83
83
  sessionRestored: 'Chrome restarted and cleared the back/forward cache entries.',
84
84
  /**
85
- * @description Description text for not restored reason ServiceWorkerPostMessage.
86
- * Note: "MessageEvent" should not be translated.
87
- */
85
+ * @description Description text for not restored reason ServiceWorkerPostMessage.
86
+ * Note: "MessageEvent" should not be translated.
87
+ */
88
88
  serviceWorkerPostMessage: 'A service worker attempted to send the page in back/forward cache a `MessageEvent`.',
89
89
  /**
90
- * @description Description text for not restored reason EnteredBackForwardCacheBeforeServiceWorkerHostAdded.
91
- */
90
+ * @description Description text for not restored reason EnteredBackForwardCacheBeforeServiceWorkerHostAdded.
91
+ */
92
92
  enteredBackForwardCacheBeforeServiceWorkerHostAdded:
93
93
  'A service worker was activated while the page was in back/forward cache.',
94
94
  /**
95
- * @description Description text for not restored reason ServiceWorkerClaim.
96
- */
95
+ * @description Description text for not restored reason ServiceWorkerClaim.
96
+ */
97
97
  serviceWorkerClaim: 'The page was claimed by a service worker while it is in back/forward cache.',
98
98
  /**
99
- * @description Description text for not restored reason HaveInnerContents.
100
- */
99
+ * @description Description text for not restored reason HaveInnerContents.
100
+ */
101
101
  haveInnerContents: 'Pages that use portals are not currently eligible for back/forward cache.',
102
102
  /**
103
- * @description Description text for not restored reason TimeoutPuttingInCache.
104
- */
103
+ * @description Description text for not restored reason TimeoutPuttingInCache.
104
+ */
105
105
  timeoutPuttingInCache:
106
106
  'The page timed out entering back/forward cache (likely due to long-running pagehide handlers).',
107
107
  /**
108
- * @description Description text for not restored reason BackForwardCacheDisabledByLowMemory.
109
- */
108
+ * @description Description text for not restored reason BackForwardCacheDisabledByLowMemory.
109
+ */
110
110
  backForwardCacheDisabledByLowMemory: 'Back/forward cache is disabled due to insufficient memory.',
111
111
  /**
112
- * @description Description text for not restored reason BackForwardcCacheDisabledByCommandLine.
113
- */
112
+ * @description Description text for not restored reason BackForwardcCacheDisabledByCommandLine.
113
+ */
114
114
  backForwardCacheDisabledByCommandLine: 'Back/forward cache is disabled by the command line.',
115
115
  /**
116
- * @description Description text for not restored reason NetworkRequestDatapipeDrainedAsBytesConsumer.
117
- */
116
+ * @description Description text for not restored reason NetworkRequestDatapipeDrainedAsBytesConsumer.
117
+ */
118
118
  networkRequestDatapipeDrainedAsBytesConsumer:
119
119
  'Pages that have inflight fetch() or XHR are not currently eligible for back/forward cache.',
120
120
  /**
121
- * @description Description text for not restored reason NetworkRequestRedirected.
122
- */
121
+ * @description Description text for not restored reason NetworkRequestRedirected.
122
+ */
123
123
  networkRequestRedirected:
124
124
  'The page was evicted from back/forward cache because an active network request involved a redirect.',
125
125
  /**
126
- * @description Description text for not restored reason NetworkRequestTimeout.
127
- */
126
+ * @description Description text for not restored reason NetworkRequestTimeout.
127
+ */
128
128
  networkRequestTimeout:
129
129
  '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.',
130
130
  /**
131
- * @description Description text for not restored reason NetworkExceedsBufferLimit.
132
- */
131
+ * @description Description text for not restored reason NetworkExceedsBufferLimit.
132
+ */
133
133
  networkExceedsBufferLimit:
134
134
  '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.',
135
135
  /**
136
- * @description Description text for not restored reason NavigationCancelledWhileRestoring.
137
- */
136
+ * @description Description text for not restored reason NavigationCancelledWhileRestoring.
137
+ */
138
138
  navigationCancelledWhileRestoring:
139
139
  'Navigation was cancelled before the page could be restored from back/forward cache.',
140
140
  /**
141
- * @description Description text for not restored reason BackForwardCacheDisabledForPrerender.
142
- */
141
+ * @description Description text for not restored reason BackForwardCacheDisabledForPrerender.
142
+ */
143
143
  backForwardCacheDisabledForPrerender: 'Back/forward cache is disabled for prerenderer.',
144
144
  /**
145
- * @description Description text for not restored reason userAgentOverrideDiffers.
146
- */
145
+ * @description Description text for not restored reason userAgentOverrideDiffers.
146
+ */
147
147
  userAgentOverrideDiffers: 'Browser has changed the user agent override header.',
148
148
  /**
149
- * @description Description text for not restored reason ForegroundCacheLimit.
150
- */
149
+ * @description Description text for not restored reason ForegroundCacheLimit.
150
+ */
151
151
  foregroundCacheLimit: 'The page was evicted from the cache to allow another page to be cached.',
152
152
  /**
153
- * @description Description text for not restored reason BackForwardCacheDisabledForDelegate.
154
- */
153
+ * @description Description text for not restored reason BackForwardCacheDisabledForDelegate.
154
+ */
155
155
  backForwardCacheDisabledForDelegate: 'Back/forward cache is not supported by delegate.',
156
156
  /**
157
- * @description Description text for not restored reason UnloadHandlerExistsInMainFrame.
158
- */
157
+ * @description Description text for not restored reason UnloadHandlerExistsInMainFrame.
158
+ */
159
159
  unloadHandlerExistsInMainFrame: 'The page has an unload handler in the main frame.',
160
160
  /**
161
- * @description Description text for not restored reason UnloadHandlerExistsInSubFrame.
162
- */
161
+ * @description Description text for not restored reason UnloadHandlerExistsInSubFrame.
162
+ */
163
163
  unloadHandlerExistsInSubFrame: 'The page has an unload handler in a sub frame.',
164
164
  /**
165
- * @description Description text for not restored reason ServiceWorkerUnregistration.
166
- */
165
+ * @description Description text for not restored reason ServiceWorkerUnregistration.
166
+ */
167
167
  serviceWorkerUnregistration: 'ServiceWorker was unregistered while a page was in back/forward cache.',
168
168
  /**
169
- * @description Description text for not restored reason NoResponseHead.
170
- */
169
+ * @description Description text for not restored reason NoResponseHead.
170
+ */
171
171
  noResponseHead: 'Pages that do not have a valid response head cannot enter back/forward cache.',
172
172
  /**
173
- * @description Description text for not restored reason CacheControlNoStore.
174
- */
173
+ * @description Description text for not restored reason CacheControlNoStore.
174
+ */
175
175
  cacheControlNoStore: 'Pages with cache-control:no-store header cannot enter back/forward cache.',
176
176
  /**
177
- * @description Description text for not restored reason IneligibleAPI.
178
- */
177
+ * @description Description text for not restored reason IneligibleAPI.
178
+ */
179
179
  ineligibleAPI: 'Ineligible APIs were used.',
180
180
  /**
181
- * @description Description text for not restored reason InternalError.
182
- */
181
+ * @description Description text for not restored reason InternalError.
182
+ */
183
183
  internalError: 'Internal error.',
184
184
  /**
185
- * @description Description text for not restored reason WebSocket.
186
- */
185
+ * @description Description text for not restored reason WebSocket.
186
+ */
187
187
  webSocket: 'Pages with WebSocket cannot enter back/forward cache.',
188
188
  /**
189
- * @description Description text for not restored reason WebTransport.
190
- */
189
+ * @description Description text for not restored reason WebTransport.
190
+ */
191
191
  webTransport: 'Pages with WebTransport cannot enter back/forward cache.',
192
192
  /**
193
- * @description Description text for not restored reason WebRTC.
194
- */
193
+ * @description Description text for not restored reason WebRTC.
194
+ */
195
195
  webRTC: 'Pages with WebRTC cannot enter back/forward cache.',
196
196
  /**
197
- * @description Description text for not restored reason MainResourceHasCacheControlNoStore.
198
- */
197
+ * @description Description text for not restored reason MainResourceHasCacheControlNoStore.
198
+ */
199
199
  mainResourceHasCacheControlNoStore:
200
200
  'Pages whose main resource has cache-control:no-store cannot enter back/forward cache.',
201
201
  /**
202
- * @description Description text for not restored reason MainResourceHasCacheControlNoCache.
203
- */
202
+ * @description Description text for not restored reason MainResourceHasCacheControlNoCache.
203
+ */
204
204
  mainResourceHasCacheControlNoCache:
205
205
  'Pages whose main resource has cache-control:no-cache cannot enter back/forward cache.',
206
206
  /**
207
- * @description Description text for not restored reason SubresourceHasCacheControlNoStore.
208
- */
207
+ * @description Description text for not restored reason SubresourceHasCacheControlNoStore.
208
+ */
209
209
  subresourceHasCacheControlNoStore:
210
210
  'Pages whose subresource has cache-control:no-store cannot enter back/forward cache.',
211
211
  /**
212
- * @description Description text for not restored reason SubresourceHasCacheControlNoCache.
213
- */
212
+ * @description Description text for not restored reason SubresourceHasCacheControlNoCache.
213
+ */
214
214
  subresourceHasCacheControlNoCache:
215
215
  'Pages whose subresource has cache-control:no-cache cannot enter back/forward cache.',
216
216
  /**
217
- * @description Description text for not restored reason ContainsPlugins.
218
- */
217
+ * @description Description text for not restored reason ContainsPlugins.
218
+ */
219
219
  containsPlugins: 'Pages containing plugins are not currently eligible for back/forward cache.',
220
220
  /**
221
- * @description Description text for not restored reason DocumentLoaded.
222
- */
221
+ * @description Description text for not restored reason DocumentLoaded.
222
+ */
223
223
  documentLoaded: 'The document did not finish loading before navigating away.',
224
224
  /**
225
- * @description Description text for not restored reason DedicatedWorkerOrWorklet.
226
- */
225
+ * @description Description text for not restored reason DedicatedWorkerOrWorklet.
226
+ */
227
227
  dedicatedWorkerOrWorklet:
228
228
  'Pages that use a dedicated worker or worklet are not currently eligible for back/forward cache.',
229
229
  /**
230
- * @description Description text for not restored reason OutstandingNetworkRequestOthers.
231
- */
230
+ * @description Description text for not restored reason OutstandingNetworkRequestOthers.
231
+ */
232
232
  outstandingNetworkRequestOthers:
233
233
  'Pages with an in-flight network request are not currently eligible for back/forward cache.',
234
234
  /**
235
- * @description Description text for not restored reason OutstandingIndexedDBTransaction.
236
- */
235
+ * @description Description text for not restored reason OutstandingIndexedDBTransaction.
236
+ */
237
237
  outstandingIndexedDBTransaction:
238
238
  'Page with ongoing indexed DB transactions are not currently eligible for back/forward cache.',
239
239
  /**
240
- * @description Description text for not restored reason RequestedNotificationsPermission.
241
- */
240
+ * @description Description text for not restored reason RequestedNotificationsPermission.
241
+ */
242
242
  requestedNotificationsPermission:
243
243
  'Pages that have requested notifications permissions are not currently eligible for back/forward cache.',
244
244
  /**
245
- * @description Description text for not restored reason RequestedMIDIPermission.
246
- */
245
+ * @description Description text for not restored reason RequestedMIDIPermission.
246
+ */
247
247
  requestedMIDIPermission:
248
248
  'Pages that have requested MIDI permissions are not currently eligible for back/forward cache.',
249
249
  /**
250
- * @description Description text for not restored reason RequestedAudioCapturePermission.
251
- */
250
+ * @description Description text for not restored reason RequestedAudioCapturePermission.
251
+ */
252
252
  requestedAudioCapturePermission:
253
253
  'Pages that have requested audio capture permissions are not currently eligible for back/forward cache.',
254
254
  /**
255
- * @description Description text for not restored reason RequestedVideoCapturePermission.
256
- */
255
+ * @description Description text for not restored reason RequestedVideoCapturePermission.
256
+ */
257
257
  requestedVideoCapturePermission:
258
258
  'Pages that have requested video capture permissions are not currently eligible for back/forward cache.',
259
259
  /**
260
- * @description Description text for not restored reason RequestedBackForwardCacheBlockedSensors.
261
- */
260
+ * @description Description text for not restored reason RequestedBackForwardCacheBlockedSensors.
261
+ */
262
262
  requestedBackForwardCacheBlockedSensors:
263
263
  'Pages that have requested sensor permissions are not currently eligible for back/forward cache.',
264
264
  /**
265
- * @description Description text for not restored reason RequestedBackgroundWorkPermission.
266
- */
265
+ * @description Description text for not restored reason RequestedBackgroundWorkPermission.
266
+ */
267
267
  requestedBackgroundWorkPermission:
268
268
  'Pages that have requested background sync or fetch permissions are not currently eligible for back/forward cache.',
269
269
  /**
270
- * @description Description text for not restored reason BroadcastChannel.
271
- */
270
+ * @description Description text for not restored reason BroadcastChannel.
271
+ */
272
272
  broadcastChannel: 'The page cannot be cached because it has a BroadcastChannel instance with registered listeners.',
273
273
  /**
274
- * @description Description text for not restored reason IndexedDBConnection.
275
- */
274
+ * @description Description text for not restored reason IndexedDBConnection.
275
+ */
276
276
  indexedDBConnection:
277
277
  'Pages that have an open IndexedDB connection are not currently eligible for back/forward cache.',
278
278
  /**
279
- * @description Description text for not restored reason WebXR.
280
- */
279
+ * @description Description text for not restored reason WebXR.
280
+ */
281
281
  webXR: 'Pages that use WebXR are not currently eligible for back/forward cache.',
282
282
  /**
283
- * @description Description text for not restored reason SharedWorker.
284
- */
283
+ * @description Description text for not restored reason SharedWorker.
284
+ */
285
285
  sharedWorker: 'Pages that use SharedWorker are not currently eligible for back/forward cache.',
286
286
  /**
287
- * @description Description text for not restored reason WebLocks.
288
- */
287
+ * @description Description text for not restored reason WebLocks.
288
+ */
289
289
  webLocks: 'Pages that use WebLocks are not currently eligible for back/forward cache.',
290
290
  /**
291
- * @description Description text for not restored reason WebHID.
292
- */
291
+ * @description Description text for not restored reason WebHID.
292
+ */
293
293
  webHID: 'Pages that use WebHID are not currently eligible for back/forward cache.',
294
294
  /**
295
- * @description Description text for not restored reason WebShare.
296
- */
295
+ * @description Description text for not restored reason WebShare.
296
+ */
297
297
  webShare: 'Pages that use WebShare are not currently eligible for back/forwad cache.',
298
298
  /**
299
- * @description Description text for not restored reason RequestedStorageAccessGrant.
300
- */
299
+ * @description Description text for not restored reason RequestedStorageAccessGrant.
300
+ */
301
301
  requestedStorageAccessGrant:
302
302
  'Pages that have requested storage access are not currently eligible for back/forward cache.',
303
303
  /**
304
- * @description Description text for not restored reason WebNfc.
305
- */
304
+ * @description Description text for not restored reason WebNfc.
305
+ */
306
306
  webNfc: 'Pages that use WebNfc are not currently eligible for back/forwad cache.',
307
307
  /**
308
- * @description Description text for not restored reason OutstandingNetworkRequestFetch.
309
- */
308
+ * @description Description text for not restored reason OutstandingNetworkRequestFetch.
309
+ */
310
310
  outstandingNetworkRequestFetch:
311
311
  'Pages with an in-flight fetch network request are not currently eligible for back/forward cache.',
312
312
  /**
313
- * @description Description text for not restored reason OutstandingNetworkRequestXHR.
314
- */
313
+ * @description Description text for not restored reason OutstandingNetworkRequestXHR.
314
+ */
315
315
  outstandingNetworkRequestXHR:
316
316
  'Pages with an in-flight XHR network request are not currently eligible for back/forward cache.',
317
317
  /**
318
- * @description Description text for not restored reason AppBanner.
319
- */
318
+ * @description Description text for not restored reason AppBanner.
319
+ */
320
320
  appBanner: 'Pages that requested an AppBanner are not currently eligible for back/forward cache.',
321
321
  /**
322
- * @description Description text for not restored reason Printing.
323
- */
322
+ * @description Description text for not restored reason Printing.
323
+ */
324
324
  printing: 'Pages that show Printing UI are not currently eligible for back/forward cache.',
325
325
  /**
326
- * @description Description text for not restored reason WebDatabase.
327
- */
326
+ * @description Description text for not restored reason WebDatabase.
327
+ */
328
328
  webDatabase: 'Pages that use WebDatabase are not currently eligible for back/forward cache.',
329
329
  /**
330
- * @description Description text for not restored reason PictureInPicture.
331
- */
330
+ * @description Description text for not restored reason PictureInPicture.
331
+ */
332
332
  pictureInPicture: 'Pages that use Picture-in-Picture are not currently eligible for back/forward cache.',
333
333
  /**
334
- * @description Description text for not restored reason Portal.
335
- */
334
+ * @description Description text for not restored reason Portal.
335
+ */
336
336
  portal: 'Pages that use portals are not currently eligible for back/forward cache.',
337
337
  /**
338
- * @description Description text for not restored reason SpeechRecognizer.
339
- */
338
+ * @description Description text for not restored reason SpeechRecognizer.
339
+ */
340
340
  speechRecognizer: 'Pages that use SpeechRecognizer are not currently eligible for back/forward cache.',
341
341
  /**
342
- * @description Description text for not restored reason IdleManager.
343
- */
342
+ * @description Description text for not restored reason IdleManager.
343
+ */
344
344
  idleManager: 'Pages that use IdleManager are not currently eligible for back/forward cache.',
345
345
  /**
346
- * @description Description text for not restored reason PaymentManager.
347
- */
346
+ * @description Description text for not restored reason PaymentManager.
347
+ */
348
348
  paymentManager: 'Pages that use PaymentManager are not currently eligible for back/forward cache.',
349
349
  /**
350
- * @description Description text for not restored reason SpeechSynthesis.
351
- */
350
+ * @description Description text for not restored reason SpeechSynthesis.
351
+ */
352
352
  speechSynthesis: 'Pages that use SpeechSynthesis are not currently eligible for back/forward cache.',
353
353
  /**
354
- * @description Description text for not restored reason KeyboardLock.
355
- */
354
+ * @description Description text for not restored reason KeyboardLock.
355
+ */
356
356
  keyboardLock: 'Pages that use Keyboard lock are not currently eligible for back/forward cache.',
357
357
  /**
358
- * @description Description text for not restored reason WebOTPService.
359
- */
358
+ * @description Description text for not restored reason WebOTPService.
359
+ */
360
360
  webOTPService: 'Pages that use WebOTPService are not currently eligible for bfcache.',
361
361
  /**
362
- * @description Description text for not restored reason OutstandingNetworkRequestDirectSocket.
363
- */
362
+ * @description Description text for not restored reason OutstandingNetworkRequestDirectSocket.
363
+ */
364
364
  outstandingNetworkRequestDirectSocket:
365
365
  'Pages with an in-flight network request are not currently eligible for back/forward cache.',
366
366
  /**
367
- * @description Description text for not restored reason InjectedJavascript.
368
- */
367
+ * @description Description text for not restored reason InjectedJavascript.
368
+ */
369
369
  injectedJavascript:
370
- 'Pages that JavaScript is injected into by extensions are not currently eligible for back/forward cache.',
370
+ 'Pages that `JavaScript` is injected into by extensions are not currently eligible for back/forward cache.',
371
371
  /**
372
- * @description Description text for not restored reason InjectedStyleSheet.
373
- */
372
+ * @description Description text for not restored reason InjectedStyleSheet.
373
+ */
374
374
  injectedStyleSheet:
375
- 'Pages that StyleSheet is injected into by extensions are not currently eligible for back/forward cache.',
375
+ 'Pages that a `StyleSheet` is injected into by extensions are not currently eligible for back/forward cache.',
376
376
  /**
377
- * @description Description text for not restored reason ContentSecurityHandler.
378
- */
377
+ * @description Description text for not restored reason ContentSecurityHandler.
378
+ */
379
379
  contentSecurityHandler: 'Pages that use SecurityHandler are not eligible for back/forward cache.',
380
380
  /**
381
- * @description Description text for not restored reason NotMainFrame.
382
- */
381
+ * @description Description text for not restored reason NotMainFrame.
382
+ */
383
383
  contentWebAuthenticationAPI: 'Pages that use WebAuthetication API are not eligible for back/forward cache.',
384
384
  /**
385
- * @description Description text for not restored reason NotMainFrame.
386
- */
385
+ * @description Description text for not restored reason NotMainFrame.
386
+ */
387
387
  contentFileChooser: 'Pages that use FileChooser API are not eligible for back/forward cache.',
388
388
  /**
389
- * @description Description text for not restored reason NotMainFrame.
390
- */
389
+ * @description Description text for not restored reason NotMainFrame.
390
+ */
391
391
  contentSerial: 'Pages that use Serial API are not eligible for back/forward cache.',
392
392
  /**
393
- * @description Description text for not restored reason NotMainFrame.
394
- */
393
+ * @description Description text for not restored reason NotMainFrame.
394
+ */
395
395
  contentFileSystemAccess: 'Pages that use File System Access API are not eligible for back/forward cache.',
396
396
  /**
397
- * @description Description text for not restored reason NotMainFrame.
398
- */
397
+ * @description Description text for not restored reason NotMainFrame.
398
+ */
399
399
  contentMediaDevicesDispatcherHost: 'Pages that use Media Device Dispatcher are not eligible for back/forward cache.',
400
400
  /**
401
- * @description Description text for not restored reason NotMainFrame.
402
- */
401
+ * @description Description text for not restored reason NotMainFrame.
402
+ */
403
403
  contentWebBluetooth: 'Pages that use WebBluetooth API are not eligible for back/forward cache.',
404
404
  /**
405
- * @description Description text for not restored reason ContentWebUSB.
406
- */
405
+ * @description Description text for not restored reason ContentWebUSB.
406
+ */
407
407
  contentWebUSB: 'Pages that use WebUSB API are not eligible for back/forward cache.',
408
408
  /**
409
- * @description Description text for not restored reason ContentMediaSession.
410
- */
409
+ * @description Description text for not restored reason ContentMediaSession.
410
+ */
411
411
  contentMediaSession:
412
412
  'Pages that use MediaSession API and set a playback state are not eligible for back/forward cache.',
413
413
  /**
414
- * @description Description text for not restored reason ContentMediaSessionService.
415
- */
414
+ * @description Description text for not restored reason ContentMediaSessionService.
415
+ */
416
416
  contentMediaSessionService:
417
417
  'Pages that use MediaSession API and set action handlers are not eligible for back/forward cache.',
418
418
  /**
419
- * @description Description text for not restored reason ContentMediaPlay.
420
- */
419
+ * @description Description text for not restored reason ContentMediaPlay.
420
+ */
421
421
  contentMediaPlay: 'A media player was playing upon navigating away.',
422
422
  /**
423
- * @description Description text for not restored reason ContentScreenReader.
424
- */
423
+ * @description Description text for not restored reason ContentScreenReader.
424
+ */
425
425
  contentScreenReader: 'Back/forward cache is disabled due to screen reader.',
426
426
 
427
427
  /**
428
- * @description Description text for not restored reason EmbedderPopupBlockerTabHelper.
429
- */
428
+ * @description Description text for not restored reason EmbedderPopupBlockerTabHelper.
429
+ */
430
430
  embedderPopupBlockerTabHelper: 'Popup blocker was present upon navigating away.',
431
431
 
432
432
  /**
433
- * @description Description text for not restored reason EmbedderSafeBrowsingTriggeredPopupBlocker.
434
- */
433
+ * @description Description text for not restored reason EmbedderSafeBrowsingTriggeredPopupBlocker.
434
+ */
435
435
  embedderSafeBrowsingTriggeredPopupBlocker: 'Safe Browsing considered this page to be abusive and blocked popup.',
436
436
 
437
437
  /**
438
- * @description Description text for not restored reason EmbedderSafeBrowsingThreatDetails.
439
- */
438
+ * @description Description text for not restored reason EmbedderSafeBrowsingThreatDetails.
439
+ */
440
440
  embedderSafeBrowsingThreatDetails: 'Safe Browsing details were shown upon navigating away.',
441
441
 
442
442
  /**
443
- * @description Description text for not restored reason EmbedderAppBannerManager.
444
- */
443
+ * @description Description text for not restored reason EmbedderAppBannerManager.
444
+ */
445
445
  embedderAppBannerManager: 'App Banner was present upon navigating away.',
446
446
 
447
447
  /**
448
- * @description Description text for not restored reason EmbedderDomDistillerViewerSource.
449
- */
448
+ * @description Description text for not restored reason EmbedderDomDistillerViewerSource.
449
+ */
450
450
  embedderDomDistillerViewerSource: 'DOM Distiller Viewer was present upon navigating away.',
451
451
 
452
452
  /**
453
- * @description Description text for not restored reason EmbedderDomDistillerSelfDeletingRequestDelegate.
454
- */
453
+ * @description Description text for not restored reason EmbedderDomDistillerSelfDeletingRequestDelegate.
454
+ */
455
455
  embedderDomDistillerSelfDeletingRequestDelegate: 'DOM distillation was in progress upon navigating away.',
456
456
 
457
457
  /**
458
- * @description Description text for not restored reason EmbedderOomInterventionTabHelper.
459
- */
458
+ * @description Description text for not restored reason EmbedderOomInterventionTabHelper.
459
+ */
460
460
  embedderOomInterventionTabHelper: 'Out-Of-Memory Intervention bar was present upon navigating away.',
461
461
 
462
462
  /**
463
- * @description Description text for not restored reason EmbedderOfflinePage.
464
- */
463
+ * @description Description text for not restored reason EmbedderOfflinePage.
464
+ */
465
465
  embedderOfflinePage: 'The offline page was shown upon navigating away.',
466
466
 
467
467
  /**
468
- * @description Description text for not restored reason EmbedderChromePasswordManagerClientBindCredentialManager.
469
- */
468
+ * @description Description text for not restored reason EmbedderChromePasswordManagerClientBindCredentialManager.
469
+ */
470
470
  embedderChromePasswordManagerClientBindCredentialManager: 'Chrome Password Manager was present upon navigating away.',
471
471
 
472
472
  /**
473
- * @description Description text for not restored reason EmbedderPermissionRequestManager.
474
- */
473
+ * @description Description text for not restored reason EmbedderPermissionRequestManager.
474
+ */
475
475
  embedderPermissionRequestManager: 'There were permission requests upon navigating away.',
476
476
 
477
477
  /**
478
- * @description Description text for not restored reason EmbedderModalDialog.
479
- */
478
+ * @description Description text for not restored reason EmbedderModalDialog.
479
+ */
480
480
  embedderModalDialog:
481
481
  'Modal dialog such as form resubmission or http password dialog was shown for the page upon navigating away.',
482
482
 
483
483
  /**
484
- * @description Description text for not restored reason EmbedderExtensions.
485
- */
484
+ * @description Description text for not restored reason EmbedderExtensions.
485
+ */
486
486
  embedderExtensions: 'Back/forward cache is disabled due to extensions.',
487
487
 
488
488
  /**
489
- * @description Description text for not restored reason EmbedderExtensionMessaging.
490
- */
489
+ * @description Description text for not restored reason EmbedderExtensionMessaging.
490
+ */
491
491
  embedderExtensionMessaging: 'Back/forward cache is disabled due to extensions using messaging API.',
492
492
 
493
493
  /**
494
- * @description Description text for not restored reason EmbedderExtensionMessagingForOpenPort.
495
- */
494
+ * @description Description text for not restored reason EmbedderExtensionMessagingForOpenPort.
495
+ */
496
496
  embedderExtensionMessagingForOpenPort:
497
497
  'Extensions with long-lived connection should close the connection before entering back/forward cache.',
498
498
 
499
499
  /**
500
- * @description Description text for not restored reason EmbedderExtensionSentMessageToCachedFrame.
501
- */
500
+ * @description Description text for not restored reason EmbedderExtensionSentMessageToCachedFrame.
501
+ */
502
502
  embedderExtensionSentMessageToCachedFrame:
503
503
  'Extensions with long-lived connection attempted to send messages to frames in back/forward cache.',
504
504
  /**
505
- * @description Description text for not restored reason ErrorDocument.
506
- */
505
+ * @description Description text for not restored reason ErrorDocument.
506
+ */
507
507
  errorDocument: 'Back/forward cache is disabled due to a document error.',
508
508
  /**
509
- * @description Description text for not restored reason FencedFramesEmbedder.
510
- */
509
+ * @description Description text for not restored reason FencedFramesEmbedder.
510
+ */
511
511
  fencedFramesEmbedder: 'Pages using FencedFrames cannot be stored in bfcache.',
512
512
  /**
513
- * @description Description text for not restored reason KeepaliveRequest.
514
- */
513
+ * @description Description text for not restored reason KeepaliveRequest.
514
+ */
515
515
  keepaliveRequest: 'Back/forward cache is disabled due to a keepalive request.',
516
+ /**
517
+ * @description Empty string to roll protocol.
518
+ */
519
+ authorizationHeader: 'Back/forward cache is disabled due to a keepalive request.',
520
+ /**
521
+ * @description Description text for not restored reason IndexedDBEvent.
522
+ */
523
+ indexedDBEvent: 'Back/forward cache is disabled due to an IndexedDB event.',
524
+ /**
525
+ * @description Description text for not restored reason CookieDisabled.
526
+ */
527
+ cookieDisabled:
528
+ 'Back/forward cache is disabled because cookies are disabled on a page that uses `Cache-Control: no-store`.',
516
529
  };
517
530
 
518
531
  const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);
@@ -653,6 +666,9 @@ const NotRestoredReasonDescription = {
653
666
  'ErrorDocument': {name: str_(UIStrings.errorDocument)},
654
667
  'FencedFramesEmbedder': {name: str_(UIStrings.fencedFramesEmbedder)},
655
668
  'KeepaliveRequest': {name: str_(UIStrings.keepaliveRequest)},
669
+ 'AuthorizationHeader': {name: str_(UIStrings.authorizationHeader)},
670
+ 'IndexedDBEvent': {name: str_(UIStrings.indexedDBEvent)},
671
+ 'CookieDisabled': {name: str_(UIStrings.cookieDisabled)},
656
672
  };
657
673
 
658
674
  export {