Commit def42ea
[Backport] Dependency for CVE-2024-11116
Manual backport of patch originally reviewed on
https://chromium-review.googlesource.com/c/chromium/src/+/5381283:
view-transition: Add paint holding for same-origin cross-RFH navigations
For a same-origin navigation within the same RFH, there is no change in
the SurfaceID embedded by the parent frame. This means when the
navigation commits, redraws by the embedder display painted content from
the previous Document until the new Document is ready to render.
However for same-origin navigations which are cross-RFH, i.e. the default
path for RenderDocument, the SurfaceID embedded by the parent frame is
changed to point to the new RFH's FrameSinkId. This means there is a
flash of no content until the new Document paints.
Avoid the above by using the old Document's SurfaceID as a fallback with
a timeout. The approach is similar to the fallback Surface logic in the
browser process for main frame navigations.
R=rakina@chromium.org, vmpstr@chromium.org
Bug: 330920526
Change-Id: Iec7d0a3bc5b8d5d9191f935a8ea20c1f08f2cefd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5381283
Reviewed-by: Charlie Reis <creis@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Auto-Submit: Khushal Sagar <khushalsagar@chromium.org>
Commit-Queue: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1292531}
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/604271
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/6076121 parent 61ef2cc commit def42ea
File tree
19 files changed
+188
-51
lines changed- chromium
- content/browser/renderer_host
- third_party/blink
- common/widget
- public
- common/widget
- mojom/frame
- renderer
- core/frame
- platform
19 files changed
+188
-51
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
519 | 523 | | |
520 | 524 | | |
521 | 525 | | |
| |||
526 | 530 | | |
527 | 531 | | |
528 | 532 | | |
529 | | - | |
| 533 | + | |
| 534 | + | |
530 | 535 | | |
531 | 536 | | |
532 | 537 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8546 | 8546 | | |
8547 | 8547 | | |
8548 | 8548 | | |
8549 | | - | |
| 8549 | + | |
| 8550 | + | |
8550 | 8551 | | |
8551 | 8552 | | |
8552 | 8553 | | |
| |||
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
| 734 | + | |
| 735 | + | |
735 | 736 | | |
736 | | - | |
737 | | - | |
| 737 | + | |
| 738 | + | |
738 | 739 | | |
739 | 740 | | |
740 | 741 | | |
| |||
770 | 771 | | |
771 | 772 | | |
772 | 773 | | |
773 | | - | |
| 774 | + | |
| 775 | + | |
774 | 776 | | |
775 | 777 | | |
776 | 778 | | |
| |||
784 | 786 | | |
785 | 787 | | |
786 | 788 | | |
787 | | - | |
| 789 | + | |
| 790 | + | |
788 | 791 | | |
789 | 792 | | |
790 | 793 | | |
| |||
1467 | 1470 | | |
1468 | 1471 | | |
1469 | 1472 | | |
1470 | | - | |
| 1473 | + | |
| 1474 | + | |
1471 | 1475 | | |
1472 | 1476 | | |
1473 | 1477 | | |
| |||
4028 | 4032 | | |
4029 | 4033 | | |
4030 | 4034 | | |
4031 | | - | |
| 4035 | + | |
| 4036 | + | |
4032 | 4037 | | |
4033 | 4038 | | |
4034 | 4039 | | |
| |||
4340 | 4345 | | |
4341 | 4346 | | |
4342 | 4347 | | |
4343 | | - | |
| 4348 | + | |
| 4349 | + | |
4344 | 4350 | | |
4345 | 4351 | | |
4346 | 4352 | | |
| |||
4730 | 4736 | | |
4731 | 4737 | | |
4732 | 4738 | | |
4733 | | - | |
| 4739 | + | |
4734 | 4740 | | |
4735 | 4741 | | |
4736 | 4742 | | |
| |||
5136 | 5142 | | |
5137 | 5143 | | |
5138 | 5144 | | |
| 5145 | + | |
5139 | 5146 | | |
5140 | | - | |
| 5147 | + | |
| 5148 | + | |
5141 | 5149 | | |
5142 | 5150 | | |
5143 | 5151 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
| 326 | + | |
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| |||
971 | 972 | | |
972 | 973 | | |
973 | 974 | | |
| 975 | + | |
| 976 | + | |
974 | 977 | | |
975 | 978 | | |
976 | | - | |
| 979 | + | |
| 980 | + | |
977 | 981 | | |
978 | 982 | | |
979 | 983 | | |
980 | 984 | | |
981 | 985 | | |
982 | | - | |
| 986 | + | |
| 987 | + | |
983 | 988 | | |
984 | 989 | | |
985 | 990 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
| |||
438 | 435 | | |
439 | 436 | | |
440 | 437 | | |
441 | | - | |
| 438 | + | |
442 | 439 | | |
443 | 440 | | |
444 | 441 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
0 commit comments