Files
morluto d2940c8b35 fix(browser): settle Frida, Playwright, CDP, and Electron cleanup races (#14786)
* fix(browser): settle Frida, Playwright, CDP, and Electron cleanup races

- Record an owed resume when a Frida spawn's script stays retained after its
  session detached, so a close retry resumes the target.
- Give a clean Playwright open failure its bounded cleanup before reporting,
  and wrap only leases that remain unreleased.
- Retire the main policy session when CDP reports it gone, instead of
  failing every service-worker cleanup retry.
- Skip lifecycle enabling for a CDP capture that ended before arming, and
  report a termination observed after the window.
- Capture only the Electron scripts parsed before capture, and give the CDP
  Electron provider its own ASAR descriptor owner.
- Wait for any close that starts while V8 admission waits for one.

* fix(browser): recover a gone main session in every command, report late scripts

- Mark the main policy session detached whenever a command on it is rejected
  as session-gone, and stop a cancelled capture's navigation through the
  Playwright frame when Page.stopLoading finds the session gone, so cleanup
  retries no longer repeat the same failed command.
- Count Electron scripts parsed after script capture, report them as dropped
  and include them in the total, as web capture does.
2026-11-26 17:59:20 +00:00
..