snowflake.com and sgvtribune.com spin on CPU until the 30s script deadline (Chrome loads in ~1.6s); CDP session unresponsive meanwhile
Before you start
- I searched existing issues and this is not a duplicate.
- I tested against the latest release or
main. - This is not a security vulnerability (those go through SECURITY.md, not a public issue).
obscura version or commit
v0.2.3 (official release archive)
OS and architecture
macOS 26 arm64
How are you using obscura?
CLI (fetch / serve / scrape / mcp)
Affected area
JavaScript or DOM behavior
Build variant
Render-enabled with stealth (official stealth archive or --features render,stealth)
Stealth mode
Reproduces both with and without --stealth.
Reproduction
obscura fetch https://www.snowflake.com/en/ --eval "document.title"
obscura fetch https://www.sgvtribune.com/ --eval "document.title"Expected behavior
The page loads and the title is printed. Headless Chrome (Chrome for Testing 149.0.7827.55) reaches domcontentloaded on snowflake.com in about 1.6s.
Actual behavior
Both URLs burn the whole 30s script deadline on CPU and then fail the navigation. sgvtribune.com failed 6/6 serve runs and every fetch; snowflake.com failed 5/6 serve runs (both builds combined) and 3/3 fetch runs:
WARN obscura_browser::page: script deadline reached with load-delaying dynamic scripts still pending
WARN obscura_js::runtime: V8 watchdog fired: terminated a synchronous overrun
Error: Failed to navigate to https://www.snowflake.com/en/: Network error: navigation exceeded 30000ms deadline
real 33.03
user 29.09
sys 0.44user time is almost equal to wall time, so this is a synchronous spin, not a slow network. With --verbose the snowflake run writes about 1.45M log lines, and nearly all of them are selector matching, e.g.:
159629 selectors::matching: Matching complex selector [href]base for DomElement(...)
144282 selectors::matching: Matching complex selector style for DomElement(...)
129696 selectors::matching: Matching complex selector :last-of-type for DomElement(...)
106208 selectors::matching: Matching complex selector iframe for DomElement(...)
40460 selectors::matching: Matching complex selector ."company-stats" > ."container" > ."cmp-container" > ."aem-container" > :first-childdiv ...That looks like a full restyle being run repeatedly from inside page script (style or layout reads in a loop, or querySelector-heavy code), rather than one expensive script.
It also hurts CDP clients more than the CLI. Over serve, while the spin runs the connection stops answering: a Playwright goto(timeout=5000) raises on time, but the following page.evaluate("1+1") blocks for about 33s and then fails with "Execution context was destroyed", and page.content() and context.new_page() each time out after 60s. So a client-side timeout doesn't free the page; the only recovery is closing the context.
Possibly related: #683 (navigate never returns on ad-heavy pages, v0.2.0, MCP). Here the deadline does fire, but a page that Chrome loads in under 2s always exhausts it.
Does headless Chrome behave the same?
No: headless Chrome renders or behaves correctly and obscura does not
Source: h4ckf0r0day/obscura