Commit 3b641ed
Handle StreamingContentData updates in BinaryResourceViewFactory
This is the last piece of the puzzle: Update the ResourceSourceFrame
views that the BinaryResourceViewFactory produces when the content
updates.
The "cleaner" approach would be to pass a custom "ContentProvider"
to "ResourceSourceFrame" that spits out a wrapped
"StreamingContentData" that applies the utf8/base64 transformation to
the original "StreamingContentData". That is because the
"ResourceSourceFrame" actually knows how to subscribe to
"StreamingContentData" updates. This is a lot of boilerplate code
though and not very readable, so the next best thing is this CL.
[email protected]
Fixed: 375546679
Change-Id: I982859fd255354ea8a73cc928bc34640ec78a87b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5993272
Commit-Queue: Simon Zünd <[email protected]>
Reviewed-by: Philip Pfaffe <[email protected]>1 parent ee21558 commit 3b641ed
File tree
2 files changed
+45
-2
lines changed- front_end/ui/legacy/components/source_frame
2 files changed
+45
-2
lines changedLines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
47 | 82 | | |
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
| |||
0 commit comments