Commit 6dec4b0
[RPP] Only render images with data url from resource model
The `ImageRef` component was rendering URLs from the trace, which is a
potential security issue given the devtools page has access to CDP.
Instead, only render images if found in the active resource tree model,
and use the data url given by `Page.getResourceContent`.
See: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6532244/comment/c8aa4c3c_edff91ce/
Bug: 416449602
Change-Id: I3bc3c6f48456a13dc7dd10d0dfb66f3570c3c406
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6605300
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>1 parent e106eff commit 6dec4b0
File tree
2 files changed
+40
-14
lines changed- front_end
- models/trace/insights
- panels/timeline/components/insights
2 files changed
+40
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Lines changed: 38 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
91 | 124 | | |
92 | 125 | | |
93 | 126 | | |
94 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
95 | 131 | | |
96 | 132 | | |
97 | 133 | | |
98 | 134 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 135 | + | |
105 | 136 | | |
106 | 137 | | |
107 | 138 | | |
| |||
114 | 145 | | |
115 | 146 | | |
116 | 147 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 148 | | |
123 | 149 | | |
124 | 150 | | |
| |||
0 commit comments