Repository navigation
Commit 7b508a6
fix(server): snapshots of large ARIA trees keep a prefix of the page text
preview_snapshot halved visibleText all the way to zero before it shrank
the accessibility tree, so a text page with a large tree (any table of
~100+ rows) returned visibleText "…" while leaving the byte budget
partly unused.
The shed loop now brings visibleText and then the tree down to a
2,000-character floor before either drops below it. Below the floor the
previous order still applies (visibleText, interactiveElements, then the
tree), so the byte ceiling still holds for pathological input.
Fixes #33743
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent bfe4758 commit 7b508a6
1 file changed
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
| |||
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
| |||
375 | 382 | | |
376 | 383 | | |
377 | 384 | | |
378 | | - | |
| 385 | + | |
379 | 386 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
385 | 396 | | |
386 | 397 | | |
387 | | - | |
| 398 | + | |
388 | 399 | | |
389 | | - | |
| 400 | + | |
390 | 401 | | |
391 | 402 | | |
392 | 403 | | |
| |||
0 commit comments