Mark resource from the WebBundle as such and show WebBundle-specific errors.

Bug: 1182537
Change-Id: I1a35a676005cf60d725f23fac0a3900c1a1c21bc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2949050
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
This commit is contained in:
Danil Somsikov
2021-06-09 15:31:48 +00:00
committed by Devtools-frontend LUCI CQ
parent 4ba8f35eed
commit 73839bd1b0
17 changed files with 224 additions and 8 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ async function requestHandler(request, response) {
let encoding = 'utf8';
if (absoluteFilePath.endsWith('.wasm') || absoluteFilePath.endsWith('.png') || absoluteFilePath.endsWith('.jpg') ||
absoluteFilePath.endsWith('.avif')) {
absoluteFilePath.endsWith('.avif') || absoluteFilePath.endsWith('.wbn')) {
encoding = 'binary';
}