Files
camoufox/additions
Jake WriterandClaude Opus 5 dc201ddee8 test(playwright): run the vendored suite in the page's own world
The suite in tests/async is upstream Playwright's conformance suite, so it
asserts upstream semantics: tests read globals their own page scripts defined
and pass element handles into evaluate(). Under Camoufox's isolated world about
59 of them fail on "X is not defined" for a global the page really did set.

The "mw:" prefix cannot stand in -- it refuses handles by design (Runtime.js)
and much of this suite needs them -- so this adds a disableWorldIsolation config
key that makes the default world the page's own, and turns it on for this suite
only.

The flag gives up the property this fork exists for: automation JS becomes
visible to the page again. It is a conformance-suite mode, not a scraping mode.
Camoufox's isolation keeps its own coverage in tests/patches/isolated-evaluate.py,
which must go on passing without the flag.

Measured on beta.30 with Playwright 1.62: 73 failed/1023 passed -> 14
failed/1082 passed, with no test failing that was not already failing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-31 13:14:38 -06:00
..
2026-01-04 23:26:32 -05:00