2026-05-12 21:34:14 -07:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "invisible-playwright"
|
release: 0.1.8 - fix #20 cross-origin iframe regression (pref-only)
Pin fission.webContentIsolationStrategy=0 (IsolateNothing) in baseline
prefs. FF150 ships strategy=1 (IsolateEverything) by default, which
site-isolates every cross-origin iframe into a separate webIsolated
content process even when fission.autostart=False - different from
FF146 Playwright behavior. The parent's Juggler FrameTree then sees
the iframe placeholder with no docShell, no URL and a stale execution
context, so content_frame() returns None, frame.evaluate() throws
cross-origin permission errors, and frame_locator(...).click() times
out. Reproduced with a local cross-origin HTTP harness (two 127.0.0.1
ports = two SOP origins).
The fix is a single pref because that's the level the original Juggler
code paths assume - vanilla Playwright Firefox 146 ran with the looser
default. Disabling site-isolation costs nothing for a single-user
puppet browser; process-per-browser/profile isolation is unaffected.
Caller can A/B per session via
extra_prefs={"fission.webContentIsolationStrategy": 1}.
Tests: tests/test_cross_origin_iframe.py adds 4 unit sentinels (pref
in baseline, survives translate_profile_to_prefs, extra_prefs override
works) and 5 e2e sentinels that spin up two local HTTP servers on
random free ports and verify the four protocol operations that
regressed (page.frames URL tracking, content_frame(), frame.evaluate(),
frame_locator(...).locator(...)) plus dispatch_event('click')
end-to-end, for plain, sandboxed and titled iframes. A future FF
upgrade or A/B flipping the pref will fail the suite before shipping.
Verified clean: pytest -m unit (342 passed), fppro_full.py (ALL
CRITICAL FLAGS CLEAN), fppro_consistency.py (visitor_id stable).
BINARY_VERSION stays firefox-7 - Python-only release.
Issue: https://github.com/feder-cr/invisible_playwright/issues/20
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 09:44:48 -07:00
|
|
|
version = "0.1.8"
|
2026-05-12 21:34:14 -07:00
|
|
|
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.11"
|
|
|
|
|
license = "MIT"
|
|
|
|
|
authors = [{ name = "feder-cr", email = "85809106+feder-cr@users.noreply.github.com" }]
|
|
|
|
|
keywords = ["playwright", "firefox", "stealth", "anti-detect", "automation"]
|
|
|
|
|
classifiers = [
|
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
|
]
|
|
|
|
|
dependencies = [
|
|
|
|
|
"playwright>=1.40",
|
|
|
|
|
"platformdirs>=4",
|
|
|
|
|
"requests>=2.31",
|
|
|
|
|
"tqdm>=4.66",
|
|
|
|
|
"pywin32>=306; sys_platform == 'win32'",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
2026-05-16 17:14:08 -07:00
|
|
|
dev = ["pytest>=7", "pytest-mock>=3", "responses>=0.24", "build>=1"]
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
markers = [
|
|
|
|
|
"unit: pure-logic tests, no I/O or external deps",
|
|
|
|
|
"integration: multi-module tests, no browser",
|
|
|
|
|
"e2e: requires patched Firefox binary and display",
|
|
|
|
|
"slow: tests that build the wheel — opt-in only",
|
|
|
|
|
"linux_only: tests that require Linux platform",
|
|
|
|
|
]
|
|
|
|
|
addopts = "-m 'not slow and not e2e'"
|
2026-05-21 20:21:12 -07:00
|
|
|
# tests/playwright-upstream/ is a vendored Microsoft Playwright test suite
|
|
|
|
|
# used for compatibility verification on demand. It has its own deps
|
|
|
|
|
# (pixelmatch with API not matching our version) and a conftest that fails
|
|
|
|
|
# collection in our env. Run it explicitly with --override-ini for compat
|
|
|
|
|
# audits, not on every push.
|
|
|
|
|
norecursedirs = ["playwright-upstream"]
|
2026-05-12 21:34:14 -07:00
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
invisible-playwright = "invisible_playwright.cli:main"
|
|
|
|
|
|
|
|
|
|
[project.urls]
|
|
|
|
|
Homepage = "https://github.com/feder-cr/invisible_playwright"
|
|
|
|
|
Issues = "https://github.com/feder-cr/invisible_playwright/issues"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["src/invisible_playwright"]
|
|
|
|
|
|
2026-05-16 17:14:08 -07:00
|
|
|
[tool.hatch.build.targets.sdist]
|
|
|
|
|
include = ["src/invisible_playwright", "tests", "README.md", "LICENSE", "pyproject.toml"]
|