Commit 19ce7af
committed
fix: skip frozen/discarded targets in page enumeration
When Chrome freezes or discards background tabs, target.page() can time
out on Network.enable. Calling browser.pages() lets one such target abort
the entire enumeration. Replace it with a per-target iteration over
browser.targets() so frozen targets are individually caught, logged, and
skipped without affecting healthy pages.
Fixes #12301 parent 582c9e0 commit 19ce7af
1 file changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
570 | 593 | | |
571 | 594 | | |
572 | 595 | | |
| |||
0 commit comments