mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-08-02 02:36:06 -04:00
Puppeteer's networkidle0 requires the networkIdle/networkAlmostIdle
lifecycle events on every frame that started loading, like Chrome
emits them — not just the root frame. Run the idle-notification
checks recursively over the frame tree in Runner._tick.
Fixes goto({waitUntil: 'networkidle0'}) timing out on pages with
iframes (e.g. reddit.com post pages).
5 lines
112 B
HTML
5 lines
112 B
HTML
<!DOCTYPE html>
|
|
<meta charset="UTF-8">
|
|
<iframe src="about:blank"></iframe>
|
|
<iframe src="runner1.html"></iframe>
|