CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 06:52:10 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/WordPress/gutenberg.git
etag: W/"c45fc63bb921b3b1ee2a083a92990039"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=CXmFj5CyJKYFQ%2Bv6m2gjDu0iP5T%2BJNZUNO4DMA5MBgV7aKiae0MvhsSnqY7Ue7h9WZg6FkNwsz%2BgPom0sX2vk8pe%2B8fOGHoqCeg3I0kAypBXRMwCfBxQ50NxHhUvIRRp8Ze6UUsac261tn4S4O52Vqn7Z%2FAHnVs77ORXmp1uayS%2FFf45ApECnKDC0mpd421ZhHLV3Iom5vTn5qCejH9vSt4W310BufVih7pMkTre1x6QUWxmNY9VKcxU%2B%2FAlcYedR2P9ZY1jiGR58RpytsDtdw%3D%3D--wbgweHuwSuyXj7bt--KGHJQxeWIc0mqA4%2BQR2T4Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.36355845.1760165530; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 06:52:10 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 06:52:10 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 96EE:547BC:3D6A8C:557087:68E9FE9A
api-fetch: Check navigator.onLine to improve failure notices (#71438) · WordPress/gutenberg@62692fb · GitHub




authored
Copy file name to clipboardExpand all lines: packages/api-fetch/src/index.ts
Copy file name to clipboardExpand all lines: packages/api-fetch/src/test/index.js
Copy file name to clipboardExpand all lines: packages/editor/src/store/utils/notice-builder.js
Copy file name to clipboardExpand all lines: packages/media-utils/src/utils/test/upload-media.ts
Copy file name to clipboardExpand all lines: test/e2e/specs/editor/various/autosave.spec.js
Copy file name to clipboardExpand all lines: test/e2e/specs/editor/various/change-detection.spec.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit 62692fb
api-fetch: Check navigator.onLine to improve failure notices (#71438)
Check navigator.onLine to improve failure notices
When handling a failed request, let api-fetch infer from the value of
`navigator.onLine` whether the failure likely stems from the fact that
the user is disconnected from the network.
This still leaves out other kinds of network error, which right now will
still trigger the fallback "Could not get a valid response from the server"
messaging. The spec for `Window.fetch` does not prescribe a
standard error for network errors, meaning that browsers each implement
their own messaging.
Co-authored-by: mcsf <mcsf@git.wordpress.org>
Co-authored-by: jsnajdr <jsnajdr@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>1 parent 95bc550 commit 62692fbCopy full SHA for 62692fb
File tree
Expand file treeCollapse file tree
6 files changed
+41
-12
lines changedFilter options
- packages
- api-fetch/src
- test
- editor/src/store/utils
- media-utils/src/utils/test
- test/e2e/specs/editor/various
Expand file treeCollapse file tree
6 files changed
+41
-12
lines changedCollapse file: packages/api-fetch/src/index.ts
packages/api-fetch/src/index.ts
Copy file name to clipboardExpand all lines: packages/api-fetch/src/index.ts+15-3Lines changed: 15 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
118 |
| - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
119 | 129 |
| |
120 | 130 |
| |
121 |
| - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
122 | 134 |
| |
123 | 135 |
| |
124 | 136 |
| |
|
Collapse file: packages/api-fetch/src/test/index.js
packages/api-fetch/src/test/index.js
Copy file name to clipboardExpand all lines: packages/api-fetch/src/test/index.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 |
| - | |
| 171 | + | |
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
|
Collapse file: packages/editor/src/store/utils/notice-builder.js
packages/editor/src/store/utils/notice-builder.js
Copy file name to clipboardExpand all lines: packages/editor/src/store/utils/notice-builder.js+21-4Lines changed: 21 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
93 |
| - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
94 | 109 |
| |
95 | 110 |
| |
96 | 111 |
| |
97 | 112 |
| |
| 113 | + | |
98 | 114 |
| |
| 115 | + | |
99 | 116 |
| |
100 |
| - | |
| 117 | + | |
101 | 118 |
| |
102 |
| - | |
| 119 | + | |
103 | 120 |
| |
104 | 121 |
| |
105 | 122 |
| |
|
Collapse file: packages/media-utils/src/utils/test/upload-media.ts
packages/media-utils/src/utils/test/upload-media.ts
Copy file name to clipboardExpand all lines: packages/media-utils/src/utils/test/upload-media.ts+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
218 |
| - | |
| 218 | + | |
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
| |||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
232 |
| - | |
| 232 | + | |
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
|
Collapse file: test/e2e/specs/editor/various/autosave.spec.js
test/e2e/specs/editor/various/autosave.spec.js
Copy file name to clipboardExpand all lines: test/e2e/specs/editor/various/autosave.spec.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
270 | 270 |
| |
271 | 271 |
| |
272 | 272 |
| |
273 |
| - | |
| 273 | + | |
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
|
Collapse file: test/e2e/specs/editor/various/change-detection.spec.js
test/e2e/specs/editor/various/change-detection.spec.js
Copy file name to clipboardExpand all lines: test/e2e/specs/editor/various/change-detection.spec.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
246 |
| - | |
| 246 | + | |
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
|
You can’t perform that action at this time.
0 commit comments