mirror of
https://github.com/9prodhi/camoufox-rs.git
synced 2026-11-29 16:00:49 +00:00
#5: navigate used to drop the page's execution context on the ack (and the CLI dropped it even earlier), so a navigation that became a download left the page unusable until timeout. A new ExecContextTracker records live main-world contexts; navigate remembers the current one and restores it when the navigation produces no new document (download, same-document nav, timeout, protocol error). Contexts created during the navigation are kept. #6: the main-world bridge no longer declares page-scope bindings (a page global named `val` broke it) and no longer needs eval for plain expressions: the isolated world pre-parses the input and picks the direct or eval form. It borrows an existing script nonce, which makes --main-world work on nonce-CSP pages without any flag (verified on Camoufox 158). When the page CSP still blocks it, the error says to relaunch with --bypass-csp, a new opt-in launch flag (off by default: pages can detect it). Implemented by agy (gemini-3.8-flash-high); reviewed by Claude. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YQU84X3UzxGaxqrADxbkoE
12 lines
175 B
HTML
12 lines
175 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSP Inline</title>
|
|
<script>window.answer = 42;</script>
|
|
</head>
|
|
<body>
|
|
<h1>CSP Inline</h1>
|
|
</body>
|
|
</html>
|