Motivation: Sometimes the files are not available anymore on the Service Worker side. The Trace Viewer frontend then falls back to `file?path=` and uses its response, no matter what the response status is. This patch checks for the response status code before using its response. e.g. https://github.com/microsoft/playwright-dotnet/issues/2775 after some time / and some other reports. --------- Signed-off-by: Max Schmitt <max@schmitt.mx> Co-authored-by: Dmitry Gozman <dgozman@gmail.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| bundle.js | ||
| index.html | ||
| package.json | ||
| snapshot.html | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| uiMode.html | ||
| vite.config.ts | ||
| vite.sw.config.ts | ||