Commit 2c03ae3
[sources] Check media type for images and fonts
If users navigate a chrome tab to an image/font it has ResourceType
'Document' and currently we'll show an error (or raw bytes).
Instead we can be a bit more permissive and attempt to render an
image/font if the media type indicates as such.
[email protected]
Fixed: 373728013
Change-Id: Ia931cbacfe0b0f41ba1789214c683e9857dd1b5b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5952209
Reviewed-by: Benedikt Meurer <[email protected]>
Commit-Queue: Simon Zünd <[email protected]>1 parent 42181c6 commit 2c03ae3
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
0 commit comments