Class: Capybara::Lightpanda::Process
- Inherits:
-
Object
- Object
- Capybara::Lightpanda::Process
- Defined in:
- lib/capybara/lightpanda/process.rb
Constant Summary collapse
- READY_PATTERN =
/server running.*address\s*=\s*(\d+\.\d+\.\d+\.\d+:\d+)/m- ADDRESS_IN_USE_PATTERN =
/err=AddressInUse/- STOP_GRACE_SECONDS =
Seconds to wait for a graceful SIGTERM before escalating to SIGKILL in
stop/ the GC finalizer. Lightpanda absorbs a single SIGTERM while a CDP connection is still live (graceful shutdown blocks on the connection worker — see .claude/rules/lightpanda-io.md limitation #7B). The PRIMARY fix is gem-side: Browser closes the CDP WebSocket before SIGTERM at exit (Browser.quit_all via at_exit), so SIGTERM lands after EOF and teardown is instant. This escalation is the BACKSTOP for crash / GC-abandon paths the at_exit can't reach — without it, a SIGTERM left to the finalizer (which can't close the WS) blocked Process.wait forever (the 45-minrake test:allhang). NOT the same as #2507/#2509 (telemetry curl-multi), which the gem never hits because it disables telemetry. 3- MINIMUM_NIGHTLY_BUILD =
Floor for the cookie/navigation/redirect/modal/keyboard/css/forms/dispatch/ xpath/history/iframe-context/dialog fixes the gem now relies on: PR #2255 (Network.clearBrowserCookies empty params + Network.getAllCookies), PR #2257 (window.location.pathname/.search assignment triggers navigation), PR #2265 (URL fragment inherited across fragment-less redirect), PR #2261 (LP.handleJavaScriptDialog pre-arm), PR #2283 (Referer on cross-page nav), PR #2292 (KeyboardEvent.keyCode/charCode), PR #2294 (UA stylesheet display:none for HEAD/SCRIPT/STYLE/NOSCRIPT/TEMPLATE/ TITLE/[type=hidden]), PR #2308 (textarea LF→CRLF), PR #2312 ( click submits form), PR #2315 (:disabled honors fieldset/ optgroup ancestors), PR #2322 (LP dialog defaultText fallback when promptText is null), PR #2324 (