Commit 69b531a
Handle errors when loading manifest icons.
Wrap the `loadResource` call in a try-catch block to gracefully handle cases where an icon cannot be loaded, returning `null` instead of throwing an error.
Bug: 492211941
Change-Id: I050af476d0b54cc3582e871647484d2e977cabb8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7681550
Auto-Submit: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>1 parent ba3b144 commit 69b531a
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1364 | 1370 | | |
1365 | 1371 | | |
1366 | 1372 | | |
| |||
0 commit comments