Files
Neil ce8cd96e15 fix(browser): gate CLI page commands on main-frame loading, not subframe loading (#43677)
* fix(browser): stop CLI page commands waiting on a loading subframe

waitForBrowserPageReady gated on isLoading(), which stays true while only
an iframe loads, but waitForBrowserGuestLoad settles only on main-frame
did-finish-load/did-fail-load. A page that added an iframe after load made
every eval/goto/snapshot/tab show wait 30s and fail with
browser_navigation_failed. Gate on isLoadingMainFrame() instead.

Fixes #43655

* test(browser): stub isLoadingMainFrame in remaining browser guest doubles
2026-11-17 11:10:10 -08:00
..