Commit 37cc4ee
LibWeb: Skip non-rendered elements before querying view transition name
Previously, starting a view transition on an element inside a
`display:none` subtree would crash because querying the view
transition name unconditionally accessed `computed_properties()`, which
is not calculated for these elements unless explicitly requested. We
now skip these non-rendered elements early, before querying the view
transition name, to avoid the crash.1 parent b0f926d commit 37cc4ee
3 files changed
Lines changed: 22 additions & 3 deletions
File tree
- Libraries/LibWeb
- DOM
- ViewTransition
- Tests/LibWeb/Crash/CSS
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4803 | 4803 | | |
4804 | 4804 | | |
4805 | 4805 | | |
4806 | | - | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
4807 | 4809 | | |
4808 | 4810 | | |
4809 | 4811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
258 | | - | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
| |||
370 | 375 | | |
371 | 376 | | |
372 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
373 | 383 | | |
374 | 384 | | |
375 | 385 | | |
376 | 386 | | |
377 | | - | |
| 387 | + | |
378 | 388 | | |
379 | 389 | | |
380 | 390 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments