Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8842355fb | ||
|
|
e9c888d8e8 |
No files matched your search
@@ -6,7 +6,7 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Use this when something detects the browser (Fingerprint Pro, a fingerprint consistency test page, BotD, reCAPTCHA, a basic bot-test page, etc).
|
||||
Use this when something detects the browser (Fingerprint Pro, CreepJS, BotD, reCAPTCHA, sannysoft, etc).
|
||||
Bugs in operations (clicks, navigation) go to the site/action template.
|
||||
Browser failing to start goes to the launch failure template.
|
||||
|
||||
@@ -110,7 +110,7 @@ body:
|
||||
id: full_report
|
||||
attributes:
|
||||
label: Full detector response
|
||||
description: "FP Pro: JSON from /api/event/v4/. Consistency test page: the report block with the failing checks. Optional."
|
||||
description: "FP Pro: JSON from /api/event/v4/. CreepJS: Smart Signals block. Optional."
|
||||
render: json
|
||||
validations:
|
||||
required: false
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Question or general discussion
|
||||
url: https://github.com/oss-invisible/playwright/discussions
|
||||
url: https://github.com/feder-cr/invisible_playwright/discussions
|
||||
about: Usage questions, ideas, chat. Bugs and features still go in issues.
|
||||
@@ -11,8 +11,6 @@
|
||||
# counters/history.csv date,key,value - every counter, once a day
|
||||
# counters/launches_daily.csv day_utc,launches - one row per measured day
|
||||
# docs/badges/launches.svg, docs/badges/stars.svg
|
||||
# docs/badges/launches.json, docs/badges/downloads.json - read by shields.io
|
||||
# for the big row at the top of the README
|
||||
#
|
||||
# 00:10 UTC, so the snapshot dated D closes calendar day D-1.
|
||||
name: counters
|
||||
|
||||
+13
-296
@@ -6,7 +6,8 @@
|
||||
# launched Firefox in true HEADLESS mode, which is content-process unstable on
|
||||
# the hosted runners (eval-CSP / context-destroyed). The stealth wrapper instead
|
||||
# launches Firefox HEADED on a real display; under `xvfb-run` (a virtual X
|
||||
# server) that's exactly what we get on a headless CI box - stable.
|
||||
# server) that's exactly what we get on a headless CI box - stable, and the same
|
||||
# thing webrtc-e2e.yml already relies on.
|
||||
#
|
||||
# Secret-free, so it's safe in public CI: the binary is the PUBLIC firefox-9
|
||||
# release (no token), and the webrtc e2e fake a local TCP-only SOCKS. The proxy
|
||||
@@ -33,35 +34,18 @@ on:
|
||||
- 'docs/**'
|
||||
- 'LICENSE'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
only:
|
||||
description: "Which job. `windows-control-a` runs only the Windows job of the keyboard shortcut (after the core of a release is on the index and its engine is published); `all` runs the whole workflow."
|
||||
required: false
|
||||
default: "all"
|
||||
type: choice
|
||||
options:
|
||||
- all
|
||||
- windows-control-a
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# A newer push to a pull request cancels the older in-flight run of THIS
|
||||
# workflow on that pull request as a whole, cleanly, instead of leaving its
|
||||
# queued jobs to be cancelled one by one - which left the run marked failed even
|
||||
# though nothing had actually failed. Keyed by workflow + pull request number,
|
||||
# so tests and e2e never cancel each other.
|
||||
#
|
||||
# NEVER on main. The release gate (scripts/e2e_is_green.py) asks for the e2e
|
||||
# check-run of the commit being tagged, and a cancelled one refuses the release:
|
||||
# with the group keyed by ref, the next push to main cancelled the run of the
|
||||
# commit before it. Outside a pull request the group is unique to the run
|
||||
# (`github.run_id`), so every commit of main keeps its own finished run, and a
|
||||
# pending run is not replaced by a newer one either (a group with a fixed name
|
||||
# drops the older pending run, cancel or not).
|
||||
# One run of this workflow per branch at a time. A newer push cancels the older
|
||||
# in-flight run as a whole, cleanly, instead of leaving its queued jobs to be
|
||||
# cancelled one by one - which left the run marked failed even though nothing
|
||||
# had actually failed. Keyed by workflow + ref so tests and e2e never cancel
|
||||
# each other; only an older run of THIS workflow on the same branch is replaced.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
# Engine and GeoIP downloads go through the release API with this token.
|
||||
# Anonymous requests share a 60-an-hour limit per runner address and are the
|
||||
@@ -83,7 +67,7 @@ jobs:
|
||||
e2e:
|
||||
name: e2e (linux, xvfb)
|
||||
needs: core-on-index
|
||||
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
|
||||
if: needs.core-on-index.outputs.available == 'true'
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 40
|
||||
steps:
|
||||
@@ -111,20 +95,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb
|
||||
# the fontconfig e2e trace the opens of the browser: strace is not in the runner image (setsid is, util-linux)
|
||||
sudo apt-get install -y strace
|
||||
# tests/test_security_state_engine_e2e.py, on a crash of the engine: a core file where kernel.core_pattern says, and gdb to read it (the test deletes the core and
|
||||
# uploads the backtrace with the evidence). Only a process that lifts its own core limit leaves a core, the runner's default limit is 0.
|
||||
sudo apt-get install -y gdb
|
||||
mkdir -p "$RUNNER_TEMP/invpw-cores"
|
||||
sudo sysctl -w kernel.core_pattern="$RUNNER_TEMP/invpw-cores/core.%e.%p"
|
||||
echo "INVPW_CORE_DIR=$RUNNER_TEMP/invpw-cores" >> "$GITHUB_ENV"
|
||||
sudo "$(which python)" -m playwright install-deps firefox
|
||||
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
|
||||
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
|
||||
- name: The security state (a fixed directory of the repository)
|
||||
shell: bash
|
||||
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
|
||||
- name: Fetch the published firefox binary
|
||||
run: echo "FF=$(python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
|
||||
- name: The protocol mirror agrees with the engine it is pinned to
|
||||
@@ -137,16 +108,7 @@ jobs:
|
||||
# The generator moved into the core with the module it writes (0.30.0),
|
||||
# so the check runs against the core this package installs.
|
||||
run: python -m invisible_core.juggler._gen_protocol --check --binary "$(dirname "$FF")"
|
||||
# The GeoIP database is made by the repository (scripts/ci_lab_geoip.py: the same bytes on every run, the sha256 in ci/geoip.json), never a
|
||||
# site and never a licensed file: without STEALTHFOX_GEOIP_MMDB the core asks GitHub which database is the latest on every call
|
||||
# (run 43211837926). The variable reaches every later step of the job.
|
||||
- name: The GeoIP database (made by the repository, same bytes every run)
|
||||
shell: bash
|
||||
run: python scripts/ci_lab_geoip.py build
|
||||
|
||||
# test_release_e2e.py and test_upgrade_e2e.py (pip, uv, PyPI, the GitHub release) are NOT in this run or in the Windows legs below: tests/conftest.py leaves
|
||||
# them out of every run that does not name their file, and user-install.yml (the round after the publication) names it. tests/_post_publication.py.
|
||||
- name: Run the full e2e suite under a virtual display, without the root ones
|
||||
- name: Run the full e2e suite under a virtual display
|
||||
# PYTHONUNBUFFERED, and it is not a nicety. Without it Python block-buffers
|
||||
# stdout when it is a pipe, and this step printed NOTHING for 39 minutes
|
||||
# before the 40-minute timeout killed it on 2026-08-04: a run with no
|
||||
@@ -162,94 +124,9 @@ jobs:
|
||||
# the descriptors at the system level: whatever is captured is lost
|
||||
# when the process is killed, which is exactly the case it exists for.
|
||||
INVPW_TEST_WATCHDOG_FILE: ${{ runner.temp }}/e2e-watchdog.log
|
||||
ROOT_FILES: tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py
|
||||
ROOT_NODES: tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick
|
||||
SANDBOX_FILES: tests/test_the_socket_process_is_sandboxed_e2e.py
|
||||
# The root ones are left out by name and run in the step below, as root: here, as the runner user, they errored. The sandbox one is left out
|
||||
# by name too and runs in its own step after them: it is red on a runner whose AppArmor refuses user namespaces to a normal user.
|
||||
run: |
|
||||
IGNORE=(); for f in $ROOT_FILES $SANDBOX_FILES; do IGNORE+=("--ignore=$f"); done
|
||||
DESELECT=(); for n in $ROOT_NODES; do DESELECT+=("--deselect=$n"); done
|
||||
xvfb-run -a python -u scripts/run_e2e.py "$FF" "${IGNORE[@]}" "${DESELECT[@]}"
|
||||
run: xvfb-run -a python -u scripts/run_e2e.py "$FF"
|
||||
|
||||
# THE ROOT SUITE, AS THE GATE RUNS IT (wrapper.e2e.udp.exit in ci/required-suites.json). Seven e2e need root: the exit of the lab is a documentation
|
||||
# address (198.51.100.9) added to `lo` with `ip addr add`. Collected here as the runner user they ERRORED (run 43262636367: "cannot hold 198.51.100.9
|
||||
# on lo (needs root and iproute2 on Linux)"), so the run above leaves them out by name (ROOT_FILES / ROOT_NODES) and this step runs them, and only
|
||||
# them, the way the gate does: the engine copied to /opt/ff (the socket process execs inside a new user namespace, where the runner's 750 home is not
|
||||
# readable), `sudo -H -E env -u XDG_RUNTIME_DIR` (Firefox refuses to run as root in a regular user's session), no rerun plugin. Nothing is skipped
|
||||
# silently: the step reads its own junit and refuses anything but exactly that many tests, all passed.
|
||||
# AFTER the run of the runner user, never before it (run 43271443150 of PR 483: with this step first, every launch of the run that followed
|
||||
# waited for the browser's readiness line until its timeout, and the job was cancelled at 40 minutes; the same head without the step had 748
|
||||
# green). Whatever root leaves behind (files under the runner's home or /tmp, /etc/resolv.conf, an address on lo) cannot reach a launch of the
|
||||
# runner user any more; the step after this one prints what it left, and decides nothing.
|
||||
# tests/test_the_root_e2e_run_in_the_root_step_and_nowhere_else.py holds the two lists, this step and the run above to the suite's list, and the order.
|
||||
- name: The root e2e (wrapper.e2e.udp.exit), as root, as the gate runs them
|
||||
if: success() || failure()
|
||||
env:
|
||||
PYTHONUNBUFFERED: "1"
|
||||
ROOT_FILES: tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py
|
||||
ROOT_NODES: tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick
|
||||
ROOT_TESTS: "7"
|
||||
run: |
|
||||
sudo rm -rf /opt/ff
|
||||
sudo cp -a "$(dirname "$FF")" /opt/ff
|
||||
sudo chown -R root:root /opt/ff
|
||||
sudo chmod -R go+rX /opt/ff
|
||||
ROOT_FF="/opt/ff/$(basename "$FF")"
|
||||
JUNIT="${RUNNER_TEMP}/root-e2e.xml"
|
||||
sudo -H -E env -u PYTEST_ADDOPTS -u XDG_RUNTIME_DIR INVPW_REQUIRE_TRAP=1 "PATH=$PATH" INVPW_BINARY_PATH="$ROOT_FF" STEALTHFOX_E2E_BINARY="$ROOT_FF" python -m pytest $ROOT_FILES $ROOT_NODES -m e2e -o addopts='' -o junit_family=xunit2 -q -p no:cacheprovider -p no:rerunfailures -rs --junitxml="$JUNIT" || true
|
||||
python - <<'PY'
|
||||
import os, sys, xml.etree.ElementTree as ET
|
||||
root = ET.parse(os.path.join(os.environ["RUNNER_TEMP"], "root-e2e.xml")).getroot()
|
||||
suite = root if root.tag == "testsuite" else root.find("testsuite")
|
||||
counts = {k: int(suite.get(k, 0)) for k in ("tests", "failures", "errors", "skipped")}
|
||||
print("root e2e:", counts)
|
||||
if counts["tests"] != int(os.environ["ROOT_TESTS"]) or counts["failures"] or counts["errors"] or counts["skipped"]:
|
||||
sys.exit("the root e2e must be exactly %s tests, all passed: %s" % (os.environ["ROOT_TESTS"], counts))
|
||||
PY
|
||||
# THE SANDBOX E2E (wrapper.e2e.udp.sandbox), as the gate runs its first file: the browser WITH its sandbox, run by the runner user. On this runner AppArmor
|
||||
# refuses user namespaces to a normal user (kernel.apparmor_restrict_unprivileged_userns=1), so the browser of every other step starts WITHOUT the sandbox
|
||||
# of its socket and content processes, and tests/test_the_socket_process_is_sandboxed_e2e.py (which fails unless both have a seccomp filter) can only
|
||||
# be green after the restriction is turned off. It is left out of the run above by name (SANDBOX_FILES) so that it cannot fail on a runner without the
|
||||
# sysctl, and it runs here, after the run and the root step (whatever the sysctl changes cannot reach a launch of the run), as the runner user. Nothing
|
||||
# is skipped silently: the step reads its own junit and refuses anything but exactly that many tests, all passed.
|
||||
# tests/test_the_sandbox_e2e_runs_where_user_namespaces_are_on.py holds this step, the exclusion above and the order.
|
||||
- name: The sandbox e2e (wrapper.e2e.udp.sandbox), with unprivileged user namespaces on
|
||||
if: success() || failure()
|
||||
env:
|
||||
PYTHONUNBUFFERED: "1"
|
||||
SANDBOX_FILES: tests/test_the_socket_process_is_sandboxed_e2e.py
|
||||
SANDBOX_TESTS: "1"
|
||||
run: |
|
||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
||||
JUNIT="${RUNNER_TEMP}/sandbox-e2e.xml"
|
||||
xvfb-run -a env -u PYTEST_ADDOPTS INVPW_BINARY_PATH="$FF" STEALTHFOX_E2E_BINARY="$FF" python -m pytest $SANDBOX_FILES -m e2e -o addopts='' -o junit_family=xunit2 -q -p no:cacheprovider -p no:rerunfailures -rs --junitxml="$JUNIT" || true
|
||||
python - <<'PY'
|
||||
import os, sys, xml.etree.ElementTree as ET
|
||||
root = ET.parse(os.path.join(os.environ["RUNNER_TEMP"], "sandbox-e2e.xml")).getroot()
|
||||
suite = root if root.tag == "testsuite" else root.find("testsuite")
|
||||
counts = {k: int(suite.get(k, 0)) for k in ("tests", "failures", "errors", "skipped")}
|
||||
print("sandbox e2e:", counts)
|
||||
if counts["tests"] != int(os.environ["SANDBOX_TESTS"]) or counts["failures"] or counts["errors"] or counts["skipped"]:
|
||||
sys.exit("the sandbox e2e must be exactly %s tests, all passed: %s" % (os.environ["SANDBOX_TESTS"], counts))
|
||||
PY
|
||||
- name: What the root step left behind (diagnostic, decides nothing)
|
||||
if: always()
|
||||
run: |
|
||||
echo "-- files owned by root under the runner's home and /tmp"; sudo find /home/runner /tmp -maxdepth 3 -user root 2>/dev/null | head -40 || true
|
||||
echo "-- /etc/resolv.conf"; cat /etc/resolv.conf || true
|
||||
echo "-- lo"; ip -4 addr show lo || true
|
||||
|
||||
# The leg ran with the pinned database, and the core never went past it to GitHub (tests/geoip_used.py wrote what it did).
|
||||
- name: The leg ran with the pinned GeoIP database
|
||||
if: always()
|
||||
shell: bash
|
||||
run: |
|
||||
python scripts/ci_lab_geoip.py evidence --out "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" > /dev/null
|
||||
python scripts/ci_lab_geoip.py verify --evidence "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" --used "$GEOIP_USED_OUT"
|
||||
|
||||
|
||||
# Runs ONLY if the full run above fails, and before 2026-08-13 it could not
|
||||
# Runs ONLY if the step above fails, and before 2026-08-13 it could not
|
||||
# exist: the hang was killed by the 40-minute ceiling, so the job came out
|
||||
# `cancelled` and the following steps did not start at all. With
|
||||
# `--timeout 420 --timeout-method thread` the process dies at 7 minutes and the
|
||||
@@ -286,163 +163,3 @@ jobs:
|
||||
path: ${{ runner.temp }}/e2e-watchdog.log
|
||||
if-no-files-found: warn
|
||||
retention-days: 14
|
||||
|
||||
# The junit of every pass of the run (scripts/run_e2e.py writes one per pass, e2e-junit-*.xml, in the directory of the watchdog file) and of the two
|
||||
# steps above that run alone (root, sandbox): what a red is read from, kept whether the run is green or red.
|
||||
- name: Upload the junit of the run
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: e2e-junit-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
path: |
|
||||
${{ runner.temp }}/e2e-junit-*.xml
|
||||
${{ runner.temp }}/root-e2e.xml
|
||||
${{ runner.temp }}/sandbox-e2e.xml
|
||||
if-no-files-found: warn
|
||||
retention-days: 14
|
||||
|
||||
# What the tests that measure save for a reader (the boxes of tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py:
|
||||
# the two PNG files, the screenshot and a result.json per case), under RUNNER_TEMP/invpw-evidence, whether the run is green or red. Nothing there
|
||||
# when no such test ran (an engine older than firefox-66 skips it), which is not a warning.
|
||||
- name: Upload what the tests saved
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: invpw-evidence-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
path: ${{ runner.temp }}/invpw-evidence
|
||||
if-no-files-found: ignore
|
||||
retention-days: 14
|
||||
|
||||
# ``Control+A`` selects all in a field, on the PUBLISHED engine and the core this package pins, on Windows, where the keyboard of a real
|
||||
# user is: the shortcut letter used to reach the browser as Control+Shift+A (invisible-core 63.66.0 fixes it). The e2e is red on the
|
||||
# keyboard that held Shift for the capital A (tests/test_control_a_selects_all_in_a_field_e2e.py: 5 ways to press it x an <input> and a
|
||||
# <textarea>, in-process and served to the stock Playwright client). Same gate as the Linux job: it is SKIPPED, with the reason in the
|
||||
# summary, until the core is on the index, and it runs unchanged after; `workflow_dispatch` with `only: windows-control-a` runs it alone.
|
||||
e2e-windows-control-a:
|
||||
name: e2e (windows, Control+A)
|
||||
needs: core-on-index
|
||||
if: needs.core-on-index.outputs.available == 'true'
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 20
|
||||
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
|
||||
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
|
||||
env:
|
||||
TEMP: 'D:\a\_temp'
|
||||
TMP: 'D:\a\_temp'
|
||||
# `run:` blocks are PowerShell on Windows unless said otherwise (e2e-hunt.yml had a ParserError on its first launch there).
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with: { fetch-depth: 1 }
|
||||
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
||||
with: { python-version: '3.11' }
|
||||
- name: Install wrapper + test deps (the stock client is in the dev extra)
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install ".[dev]"
|
||||
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
|
||||
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
|
||||
- name: The security state (a fixed directory of the repository)
|
||||
shell: bash
|
||||
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
|
||||
- name: Fetch the published firefox binary
|
||||
run: echo "FF=$(python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
|
||||
- name: The keyboard shortcut selects all (the browser opens on the runner's desktop, as in e2e-hunt.yml)
|
||||
env:
|
||||
PYTHONUNBUFFERED: "1"
|
||||
run: INVPW_BINARY_PATH="$FF" python -u -m pytest -m e2e -p no:cacheprovider -v tests/test_control_a_selects_all_in_a_field_e2e.py
|
||||
|
||||
# THE SAME e2e ON WINDOWS (Federico, 12/11: every test of the product runs on Linux AND Windows; where Windows behaves
|
||||
# differently the test adapts to the system). Before this, 562 of the 808 e2e had never run on Windows in any round. The census
|
||||
# of 12/11 (run 43307193708) took ~50 minutes in one job, so the files are split in four parts: the rows `wrapper.e2e.suite.windows.1`
|
||||
# to `.4` of ci/required-suites.json, balanced on the test times measured on Windows (a split that does not move when a file is added
|
||||
# elsewhere: a new file is added by hand to a row). Left out of the rows, by name, are the suites ci/required-suites.json declares
|
||||
# `linux_only` (the reason is on the row) and the tests that skip on Windows; tests/test_the_e2e_suite_is_accounted_for.py holds the
|
||||
# partition whole and tests/test_every_suite_runs_on_linux_and_windows.py holds both systems together.
|
||||
e2e-windows:
|
||||
name: e2e (windows, part ${{ matrix.part }})
|
||||
needs: core-on-index
|
||||
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
|
||||
runs-on: windows-2022
|
||||
timeout-minutes: 40
|
||||
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
|
||||
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
|
||||
env:
|
||||
TEMP: 'D:\a\_temp'
|
||||
TMP: 'D:\a\_temp'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
part: [1, 2, 3, 4]
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with: { fetch-depth: 1 }
|
||||
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
||||
with: { python-version: '3.11' }
|
||||
- name: Install wrapper + test deps (+ Playwright ONLY as a system tool)
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install ".[dev]"
|
||||
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
|
||||
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
|
||||
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
|
||||
- name: The security state (a fixed directory of the repository)
|
||||
shell: bash
|
||||
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
|
||||
- name: Fetch the published firefox binary
|
||||
run: echo "FF=$(cd "$RUNNER_TEMP" && python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
|
||||
# The GeoIP database made by the repository, as on the Linux run (no download, the same bytes every run).
|
||||
- name: The GeoIP database (made by the repository, same bytes every run)
|
||||
run: python scripts/ci_lab_geoip.py build
|
||||
# The files of the part are the rows `wrapper.e2e.suite.windows.N` of ci/required-suites.json (files, and node ids where a file has tests that skip on
|
||||
# Windows or run in another suite): the same list the gate of the candidate runs on the engine under test, so what is measured here and there is one
|
||||
# partition. tests/test_the_e2e_suite_is_accounted_for.py holds it whole, and the suites declared `linux_only` are left out of it by name.
|
||||
- name: The files of this part (the row of the suite, in ci/required-suites.json)
|
||||
run: python scripts/ci_verdict.py args --required ci/required-suites.json --suite "wrapper.e2e.suite.windows.${{ matrix.part }}" --os windows > "$RUNNER_TEMP/e2e_args.txt"
|
||||
- name: Run this part of the e2e
|
||||
env:
|
||||
PYTHONUNBUFFERED: "1"
|
||||
INVPW_TEST_WATCHDOG_FILE: ${{ runner.temp }}/e2e-watchdog.log
|
||||
run: |
|
||||
mapfile -t ARGS < <(tr -d '\r' < "$RUNNER_TEMP/e2e_args.txt")
|
||||
python -u scripts/run_e2e.py "$FF" "${ARGS[@]}"
|
||||
- name: The leg ran with the pinned GeoIP database
|
||||
if: always()
|
||||
run: |
|
||||
python scripts/ci_lab_geoip.py evidence --out "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" > /dev/null
|
||||
python scripts/ci_lab_geoip.py verify --evidence "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" --used "$GEOIP_USED_OUT"
|
||||
- name: Close every Firefox left
|
||||
if: always()
|
||||
shell: pwsh
|
||||
run: |
|
||||
Get-Process firefox -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
|
||||
"left: " + @(Get-Process firefox -ErrorAction SilentlyContinue).Count
|
||||
- name: Upload the hang evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: e2e-watchdog-windows-${{ matrix.part }}-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
path: ${{ runner.temp }}/e2e-watchdog.log
|
||||
if-no-files-found: warn
|
||||
retention-days: 14
|
||||
- name: Upload the junit of the run
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: e2e-junit-windows-${{ matrix.part }}-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
path: ${{ runner.temp }}/e2e-junit-*.xml
|
||||
if-no-files-found: warn
|
||||
retention-days: 14
|
||||
- name: Upload what the tests saved
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: invpw-evidence-windows-${{ matrix.part }}-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
path: ${{ runner.temp }}/invpw-evidence
|
||||
if-no-files-found: ignore
|
||||
retention-days: 14
|
||||
@@ -1,168 +0,0 @@
|
||||
# fakeweb.yml - on the offline fake web (tests/fakeweb/), does our browser get the same outcome as stock Firefox, step by step?
|
||||
#
|
||||
# ONE QUESTION. The fake web is two small local sites (127.0.0.1 and localhost) whose every response is finite and made by the page of the test: no real
|
||||
# site, no proxy, no request that leaves the runner. Profile P2 is one reused, routed page that loads the hard pages (beacons on pagehide, keepalive fetches,
|
||||
# frames of another site removed or navigated away, requests the page aborts), each followed by a quiet canary. Profile P4 is the journey of a person over a
|
||||
# multi-page site (17 steps: links, back and forward, a filter that changes the URL, a new tab, a download, a keyboard search, a sign-in), compared field by
|
||||
# field with stock Firefox. Both profiles run in the SAME job as Playwright's own Firefox (scripts/playwright_pin.txt): stock first, ours second, one browser
|
||||
# at a time, both driven by the stock Playwright client (scripts/run_fakeweb.py). The verdict is "the same outcome as stock", never a time: no step asserts a
|
||||
# duration, and a stock Firefox that is not what tests/fakeweb/pages.json declares makes the leg red as a BROKEN CONTROL, not as a finding about ours.
|
||||
#
|
||||
# WHICH ENGINE. The published one (`python -m invisible_playwright fetch`), as e2e.yml. The candidate of the engine repository runs the same entry on its own
|
||||
# binary (scripts/run_fakeweb.py --binary), and judges the four e2e tests of this fake web as the suite `wrapper.e2e.fakeweb` of ci/required-suites.json.
|
||||
#
|
||||
# WHEN. A pull request or a push to main that touches the fake web or this file (the journey and the hard pages are not a round for every change); again by hand
|
||||
# with `workflow_dispatch`. Four legs, a profile on a system each (Linux under Xvfb, Windows); no leg is repeated or forgiven, and the ONE verdict of the workflow is the
|
||||
# job `fakeweb verdict`: red unless all four legs are green (a skipped leg, for a core that is not on the index yet, is not green: nothing was measured).
|
||||
|
||||
name: fakeweb
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'tests/fakeweb/**'
|
||||
- 'tests/test_fakeweb_*.py'
|
||||
- 'scripts/run_fakeweb.py'
|
||||
- 'scripts/fakeweb_p4_report.py'
|
||||
- 'scripts/playwright_pin.txt'
|
||||
- '.github/workflows/fakeweb.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'tests/fakeweb/**'
|
||||
- 'tests/test_fakeweb_*.py'
|
||||
- 'scripts/run_fakeweb.py'
|
||||
- 'scripts/fakeweb_p4_report.py'
|
||||
- 'scripts/playwright_pin.txt'
|
||||
- '.github/workflows/fakeweb.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# A newer push to a pull request cancels the older run of THIS workflow on that pull request, and nothing else cancels (the same group as e2e.yml).
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
# The engine download goes through the release API with the token of the job (anonymous requests are the ones GitHub drops first).
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
jobs:
|
||||
core-on-index:
|
||||
uses: ./.github/workflows/core-on-index.yml
|
||||
|
||||
walk:
|
||||
name: fakeweb ${{ matrix.profile }} (${{ matrix.os }})
|
||||
needs: core-on-index
|
||||
if: needs.core-on-index.outputs.available == 'true'
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 30
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- { profile: p2, os: linux, runner: ubuntu-24.04 }
|
||||
- { profile: p2, os: windows, runner: windows-2022 }
|
||||
- { profile: p4, os: linux, runner: ubuntu-24.04 }
|
||||
- { profile: p4, os: windows, runner: windows-2022 }
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with: { fetch-depth: 1 }
|
||||
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
||||
with: { python-version: '3.11' }
|
||||
- name: Install wrapper + test deps, and the stock Playwright client
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install ".[dev]"
|
||||
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
|
||||
- name: System deps (xvfb + Firefox runtime libs)
|
||||
if: matrix.os == 'linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb
|
||||
sudo "$(which python)" -m playwright install-deps firefox
|
||||
- name: Playwright's own Firefox (the control)
|
||||
run: python -m playwright install firefox
|
||||
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
|
||||
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
|
||||
- name: The security state (a fixed directory of the repository)
|
||||
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
|
||||
- name: Fetch the published firefox binary
|
||||
run: echo "FF=$(cd "$RUNNER_TEMP" && python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
|
||||
# The GeoIP database made by the repository (no download, the same bytes every run).
|
||||
- name: The GeoIP database (made by the repository, same bytes every run)
|
||||
run: python scripts/ci_lab_geoip.py build
|
||||
- name: Profile P2, stock first and ours second, on a reused routed page
|
||||
if: matrix.profile == 'p2'
|
||||
run: |
|
||||
PREFIX=""; [ "$RUNNER_OS" = Linux ] && PREFIX="xvfb-run -a"
|
||||
$PREFIX python -u scripts/run_fakeweb.py --profile p2 --binary "$FF" --repetitions 10 --out fakeweb-p2.json
|
||||
- name: Profile P4, stock first and ours second, three walks of the journey
|
||||
if: matrix.profile == 'p4'
|
||||
run: |
|
||||
PREFIX=""; [ "$RUNNER_OS" = Linux ] && PREFIX="xvfb-run -a"
|
||||
set +e
|
||||
$PREFIX python -u scripts/run_fakeweb.py --profile p4 --binary "$FF" --repetitions 3 --out fakeweb-p4.json 2>&1 | tee fakeweb-p4.log
|
||||
python scripts/fakeweb_p4_report.py journey fakeweb-p4.json > fakeweb-p4-summary.md
|
||||
rc=$?
|
||||
cat fakeweb-p4-summary.md >> "$GITHUB_STEP_SUMMARY"
|
||||
cat fakeweb-p4-summary.md
|
||||
case "$rc" in
|
||||
0) echo "journey: green, ours equals stock on every step";;
|
||||
1) echo "journey: RED, ours differs from stock on a step of a walk whose control is sound";;
|
||||
2) echo "journey: RED, BROKEN CONTROL: stock Firefox is not as tests/fakeweb/pages.json declares (not a finding about ours)";;
|
||||
3) echo "journey: RED, ours differs from stock, and a control is broken";;
|
||||
4) echo "journey: RED, the runner wrote no report";;
|
||||
*) echo "journey: RED, the report did not finish ($rc)";;
|
||||
esac
|
||||
exit "$rc"
|
||||
- name: Profile P4, the types of the requests of stock and of ours (one traced walk each)
|
||||
if: matrix.profile == 'p4' && always()
|
||||
run: |
|
||||
PREFIX=""; [ "$RUNNER_OS" = Linux ] && PREFIX="xvfb-run -a"
|
||||
set +e
|
||||
$PREFIX python -u scripts/run_fakeweb.py --profile p4 --binary "$FF" --repetitions 1 --trace --out fakeweb-p4-trace.json 2>&1 | tee fakeweb-p4-trace.log
|
||||
python scripts/fakeweb_p4_report.py trace fakeweb-p4-trace.json > fakeweb-p4-trace-summary.md
|
||||
rc=$?
|
||||
cat fakeweb-p4-trace-summary.md >> "$GITHUB_STEP_SUMMARY"
|
||||
cat fakeweb-p4-trace-summary.md
|
||||
case "$rc" in
|
||||
0) echo "request types: green, ours does what stock does";;
|
||||
1) echo "request types: RED, ours differs from stock, see the summary";;
|
||||
2) echo "request types: RED, BROKEN CONTROL: stock reported no sendBeacon (not a finding about ours)";;
|
||||
*) echo "request types: RED ($rc), see the summary";;
|
||||
esac
|
||||
exit "$rc"
|
||||
- name: Upload the numbers
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: fakeweb-${{ matrix.profile }}-${{ matrix.os }}-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
path: |
|
||||
fakeweb-*.json
|
||||
fakeweb-*.log
|
||||
fakeweb-*.md
|
||||
if-no-files-found: warn
|
||||
retention-days: 14
|
||||
|
||||
# THE VERDICT of the workflow, the only one: green only when all four legs ran and passed.
|
||||
verdict:
|
||||
name: fakeweb verdict
|
||||
needs: [core-on-index, walk]
|
||||
if: always()
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: red unless every leg is green
|
||||
run: |
|
||||
echo "core-on-index: ${{ needs.core-on-index.result }}"
|
||||
echo "walk (p2 and p4, linux and windows): ${{ needs.walk.result }}"
|
||||
if [ "${{ needs.walk.result }}" != "success" ]; then
|
||||
echo "RED: the four legs did not all pass (a leg that did not run measured nothing)"
|
||||
exit 1
|
||||
fi
|
||||
echo "green: ours equals stock on the fake web, on both systems"
|
||||
@@ -1,12 +0,0 @@
|
||||
name: noreply-identity
|
||||
# Pushes the gate does not see: branches other than main and tags. Pull requests and
|
||||
# main go through the gate of tests.yml.
|
||||
on:
|
||||
push:
|
||||
branches-ignore: [main]
|
||||
tags: ["**"]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
noreply-identity:
|
||||
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@main
|
||||
@@ -51,12 +51,9 @@ on:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
# A publishing workflow is never cancelled half-way: the second run waits for
|
||||
# the first (a newer pending run replaces an older pending one, which is
|
||||
# harmless: the wiki is rebuilt in full from the repository each time).
|
||||
concurrency:
|
||||
group: publish-wiki
|
||||
cancel-in-progress: false
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
publish-wiki:
|
||||
|
||||
@@ -15,7 +15,7 @@ name: publish
|
||||
# convention.
|
||||
#
|
||||
# BEFORE THE FIRST RUN, on PyPI: Manage project -> Publishing -> add a GitHub
|
||||
# publisher with owner `oss-invisible`, repository `playwright`, workflow
|
||||
# publisher with owner `feder-cr`, repository `invisible_playwright`, workflow
|
||||
# `publish.yml`, environment `pypi`. Until that exists the upload fails with
|
||||
# `invalid-publisher`, which is the correct failure: nothing has said this
|
||||
# workflow may speak for this project. Revoke the long-lived token AFTER the
|
||||
@@ -164,7 +164,7 @@ jobs:
|
||||
echo "::notice::invisible-core $WANT is on the index"
|
||||
|
||||
- name: install the package and its dev extras
|
||||
# Its own step, BEFORE the arming below: `python -m invisible_core.hooks install` imports
|
||||
# Its own step, BEFORE the arming below: install_hooks.py imports
|
||||
# invisible_core, and the first version of this file installed inside the
|
||||
# suite step, so the arming ran against a runner that had nothing
|
||||
# installed and died on ModuleNotFoundError. ci.yml has had this order
|
||||
@@ -188,7 +188,7 @@ jobs:
|
||||
|
||||
- name: arm the pre-push gates
|
||||
# The suite asserts core.hooksPath is set and a fresh checkout has none.
|
||||
run: python -m invisible_core.hooks install
|
||||
run: python scripts/install_hooks.py
|
||||
|
||||
- name: the suite
|
||||
# A tag push does not trigger the ordinary test workflow, which runs on
|
||||
@@ -196,27 +196,8 @@ jobs:
|
||||
# code no job has run.
|
||||
run: python -m pytest -q
|
||||
|
||||
# The three checks on the REAL GeoIP database, and only here (the release): the legs of the pull requests and of the gates launch with the database that
|
||||
# scripts/ci_lab_geoip.py makes (a few networks, the same bytes every run, no download), so what only the real one can show is looked at once per release:
|
||||
# the product's own road (no variable, cold cache, the latest database downloaded), the lab database against it for the six exits, and every
|
||||
# time_zone of the database known to the runner's tz database. See the docstring of scripts/ci_real_geoip_check.py.
|
||||
real-geoip-database:
|
||||
needs: already-published
|
||||
if: needs.already-published.outputs.present != 'yes'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Install the wrapper (its core comes from the index)
|
||||
run: python -m pip install -e . maxminddb
|
||||
- name: The real GeoIP database - the product's road, the lab database against it, every zone known
|
||||
run: python scripts/ci_real_geoip_check.py
|
||||
|
||||
upload:
|
||||
needs: [already-published, gate, real-geoip-database]
|
||||
needs: [already-published, gate]
|
||||
if: needs.already-published.outputs.present != 'yes'
|
||||
runs-on: ubuntu-latest
|
||||
environment: pypi # the trust relationship lives HERE, behind the gate
|
||||
|
||||
@@ -1,331 +0,0 @@
|
||||
# real-sites.yml - on real pages, does the published wrapper get the same outcome as stock Firefox driven by stock Playwright, on the same machine, in the same window of time?
|
||||
#
|
||||
# ONE QUESTION. It does not measure the quality of an address or a percentage of blocks: a GitHub runner has a datacenter address and no proxy is used. Where stock Firefox
|
||||
# is blocked as well, the cell carries no information and is written as such. It is red only where stock gets through and the wrapper does not.
|
||||
#
|
||||
# WHAT RUNS (per system, Linux under Xvfb with a window, and Windows; in a job everything in a row, one browser at a time):
|
||||
# 1. two clean venvs: `invisible-playwright==<the version the index serves now>`, and Playwright at scripts/playwright_pin.txt with its Firefox;
|
||||
# 2. the pass of stock over the whole list (scripts/run_real_sites.py), then the pass of ours;
|
||||
# 3. only for the cells that differ in the first pass: two more passes of those sites, stock, ours, stock, ours;
|
||||
# 4. the judge (scripts/judge_real_sites.py): the table, three numbers, the exit code. Its rule is in its own docstring and tests/test_real_sites_judge.py.
|
||||
# The cells (JSON) and the summary are the artifacts of the run. The same conditions for both browsers: a window, one viewport, no proxy, the language of the runner.
|
||||
#
|
||||
# WHEN (never by hand, except to run a whole round again):
|
||||
# * `workflow_run` of publish.yml, completed with success: the round after a publication, on the packages that just went out;
|
||||
# * `push` to main and `pull_request` that touch the five files below: the round proves itself, on the packages published at that moment;
|
||||
# * `workflow_dispatch`: to run a whole round again.
|
||||
#
|
||||
# VERSION. After a publication the version is the tag of the publish run (`head_branch` without its `v`); a run that is not of a `v*` tag makes the plan red. The other
|
||||
# events read the version the index serves now.
|
||||
#
|
||||
# WHY PER PUSH. The admission judges a list when the list changes; the round measures at every push. A push that does not touch tests/realsites/sites.json does not run the
|
||||
# admission again, or every push of the pull request would resample the real sites and could go red for a reason that is nobody's change. The plan decides it per push:
|
||||
# a push is compared with the head it replaced; if that compare cannot be made (a forced push, no `before`, an API error) the admission runs, in doubt measure.
|
||||
#
|
||||
# ADMISSION. A push to a pull request that changes tests/realsites/sites.json runs the admission AND the round (14 jobs: the plan, 2 of the round, 10 passes of the admission and
|
||||
# its report). The admission is stock alone, five passes per site and per system (a job per pass, so that a list of thirty sites stays inside the limit of a job). It is
|
||||
# red only for a defect of the list, never for the luck of one site: an invalid list (a `min_informative` in the file is one), a pass that is missing, a site never good in
|
||||
# any pass of a system that is not of the class protetta (a wrong marker, or a fixed block), more than 4 protetta, more than 20 sites. A site good in some passes stays,
|
||||
# and the report gives its count per system ("4 of 5 on linux"): every real site has a rare failure on the side of stock, five passes cannot tell it from instability,
|
||||
# and in the round it only removes information from that cell. The minimum of information is not sampled and is not in the file: the judge asks for half the sites,
|
||||
# rounded up. Where stock does not find the marker, its cell in the artifact also holds the status, the title and the first 40 element ids of the page, to fix the marker
|
||||
# in the same pull request; the judge ignores them.
|
||||
#
|
||||
# TOKEN. The token of the workflow is in three steps and nowhere else: the plan and the report of the admission (they call `gh`) and the install and fetch of the
|
||||
# round (the engine is downloaded from GitHub; that step launches no browser). A step that runs the passes never sees it.
|
||||
#
|
||||
# No click and no handling of a consent wall anywhere: both browsers see what the page shows.
|
||||
|
||||
name: real-sites
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [publish]
|
||||
types: [completed]
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- tests/realsites/sites.json
|
||||
- scripts/run_real_sites.py
|
||||
- scripts/judge_real_sites.py
|
||||
- tests/test_real_sites_judge.py
|
||||
- .github/workflows/real-sites.yml
|
||||
pull_request:
|
||||
paths:
|
||||
- tests/realsites/sites.json
|
||||
- scripts/run_real_sites.py
|
||||
- scripts/judge_real_sites.py
|
||||
- tests/test_real_sites_judge.py
|
||||
- .github/workflows/real-sites.yml
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
|
||||
env:
|
||||
PYTHONUTF8: "1"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
# Whether this run also admits a list, and the version of the package it tests, read ONCE so that both systems test the same one.
|
||||
plan:
|
||||
name: plan
|
||||
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
outputs:
|
||||
admission: ${{ steps.plan.outputs.admission }}
|
||||
version: ${{ steps.plan.outputs.version }}
|
||||
steps:
|
||||
- id: plan
|
||||
shell: bash
|
||||
env:
|
||||
EVENT: ${{ github.event_name }}
|
||||
PR: ${{ github.event.pull_request.number }}
|
||||
REPO: ${{ github.repository }}
|
||||
ACTION: ${{ github.event.action }}
|
||||
BEFORE: ${{ github.event.before }}
|
||||
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
admission=$(python3 - <<'PY'
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
LIST = "tests/realsites/sites.json"
|
||||
ZEROS = "0" * 40
|
||||
|
||||
|
||||
def gh_files(endpoint, jq):
|
||||
done = subprocess.run(["gh", "api", endpoint, "--paginate", "--jq", jq], capture_output=True, text=True, check=True)
|
||||
return done.stdout.split()
|
||||
|
||||
|
||||
def decide(event, action, before, head, repo, pr, files_of):
|
||||
"""Does this run admit the list? Only when this push changes it. A push (synchronize) is compared with the head it replaced; a pull request that is
|
||||
opened or reopened is judged on all its files. A compare that cannot be made (a forced push, no `before`, an API error) runs the admission: in doubt, measure."""
|
||||
if event != "pull_request":
|
||||
return False
|
||||
if action == "synchronize":
|
||||
if not before or before == ZEROS or not head:
|
||||
return True
|
||||
endpoint, jq = "repos/%s/compare/%s...%s" % (repo, before, head), ".files[].filename"
|
||||
else:
|
||||
endpoint, jq = "repos/%s/pulls/%s/files" % (repo, pr), ".[].filename"
|
||||
try:
|
||||
return LIST in files_of(endpoint, jq)
|
||||
except Exception:
|
||||
return True
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
e = os.environ
|
||||
print("true" if decide(e["EVENT"], e.get("ACTION", ""), e.get("BEFORE", ""), e.get("HEAD_SHA", ""), e["REPO"], e.get("PR", ""), gh_files) else "false")
|
||||
PY
|
||||
)
|
||||
if [ "$EVENT" = workflow_run ]; then
|
||||
case "$HEAD_BRANCH" in
|
||||
v*)
|
||||
version="${HEAD_BRANCH#v}"
|
||||
;;
|
||||
*)
|
||||
echo "::error::the publish run is of '$HEAD_BRANCH', not of a v* tag: the version of the package is not known"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
else
|
||||
version=$(python3 -c 'import json, urllib.request; print(json.load(urllib.request.urlopen("https://pypi.org/pypi/invisible-playwright/json", timeout=60))["info"]["version"])')
|
||||
fi
|
||||
echo "admission=$admission" >> "$GITHUB_OUTPUT"
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
echo "admission: $admission, invisible-playwright $version"
|
||||
|
||||
round:
|
||||
name: round (${{ matrix.os }})
|
||||
needs: plan
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 40
|
||||
strategy:
|
||||
fail-fast: false # one system failing must not hide the other's table
|
||||
matrix:
|
||||
os: [ubuntu-24.04, windows-latest]
|
||||
env:
|
||||
VERSION: ${{ needs.plan.outputs.version }}
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
|
||||
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
||||
with: { python-version: '3.12' }
|
||||
|
||||
- name: Linux runtime libraries for the browsers
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
|
||||
|
||||
# Two venvs that share nothing: what a user gets from the index, and what a user of stock Playwright gets. The wrapper is installed by its published version
|
||||
# (the index may lag a few minutes behind a publication: only the install is asked again), then its engine is fetched the way a user fetches it.
|
||||
- name: The two clean venvs
|
||||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }} # the fetch of the engine is a download from GitHub; nothing here opens a page
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ "$RUNNER_OS" = Windows ]; then BIN=Scripts; EXE=python.exe; else BIN=bin; EXE=python; fi
|
||||
python -m venv venvs/ours
|
||||
python -m venv venvs/stock
|
||||
echo "OURS_PY=venvs/ours/$BIN/$EXE" >> "$GITHUB_ENV"
|
||||
echo "STOCK_PY=venvs/stock/$BIN/$EXE" >> "$GITHUB_ENV"
|
||||
OURS="venvs/ours/$BIN/$EXE"; STOCK="venvs/stock/$BIN/$EXE"
|
||||
PIN=$(tr -d '[:space:]' < scripts/playwright_pin.txt)
|
||||
"$STOCK" -m pip install --quiet --disable-pip-version-check "playwright==$PIN"
|
||||
if [ "$RUNNER_OS" = Linux ]; then "$STOCK" -m playwright install --with-deps firefox; else "$STOCK" -m playwright install firefox; fi
|
||||
for attempt in 1 2 3 4 5 6; do
|
||||
if "$OURS" -m pip install --quiet --disable-pip-version-check "invisible-playwright==$VERSION"; then break; fi
|
||||
if [ "$attempt" = 6 ]; then echo "::error::the index does not give invisible-playwright==$VERSION"; exit 1; fi
|
||||
sleep 20
|
||||
done
|
||||
"$OURS" -m invisible_playwright fetch
|
||||
|
||||
# The pass of stock, the pass of ours, the cells that differ, and for those only two more passes of each in the order stock, ours, stock, ours.
|
||||
- name: The passes
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -p cells
|
||||
visit() { # browser, file of the cells, then what run_real_sites.py takes
|
||||
local browser="$1" out="$2" py="$STOCK_PY"
|
||||
shift 2
|
||||
if [ "$browser" = ours ]; then py="$OURS_PY"; fi
|
||||
if [ "$RUNNER_OS" = Linux ]; then
|
||||
xvfb-run -a -s "-screen 0 1920x1080x24" "$py" scripts/run_real_sites.py --browser "$browser" --out "$out" "$@"
|
||||
else
|
||||
"$py" scripts/run_real_sites.py --browser "$browser" --out "$out" "$@"
|
||||
fi
|
||||
}
|
||||
visit stock cells/stock-1.json
|
||||
visit ours cells/ours-1.json
|
||||
IDS=$(python scripts/judge_real_sites.py differing --sites tests/realsites/sites.json --stock cells/stock-1.json --ours cells/ours-1.json)
|
||||
echo "cells that differ: ${IDS:-none}"
|
||||
if [ -n "$IDS" ]; then
|
||||
for n in 2 3; do
|
||||
visit stock "cells/stock-$n.json" --only "$IDS"
|
||||
visit ours "cells/ours-$n.json" --only "$IDS"
|
||||
done
|
||||
fi
|
||||
|
||||
- name: The judge
|
||||
shell: bash
|
||||
run: |
|
||||
set +e
|
||||
python scripts/judge_real_sites.py judge --sites tests/realsites/sites.json \
|
||||
--stock cells/stock-*.json --ours cells/ours-*.json --summary cells/summary.md --result cells/result.json
|
||||
code=$?
|
||||
{
|
||||
echo "### $RUNNER_OS: invisible-playwright $VERSION against stock Playwright $(tr -d '[:space:]' < scripts/playwright_pin.txt)"
|
||||
echo
|
||||
cat cells/summary.md
|
||||
} >> "$GITHUB_STEP_SUMMARY"
|
||||
exit $code
|
||||
|
||||
- name: The cells and the summary
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: real-sites-${{ runner.os }}
|
||||
path: cells/
|
||||
if-no-files-found: ignore
|
||||
|
||||
# One pass of stock over the list, on one system: five of them per system make the admission.
|
||||
admit:
|
||||
name: admit (${{ matrix.os }}, pass ${{ matrix.repeat }})
|
||||
needs: plan
|
||||
if: needs.plan.outputs.admission == 'true'
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 40
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-24.04, windows-latest]
|
||||
repeat: [1, 2, 3, 4, 5]
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
|
||||
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
||||
with: { python-version: '3.12' }
|
||||
|
||||
- name: Linux runtime libraries for the browser
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
|
||||
|
||||
- name: Stock Playwright and its Firefox, then one pass
|
||||
shell: bash
|
||||
env:
|
||||
REPEAT: ${{ matrix.repeat }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ "$RUNNER_OS" = Windows ]; then BIN=Scripts; EXE=python.exe; else BIN=bin; EXE=python; fi
|
||||
python -m venv venvs/stock
|
||||
STOCK="venvs/stock/$BIN/$EXE"
|
||||
PIN=$(tr -d '[:space:]' < scripts/playwright_pin.txt)
|
||||
"$STOCK" -m pip install --quiet --disable-pip-version-check "playwright==$PIN"
|
||||
if [ "$RUNNER_OS" = Linux ]; then "$STOCK" -m playwright install --with-deps firefox; else "$STOCK" -m playwright install firefox; fi
|
||||
mkdir -p cells
|
||||
if [ "$RUNNER_OS" = Linux ]; then
|
||||
xvfb-run -a -s "-screen 0 1920x1080x24" "$STOCK" scripts/run_real_sites.py --browser stock --diagnose --out "cells/stock-$REPEAT.json"
|
||||
else
|
||||
"$STOCK" scripts/run_real_sites.py --browser stock --diagnose --out "cells/stock-$REPEAT.json"
|
||||
fi
|
||||
|
||||
- name: The cells
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: admit-${{ runner.os }}-${{ matrix.repeat }}
|
||||
path: cells/
|
||||
if-no-files-found: ignore
|
||||
|
||||
admission:
|
||||
name: admission report
|
||||
needs: admit
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
|
||||
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
||||
with: { python-version: '3.12' }
|
||||
|
||||
- name: Which sites are the same five of five, and the minimum to write
|
||||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
gh run download "$GITHUB_RUN_ID" --repo "$GITHUB_REPOSITORY" --pattern 'admit-*' --dir admit
|
||||
set +e
|
||||
python scripts/judge_real_sites.py admit --sites tests/realsites/sites.json \
|
||||
--os linux admit/admit-Linux-*/stock-*.json --os windows admit/admit-Windows-*/stock-*.json \
|
||||
--summary admission.md
|
||||
code=$?
|
||||
cat admission.md >> "$GITHUB_STEP_SUMMARY"
|
||||
exit $code
|
||||
|
||||
- name: The report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: admission
|
||||
path: admission.md
|
||||
if-no-files-found: ignore
|
||||
+12
-54
@@ -15,12 +15,9 @@ permissions:
|
||||
# cancelled one by one - which left the run marked failed even though nothing
|
||||
# had actually failed. Keyed by workflow + ref so tests and e2e never cancel
|
||||
# each other; only an older run of THIS workflow on the same branch is replaced.
|
||||
# A newer push to a pull request cancels the run it supersedes. Never on main:
|
||||
# outside a pull request the group is unique to the run (`github.run_id`), so
|
||||
# every commit of main keeps its own finished run (see e2e.yml for why).
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
# Engine and GeoIP downloads go through the release API with this token.
|
||||
# Anonymous requests share a 60-an-hour limit per runner address and are the
|
||||
@@ -160,12 +157,6 @@ jobs:
|
||||
core-on-index:
|
||||
uses: ./.github/workflows/core-on-index.yml
|
||||
|
||||
# Every commit and tag this change makes public must carry a GitHub noreply
|
||||
# email (author, committer, tagger). The judge lives in oss-invisible/core and
|
||||
# is read from its main, never from this branch.
|
||||
noreply-identity:
|
||||
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@main
|
||||
|
||||
unit:
|
||||
name: pytest (${{ matrix.os }}, py${{ matrix.python }})
|
||||
needs: core-on-index
|
||||
@@ -179,25 +170,19 @@ jobs:
|
||||
# untested until 2026-08-01, and the user who opened issue #51 was on
|
||||
# 3.14. test_marker_vocabulary.py compares this list to the floor.
|
||||
python: ["3.11", "3.12", "3.13", "3.14"]
|
||||
# The FULL Python range on ubuntu; Windows on the two ends of the range,
|
||||
# 3.11 and 3.14 (Federico, 12/11: every test on Linux AND Windows; the
|
||||
# ends are where a version-specific difference shows first). The runners
|
||||
# are free for this public repository; the account runs 20 jobs at once.
|
||||
# The python LIST above stays complete so test_marker_vocabulary still
|
||||
# sees every version.
|
||||
# Windows runners are the scarce, 2x-cost, slow-to-schedule ones, and a
|
||||
# burst of pushes queues them for a long time. Run the FULL Python range
|
||||
# on ubuntu (cheap, fast) and cover Windows on 3.12 only - this is a
|
||||
# pure-Python package, the OS-specific surface is tiny. The python LIST
|
||||
# above stays complete so test_marker_vocabulary still sees every version.
|
||||
exclude:
|
||||
- { os: windows-latest, python: "3.12" }
|
||||
- { os: windows-latest, python: "3.11" }
|
||||
- { os: windows-latest, python: "3.13" }
|
||||
- { os: windows-latest, python: "3.14" }
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# main, for the tests that compare a list of this change with the list of main (tests/test_the_e2e_tests_do_not_wait_on_clocks.py: the debt of
|
||||
# the e2e tests only shrinks). The checkout is one commit deep; without this the comparison has nothing to read and the test says so.
|
||||
- name: main, to compare the lists that may only shrink
|
||||
shell: bash
|
||||
run: git fetch --no-tags --depth=1 origin main:refs/remotes/origin/main
|
||||
|
||||
- name: Set up Python ${{ matrix.python }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
@@ -215,10 +200,10 @@ jobs:
|
||||
# three repos that existed then made the assertion (two now, since
|
||||
# invisible_firefox was deleted on 2026-08-18), but only the core's CI
|
||||
# had this step, so both consumers went red on it. Do here what a
|
||||
# developer does once. It also means `python -m invisible_core.hooks install` is exercised on
|
||||
# developer does once. It also means install_hooks.py is exercised on
|
||||
# every runner instead of only on the one machine that ever ran it by
|
||||
# hand.
|
||||
run: python -m invisible_core.hooks install
|
||||
run: python scripts/install_hooks.py
|
||||
|
||||
- name: undefined names and duplicate definitions
|
||||
# F821 (undefined name) and F811 (redefinition) only. Not a style pass:
|
||||
@@ -234,33 +219,12 @@ jobs:
|
||||
run: |
|
||||
python -m ruff check --select F821,F811,F601 --no-cache --output-format concise .
|
||||
|
||||
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
|
||||
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one.
|
||||
- name: The security state (a fixed directory of the repository)
|
||||
shell: bash
|
||||
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
|
||||
|
||||
# The GeoIP database is made by the repository (scripts/ci_lab_geoip.py: the same bytes on every run, the sha256 in ci/geoip.json), never a
|
||||
# site and never a licensed file: without STEALTHFOX_GEOIP_MMDB the core asks GitHub which database is the latest on every call
|
||||
# (run 43211837926). The variable reaches every later step of the job.
|
||||
- name: The GeoIP database (made by the repository, same bytes every run)
|
||||
shell: bash
|
||||
run: python scripts/ci_lab_geoip.py build
|
||||
|
||||
- name: Run pytest
|
||||
shell: bash
|
||||
run: |
|
||||
set -o pipefail # or tee would swallow pytest's exit code
|
||||
pytest tests/ -v --tb=short -rs | tee tests-report.txt
|
||||
|
||||
# The leg ran with the pinned database, and the core never went past it to GitHub (tests/geoip_used.py wrote what it did).
|
||||
- name: The leg ran with the pinned GeoIP database
|
||||
if: always()
|
||||
shell: bash
|
||||
run: |
|
||||
python scripts/ci_lab_geoip.py evidence --out "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" > /dev/null
|
||||
python scripts/ci_lab_geoip.py verify --evidence "$(dirname "$GEOIP_USED_OUT")/geoip-evidence.json" --used "$GEOIP_USED_OUT"
|
||||
|
||||
# This repo has the largest suite of the three and was the only one with
|
||||
# no floor. pytest's exit code cannot distinguish "everything passed"
|
||||
# from "the marker expression deselected everything", and `addopts`
|
||||
@@ -361,7 +325,7 @@ jobs:
|
||||
# exits 1 without saying which of five inputs went red is a gate somebody has
|
||||
# to open five tabs to read.
|
||||
gate:
|
||||
needs: [core-on-index, unit, docs-api, english, claims, version, way-in, install-job, noreply-identity]
|
||||
needs: [core-on-index, unit, docs-api, english, claims, version, way-in, install-job]
|
||||
if: always()
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -375,7 +339,6 @@ jobs:
|
||||
echo "way-in: ${{ needs.way-in.result }}"
|
||||
echo "version: ${{ needs.version.result }}"
|
||||
echo "install-job: ${{ needs.install-job.result }}"
|
||||
echo "noreply-identity: ${{ needs.noreply-identity.result }}"
|
||||
case "${{ needs.unit.result }}" in
|
||||
failure|cancelled) echo "the suite did not pass"; exit 1 ;;
|
||||
esac
|
||||
@@ -400,11 +363,6 @@ jobs:
|
||||
case "${{ needs.install-job.result }}" in
|
||||
failure|cancelled) echo "the user-install job would not run on a release, or leaks"; exit 1 ;;
|
||||
esac
|
||||
# Unlike the checks above this one must be `success`: it runs on every
|
||||
# event this workflow has, so a skip would mean the check never ran.
|
||||
if [ "${{ needs.noreply-identity.result }}" != "success" ]; then
|
||||
echo "a commit or tag of this change has an email that is not a GitHub noreply address"; exit 1
|
||||
fi
|
||||
echo "ok"
|
||||
|
||||
# Measured 2026-09-04: 0.10.0 was on the index while main sat on 0.10.0 with
|
||||
|
||||
@@ -72,11 +72,9 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Only a new push to a ledger pull request cancels the run it supersedes. The
|
||||
# weekly schedule and a manual run (both on main) never cancel each other.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
group: user-install-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
install:
|
||||
@@ -94,34 +92,12 @@ jobs:
|
||||
- uses: actions/setup-python@v5
|
||||
with: { python-version: '3.11' }
|
||||
|
||||
# Only what the TEST needs (and `uv`, for the wait below to ask uv, which the release test installs the package with). The package under test is installed by the
|
||||
# Only what the TEST needs. The package under test is installed by the
|
||||
# test itself, into a venv it creates, from the index - installing it
|
||||
# here as well would put a second copy on the path and the assertions
|
||||
# would be reading the wrong one.
|
||||
- name: Test harness only
|
||||
run: python -m pip install --upgrade pip pytest packaging uv
|
||||
|
||||
# ⛔ THE VERSION OF A LEDGER PULL REQUEST IS THE ONE IT ADDS TO PUBLISHED.json, NOT THE ONE THE TREE DECLARES.
|
||||
# The ledger PR of a release is merged after this job is green, and the next release's tree can already be on main: ledger #534 recorded
|
||||
# 0.56.0 while the tree said 0.57.0, which is not published until that ledger is merged (its tag asks for it), so a wait on the version of
|
||||
# pyproject.toml could never end and the PR could never merge. The versions are compared as data: the ledger at the base of the pull
|
||||
# request against the ledger at its head. Nothing added is an error (there is no release to check), and so is more than one (the job
|
||||
# installs and launches one version). INVPW_E2E_VERSION then carries it to the wait, the install and the launch below, in every step.
|
||||
# A scheduled or dispatched run has no pull request and no such version: it installs the latest, as before.
|
||||
- name: the version this ledger pull request records
|
||||
if: github.event_name == 'pull_request'
|
||||
shell: bash
|
||||
env:
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git fetch --no-tags --depth=1 origin "$BASE_SHA" "$HEAD_SHA"
|
||||
git show "$BASE_SHA:PUBLISHED.json" > "$RUNNER_TEMP/ledger-base.json"
|
||||
git show "$HEAD_SHA:PUBLISHED.json" > "$RUNNER_TEMP/ledger-head.json"
|
||||
version="$(python scripts/ci_ledger_added_versions.py --base "$RUNNER_TEMP/ledger-base.json" --head "$RUNNER_TEMP/ledger-head.json" --tree-pyproject pyproject.toml)"
|
||||
echo "INVPW_E2E_VERSION=$version" >> "$GITHUB_ENV"
|
||||
echo "::notice::this ledger pull request records invisible-playwright $version"
|
||||
run: python -m pip install --upgrade pip pytest packaging
|
||||
|
||||
# PyPI does not serve a new version to pip the instant twine finishes, and
|
||||
# this workflow runs on the ledger pull request, which the publish run
|
||||
@@ -131,70 +107,43 @@ jobs:
|
||||
# 0.2.5. The job reported a forgotten publish that had happened two minutes
|
||||
# earlier, which is the most expensive kind of red: it looks exactly like the
|
||||
# real defect this workflow exists to catch.
|
||||
# MEASURED AGAIN 2026-11-12 (0.50.1, ledger #476): the per-version JSON endpoint
|
||||
# of PyPI answered at once, `pip index versions` listed 0.50.1, and the
|
||||
# `pip install --upgrade` of the Linux job still resolved 0.49.1 (the Windows job,
|
||||
# started later, was green). Those are three different pages of the index, and
|
||||
# the job only needs the one pip installs from.
|
||||
#
|
||||
# So the question asked here is the INSTALLERS' own, both: the upgrade test installs with pip, the release test with uv (the README's
|
||||
# way in), so each round asks `pip download invisible-playwright==X` AND `uv pip compile` of it (no cache, nothing installed), and the
|
||||
# job goes on only after three rounds in a row in which both said yes, 15 s apart (one yes proves that one request saw the version, not
|
||||
# that the next is served by the same node of the index); a no restarts the count and a call that does not answer in two minutes is
|
||||
# a no. Bounded at ten minutes: a forgotten publish still fails, and it fails HERE, saying that the index does not have the
|
||||
# version, instead of three steps later as a test that compares two versions.
|
||||
# Bounded at five minutes, so a genuinely forgotten publish still fails. The
|
||||
# PER-VERSION endpoint is the authority; the aggregate `info.version` lags it
|
||||
# by minutes and has its own trap, so this asks for the exact URL.
|
||||
#
|
||||
# Only on the ledger pull request. A scheduled or dispatched run is not
|
||||
# racing anything, and a wait there would hide a real absence behind ten
|
||||
# racing anything, and a wait there would hide a real absence behind five
|
||||
# minutes of polling.
|
||||
- name: wait for the index to serve this version
|
||||
if: github.event_name == 'pull_request'
|
||||
shell: bash
|
||||
run: |
|
||||
python - <<'PY'
|
||||
import os, subprocess, sys, tempfile, time, tomllib
|
||||
import json, os, sys, time, tomllib, urllib.error, urllib.request
|
||||
dist = tomllib.load(open("pyproject.toml", "rb"))["project"]["name"]
|
||||
# The version the ledger pull request records (the step above), never the tree's: main may already declare the next one.
|
||||
version = os.environ["INVPW_E2E_VERSION"]
|
||||
deadline = time.monotonic() + 600
|
||||
deadline = min(deadline, time.monotonic() + float(os.environ.get("INDEX_WAIT_SECONDS", "600")))
|
||||
poll = float(os.environ.get("INDEX_WAIT_POLL", "15"))
|
||||
need = int(os.environ.get("INDEX_WAIT_CONFIRMATIONS", "3"))
|
||||
call_limit = float(os.environ.get("INDEX_WAIT_CALL_SECONDS", "120"))
|
||||
asks = [
|
||||
("pip", [sys.executable, "-m", "pip", "download", "--no-deps", "--no-cache-dir", "--disable-pip-version-check", "--quiet",
|
||||
"-d", tempfile.mkdtemp(), f"{dist}=={version}"], None),
|
||||
("uv", [sys.executable, "-m", "uv", "pip", "compile", "-", "--no-deps", "--no-cache", "--quiet"], f"{dist}=={version}\n"),
|
||||
]
|
||||
|
||||
|
||||
def round_says():
|
||||
"""An empty string when every installer resolves the version, else what the first that did not said."""
|
||||
for tool, command, stdin in asks:
|
||||
try:
|
||||
r = subprocess.run(command, input=stdin, capture_output=True, text=True, timeout=call_limit)
|
||||
except subprocess.TimeoutExpired:
|
||||
return f"{tool} did not answer within {call_limit:.0f} s"
|
||||
if r.returncode != 0:
|
||||
return f"{tool} said: " + ((r.stderr.strip().splitlines() or [""])[-1])
|
||||
return ""
|
||||
|
||||
|
||||
n = streak = 0
|
||||
said = ""
|
||||
version = tomllib.load(open("pyproject.toml", "rb"))["project"]["version"]
|
||||
url = f"https://pypi.org/pypi/{dist}/{version}/json"
|
||||
deadline = time.monotonic() + 300
|
||||
n = 0
|
||||
while True:
|
||||
n += 1
|
||||
said = round_says()
|
||||
streak = 0 if said else streak + 1
|
||||
if streak >= need:
|
||||
print(f"::notice::pip and uv resolve {dist} {version} from the index, {need} rounds in a row (attempt {n})")
|
||||
sys.exit(0)
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout=30) as r:
|
||||
if json.load(r).get("urls"):
|
||||
print(f"::notice::{dist} {version} is on the index (attempt {n})")
|
||||
sys.exit(0)
|
||||
except urllib.error.HTTPError as e:
|
||||
if e.code != 404:
|
||||
print(f"::warning::index returned HTTP {e.code}; not waiting further")
|
||||
sys.exit(0)
|
||||
except OSError as e:
|
||||
print(f"index unreachable ({e}); retrying")
|
||||
if time.monotonic() >= deadline:
|
||||
minutes = int(float(os.environ.get("INDEX_WAIT_SECONDS", "600")) // 60) or 1
|
||||
print(f"::error::the index does not have {dist} {version} yet, after {minutes} minutes "
|
||||
f"and {n} attempts, {streak} of {need} rounds in a row ({said})")
|
||||
sys.exit(1)
|
||||
time.sleep(poll)
|
||||
print(f"::warning::{dist} {version} still not on the index after 300s; "
|
||||
f"running the checks anyway so a real absence is reported")
|
||||
sys.exit(0)
|
||||
time.sleep(10)
|
||||
PY
|
||||
|
||||
- name: Linux runtime libraries for the browser
|
||||
@@ -211,8 +160,6 @@ jobs:
|
||||
# rate-limited walk SKIPS, and a skip is not a check.
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
INVPW_E2E_SOURCE: ${{ github.event.inputs.source || 'index' }}
|
||||
# INVPW_E2E_VERSION (set above on a ledger pull request, absent otherwise) is read by both tests: the release test adds exactly that
|
||||
# version, the upgrade test goes from the one before it to it.
|
||||
shell: bash
|
||||
run: |
|
||||
set -o pipefail # or the tee below would swallow pytest's exit code
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
name: webrtc-e2e
|
||||
|
||||
# Live WebRTC realness check against the shipped patched binary.
|
||||
#
|
||||
# Manual (workflow_dispatch) on purpose: it needs a firefox-N binary that
|
||||
# carries the WebRTC fixes (synthetic srflx in genuine nICEr form + the
|
||||
# default-route fallback behind a proxy). Run it after publishing such a
|
||||
# binary - it is the release gate for "WebRTC looks real behind a proxy".
|
||||
# On this Linux runner an engine older than firefox-35 never gets the synthetic
|
||||
# srflx behind a SOCKS proxy (the wildcard default-route probe, fixed in
|
||||
# firefox-35): test_not_blocked_behind_tcp_only_socks skips on it, naming that
|
||||
# defect, and the floor below turns the skip red. From firefox-35 on, a
|
||||
# missing srflx fails the test itself.
|
||||
#
|
||||
# No external proxy provider, no credentials: the "behind a proxy" condition is faked by an
|
||||
# in-process TCP-only SOCKS5 server (refuses UDP ASSOCIATE) and the egress IP
|
||||
# is injected as an RFC 5737 TEST-NET address. Fully self-contained.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Engine and GeoIP downloads go through the release API with this token.
|
||||
# Anonymous requests share a 60-an-hour limit per runner address and are the
|
||||
# ones GitHub drops first when it is degraded (2026-11-08: timeouts for
|
||||
# unauthenticated users failed the gates three times). user-install.yml stays
|
||||
# anonymous on purpose: it is the user's path.
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
jobs:
|
||||
# `pip install -e ".[dev]"` below resolves `invisible-core==N.M.0` from the
|
||||
# package index, and the core is published BEFORE this package. This gate
|
||||
# answers whether it is there yet; during that window the realness job is
|
||||
# SKIPPED with the reason in the run summary rather than faked green, and
|
||||
# once the core is up it runs unchanged. See
|
||||
# .github/workflows/core-on-index.yml.
|
||||
core-on-index:
|
||||
uses: ./.github/workflows/core-on-index.yml
|
||||
|
||||
webrtc-e2e:
|
||||
name: webrtc realness (ubuntu, py3.12)
|
||||
needs: core-on-index
|
||||
if: needs.core-on-index.outputs.available == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
cache: pip
|
||||
|
||||
- name: Install package + dev extras
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e ".[dev]"
|
||||
|
||||
- name: Fetch the patched Firefox binary and expose its path
|
||||
shell: bash
|
||||
run: |
|
||||
# NOT `echo "VAR=$(cmd)" >> $GITHUB_ENV`. echo exits 0 whatever the
|
||||
# substitution did, so `set -e` never sees a failure and an EMPTY
|
||||
# value lands in the environment. Both tests below then hit
|
||||
# `pytest.skip("no patched binary")`, pytest exits 0, and the job is
|
||||
# green having verified nothing - which is exactly what run #1 did.
|
||||
set -euo pipefail
|
||||
FETCH_OUTPUT="$(python -m invisible_playwright fetch)"
|
||||
printf '%s\n' "$FETCH_OUTPUT"
|
||||
BIN="$(printf '%s\n' "$FETCH_OUTPUT" | tail -n 1)"
|
||||
if [ -z "$BIN" ] || [ ! -e "$BIN" ]; then
|
||||
echo "invisible_playwright fetch returned '$BIN', which is not a" >&2
|
||||
echo "file. Refusing to run a suite that would skip itself green." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "STEALTHFOX_E2E_BINARY=$BIN" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Run WebRTC realness e2e (xvfb for the headless Firefox)
|
||||
run: |
|
||||
set -o pipefail
|
||||
sudo apt-get update && sudo apt-get install -y xvfb
|
||||
xvfb-run -a pytest tests/test_webrtc_realness.py -m e2e -o addopts="" -v -rs | tee webrtc-report.txt
|
||||
|
||||
# Run #1 was GREEN with the headline assertion skipped: "1 passed, 1
|
||||
# skipped", and the skipped one is the test this workflow's own header
|
||||
# calls the point of the gate. pytest's exit code cannot tell that from a
|
||||
# pass, and this file was the only one of four without a floor.
|
||||
- name: Refuse a run whose main assertion did not execute
|
||||
shell: bash
|
||||
run: |
|
||||
python - <<'PY'
|
||||
import pathlib, re, sys
|
||||
text = pathlib.Path("webrtc-report.txt").read_text(encoding="utf-8", errors="ignore")
|
||||
passed = int((re.search(r"(\d+) passed", text) or [0, 0])[1] or 0)
|
||||
skipped = int((re.search(r"(\d+) skipped", text) or [0, 0])[1] or 0)
|
||||
if skipped:
|
||||
print("these tests SKIPPED, so the gate verified less than it "
|
||||
"claims:", file=sys.stderr)
|
||||
for line in text.splitlines():
|
||||
if line.startswith("SKIPPED"):
|
||||
print(" " + line, file=sys.stderr)
|
||||
if passed < 2 or skipped:
|
||||
print(f"{passed} passed / {skipped} skipped - this gate exists for "
|
||||
f"the synthetic-srflx assertion; a run that skips it is not "
|
||||
f"a pass.", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
print(f"{passed} tests ran, none skipped")
|
||||
PY
|
||||
+18
-452
@@ -4,440 +4,7 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.58.0] - 2026-11-21
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 68.80.0 on the engine firefox-68 (Firefox 159.0).
|
||||
- Every profile starts with the security state a retail Firefox has: the intermediate certificates, OneCRL and the CRLite revocation filters.
|
||||
`invisible-playwright fetch` downloads them from Mozilla's service and has the engine build them once; every launch copies the result into its
|
||||
profile. Filters ten days old or more are left out, as a retail Firefox does, with one warning that says to run `fetch`.
|
||||
|
||||
### Fixed
|
||||
- `networkidle` waits for the end of the document request that is still arriving when the page is cut, instead of ending early.
|
||||
- A navigation the page's process reports as aborted while the parent is still carrying its request now waits for that request, so a
|
||||
`goto` no longer fails with a false abort.
|
||||
- Behind a SOCKS5 proxy, WebRTC sockets on ports Windows reserves no longer take the proxy's UDP association from the sockets that work.
|
||||
|
||||
## [0.57.1] - 2026-11-20
|
||||
|
||||
### Fixed
|
||||
- Pins invisible-core 67.79.0 (same engine, firefox-67). On Windows, two browsers launched together on an empty cache could fail with
|
||||
«Access is denied» on the font list file the first browser held open: the file is now created once and never replaced or read back.
|
||||
|
||||
## [0.57.0] - 2026-11-20
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 67.78.0 (same engine, firefox-67). The core keeps no value in memory between two calls: the seal, the identity of the engine,
|
||||
the GPU tables, the time zones, the keyboard tables, the exit address and the UDP verdict of a proxy are read or measured each time they are needed,
|
||||
so what a launch costs is visible where it is paid.
|
||||
- `invisible-playwright fetch` looks for a newer list of intermediate certificates every time it runs (a small request; the list is downloaded only
|
||||
when Mozilla changed it). A launch only reads the list on disk and starts no background check.
|
||||
- `new_context(proxy=...)` measures the UDP exit of its proxy every time, instead of reusing a measurement of the same proxy from the last 30 minutes.
|
||||
- A launch without a proxy asks for its exit address every time, instead of reusing an answer from the last 2 minutes.
|
||||
- The UDP verdict the session measured at launch is handed to the browser's proxy command explicitly.
|
||||
|
||||
### Fixed
|
||||
- `wait_for_load_state("networkidle")` and `goto(..., wait_until="networkidle")` on a new document count the quiet from that document's
|
||||
commit, as Playwright does: the silence before the commit no longer counts toward its 500 ms.
|
||||
|
||||
## [0.56.0] - 2026-11-19
|
||||
|
||||
### Engine firefox-67
|
||||
- A site that sends an incomplete certificate chain (its certificate without the intermediate that signed it) opens from the first second,
|
||||
as it does on a Firefox that has been in use for days. Firefox completes such chains with the intermediate certificates Mozilla
|
||||
publishes, which a fresh profile only downloads a minute or so after its start; the list is now declared by the core and written into
|
||||
the profile before the first page, so every session has it from its start.
|
||||
- The engine no longer downloads that list itself: no request for it leaves the browser, through the proxy or otherwise.
|
||||
- The browser tells the client it is ready only once the list is written, so no page can be opened before it is in place.
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 67.77.0 and with it the engine firefox-67. The core downloads the list from Mozilla's service once, verifies every
|
||||
certificate against the hash Mozilla publishes for it, keeps it in its cache and asks again at most once a week, after the browser has
|
||||
started, so a launch never waits for it; with no copy and no network the browser starts without the list and a warning is printed.
|
||||
- `invisible-playwright fetch` also downloads the list, after the engine, so the first launch does not.
|
||||
- The CI legs launch with a fixed, empty list of the repository (`ci/intermediates.json`), so no test asks Mozilla for anything.
|
||||
|
||||
## [0.55.0] - 2026-11-19
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 66.76.0 (same engine, firefox-66): the core no longer carries its legacy API, and the wrapper no longer reaches any of it.
|
||||
- `tests/conftest.py` takes the engine entry table from `invisible_core.seal.DEFAULT_ENTRY_REL`, and a test fails if a file of the wrapper imports a name the core removed.
|
||||
- The workflows arm the pre-push gates with `python -m invisible_core.hooks install`.
|
||||
|
||||
### Removed
|
||||
- The nine modules that only re-exported `invisible_core` (`invisible_playwright._geo`, `_headless`, `_proxy`, `_webgl_personas`, `config`,
|
||||
`constants`, `download`, `prefs`, `_fpforge`) and `invisible_playwright._reaper`: import `invisible_core.<module>` (`invisible_core.process`
|
||||
for the reaper). `resolve_session_timezone` is no longer re-exported from the package root.
|
||||
- `INVPW_CURSOR_ENGINE=binary` and the fallback to the browser's own motion when no generator is found: the engine is the Python one, or `off`. The variable is strict: unset, `python` or `off`; any other value (`binary`, `none`, `false`, `0`...) is a `ValueError` that lists them.
|
||||
- The test that scanned a driver bundle tree, which only the removed Node driver had.
|
||||
- `INVPW_TRANSPORT=driver` and its refusal message: there is one transport.
|
||||
- `scripts/install_hooks.py`: `python -m invisible_core.hooks install` (with `--check` to only report) does the same, from the core.
|
||||
|
||||
### Fixed
|
||||
- The documentation no longer presents `INVPW_BINARY_PATH` as a variable of the library, which reads none; a binary you already have is passed
|
||||
as `binary_path=`.
|
||||
|
||||
## [0.54.0] - 2026-11-18
|
||||
|
||||
### Engine firefox-66
|
||||
- A screenshot on Linux draws text in the fonts the page used. The browser's main process rebuilds each font of a screenshot from its
|
||||
file and asks fontconfig to confirm that file; it now shows the bundled fonts to fontconfig before it builds its font list, so the file
|
||||
is known and kept instead of being replaced by a fallback font (screen and canvas were already right; only screenshots were wrong).
|
||||
- A face of a font collection (`.ttc`) keeps its own index when the main process rebuilds it, so it is no longer drawn as another face of
|
||||
the same file (Cambria Math, MS PGothic and NSimSun came out as Cambria, MS Gothic and SimSun). This is Mozilla's fix of bug 2077661,
|
||||
carried as Mozilla wrote it until a Firefox release ships it.
|
||||
- Windows was not affected.
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 66.75.0 and with it the engine firefox-66.
|
||||
|
||||
### Added
|
||||
- A test that draws text in each bundled family the identity declares (accents, a typographic apostrophe, Chinese, Japanese, Arabic,
|
||||
Russian, and two faces that are not the first of their collection) and compares the screenshot, byte for byte, with the same text drawn
|
||||
by the page itself into a canvas, on Linux and on Windows.
|
||||
- A Linux test that a second launch reads the bundle from fontconfig's cache and does not scan the folder again, measured under strace,
|
||||
with a test of the strace stand-in itself.
|
||||
|
||||
## [0.53.1] - 2026-11-16
|
||||
|
||||
0.53.0 was tagged but never published; its changes ship in 0.53.1. One of its tests read the page's address too early when the first of
|
||||
two navigations wins; 0.53.1 corrects that test.
|
||||
|
||||
### Engine firefox-65
|
||||
- Keys, clicks and the mouse path stay on their planned timing under load.
|
||||
- A second `goto` that starts while a site is changing process no longer hangs.
|
||||
- The isolated worlds of init scripts are always created.
|
||||
- A worker comes back with its page from the back-forward cache.
|
||||
- The names looked up as a context closes go through that context's proxy.
|
||||
- `close()` returns when the browser has exited, and never interrupts it while it exits.
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 65.74.0 and with it the engine firefox-65.
|
||||
- The path of the cursor leaves as one stroke. The approach, the walk before a click, the wheel burst and the idle movement hand their
|
||||
planned timeline to the core's `Actions.walk`, which sends each point at its planned instant on the client's own clock, without waiting
|
||||
for the reply of the one before; the replies are collected at the end. Before, each point was a command of its own that waited for the
|
||||
engine's reply, and a slow reply was a pause in the path that the page saw (2.6 s measured on a GitHub runner), with the points after it
|
||||
crowded together. A lone `mouse.down`, `mouse.up` or one-step `mouse.move` is still a single command that waits for its reply, as in Playwright.
|
||||
- `close()` returns when the browser has exited, and the removal of the session's directories and the last reap of its tree are left to the
|
||||
reaper of the launch (invisible-core 65.74.0), instead of being done at once and waiting for the sender of the shutdown pings. A session
|
||||
that is over is forgotten by the registry of reapers, so a long-lived server no longer keeps one entry per session.
|
||||
- The download and upload folders of a session are removed by the reapers of its launches, after the tree has ended, and no longer on
|
||||
the server's shutdown thread that the user's exit waits for (4 profiles removed together took up to 2.5 s on Windows). With no reaper
|
||||
they are removed at once, as before.
|
||||
|
||||
### Fixed
|
||||
- The cursor's motion never fails an action for what the engine or the page answers (a closed target, a detached frame, a refused or
|
||||
unanswered command), and no longer hides a bug of ours: an error of our own in the path (an `AttributeError`, a `TypeError`) comes out of
|
||||
the action instead of being swallowed with one warning and a click that goes out with no path.
|
||||
|
||||
### Removed
|
||||
- `pytest-rerunfailures` from the `dev` extra. No run of this repository reruns a test (the e2e run refuses the plugin by name, `-p no:rerunfailures`).
|
||||
|
||||
### Tests
|
||||
- The e2e tests wait for a condition with a deadline of 30 s, not for a clock, and the workers share no port: a Marionette port per launch,
|
||||
the HTTP/3 server serves on the UDP socket its picker held. A test that is red now says what
|
||||
it saw. (#507, #511, #514)
|
||||
- The shelved engine line is firefox-66; its 15 tests wait for it. (#509)
|
||||
- A loop late in its selector is not held; only the time its thread runs counts. (#508)
|
||||
- A check that the e2e tests do not wait on clocks, share ports, write the environment or reach the world; the debt of that check only shrinks.
|
||||
- The whole unit suite is a required suite of the candidate: 1988 tests on Linux and 1989 on Windows.
|
||||
- The click and pointer benches count a stroke's instants on their virtual clock, and the key-delay test reads the browser's own event
|
||||
time stamps. (#516)
|
||||
- The e2e workflow uploads the junit of every pass of the run (Linux, and each Windows part), green or red.
|
||||
|
||||
## [0.52.1] - 2026-11-15
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 64.73.0 (same engine, firefox-64). The compositor is now declared in software on every machine, as a
|
||||
retail Firefox reports on a machine without a usable GPU, and never read from the host. Before, the hardware compositor
|
||||
was declared over a software adapter, which cost about 6x the CPU in the GPU process.
|
||||
- Windows: the engine is created inside a job of its own, so a launch no longer scans every process of the machine to bind
|
||||
the engine's tree. (#498)
|
||||
- Several browsers in one async program no longer slow one another down:
|
||||
- `connect()` starts no thread on the event loop (#497).
|
||||
- The virtual display of `headless=True` starts off the event loop (#499).
|
||||
- Closing a browser waits for its processes and removes its profile without holding the loop that serves the others:
|
||||
with four browsers in one process the loop was held for up to about 0.5 s per close, and is not held now (#503).
|
||||
- Comments, the fork notes and one test message no longer point at scripts that were deleted (the transport comparison scripts and the prefs byte-parity gate: no round ran them). No behaviour changes. (#458)
|
||||
|
||||
### Added
|
||||
- `page.expose_function`, `page.expose_binding`, `context.expose_function` and `context.expose_binding`, as in Playwright: the page calls a Python function and gets a promise (the value, a rejection when the function raised, an await when it is async). The page sees the function and nothing else (no name of ours on the window, no init script); an engine without `Page.addBinding` is refused with a clear sentence. Arguments and results cross as JSON. (#471)
|
||||
- `Locator.screenshot()` and `ElementHandle.screenshot()`: a picture of the element, as in Playwright, in the page, in a frame of another site and in a frame nested in it. (#470)
|
||||
|
||||
### Fixed
|
||||
- A context init script added after a page exists runs once in it, not twice. (#469)
|
||||
- A CORS preflight (an OPTIONS request that no route holds) is no longer reported to the client, as in Playwright's own server: `page.on("request")`, `route` and a request counter hear of one request fewer for each preflighted fetch of the page. (#467)
|
||||
|
||||
### Tests
|
||||
- Every test module is checked to leave no browser open (a census of the connection threads, which needs no package to run). (#497, #500)
|
||||
- Software compositing is declared: the compositor in use, the CPU of the GPU process, and the bytes a page reads compared
|
||||
against a recorded reference, on Linux and Windows. (#501)
|
||||
- The UDP bench survives a loaded Windows machine, and its verdict says what it saw. (#502)
|
||||
|
||||
## [0.52.0] - 2026-11-14
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 64.71.0 and with it the engine firefox-64. A request a page causes now leaves in the context of that
|
||||
page, by that context's proxy and resolver: the name of a TURN server over TCP, the OCSP request of a certificate, the TLS
|
||||
over a tunnel, the Safe Browsing completion of a page load. Nothing of a context with a proxy goes out DIRECT when a proxy
|
||||
lookup fails or the context has just closed. On Linux the profile lock no longer looks up the machine's host name.
|
||||
- Typing: each key is sent at its planned time measured from the start of the action, so a late reply no longer shifts the
|
||||
keys after it, and the engine delivers each key at once with its event born the declared latency in the past. Measured
|
||||
against stock Playwright Firefox, 20 runs per cell, slip of the last key against the plan (median): Windows 635 ms before,
|
||||
6 ms now (stock 122); Linux 554 ms before, -5 ms now (stock 91).
|
||||
|
||||
### Fixed
|
||||
- Screencast: a frame that arrives while the start of the screencast is being answered is held and acknowledged,
|
||||
not dropped, so the stream no longer dies from its first frame (the engine keeps one frame in flight and waits for its
|
||||
acknowledgement).
|
||||
- No thread is started on the engine connection's reader any more (the adoption of a new page and the file chooser hand
|
||||
their work to one long-lived starter). On Windows under load a Thread.start there held every event behind it; without
|
||||
instrumentation, goto(..., wait_until="networkidle") on pages that replace themselves missed 1 in 1200 instead of 4.
|
||||
|
||||
### Tests
|
||||
- The suites "nothing of a context leaves but through its proxy" (a witness of every direct arrival, the engine's resolver
|
||||
log as the sink of native lookups), on Linux and Windows, including two contexts with their own proxies at once and a
|
||||
PeerConnection of a torn-down window.
|
||||
- Windows: the isolated-page test moves the page when the test says so instead of on a 500 ms timer; the sandbox test
|
||||
reads again a process that is still starting.
|
||||
|
||||
|
||||
## [0.51.1] - 2026-11-13
|
||||
|
||||
### Changed
|
||||
- Pins invisible-core 63.68.0 (core fixes on the same firefox-63 engine: two sessions starting together on Windows no longer fail on the shared font-manifest cache; no MOZ_*, GL or toolkit variable of the host reaches the engine; GitHub is asked for the latest GeoIP database once a day, not on every launch; mouse moves carry the pressed buttons; a CORS preflight does not count for networkidle).
|
||||
- The project moved to the oss-invisible GitHub organization: every GitHub link, the issue templates and the package URLs point to github.com/oss-invisible/playwright. The PyPI name and the import name do not change; the old addresses redirect.
|
||||
|
||||
### Fixed
|
||||
- A popup (a `window.open` or a `target=_blank` link) could be handed to the client at `about:blank`, with the blank page's `load`, when it
|
||||
was opened with no route on the context: the commit of its address, or its `DOMContentLoaded` and `load`, arrived while the page was being
|
||||
handed from its buffer to its dispatcher and was told to nobody (`page.url` stayed `about:blank`, or `wait_for_load_state("load")` timed
|
||||
out). Measured on Windows with the library's client in the same process, `test_popups_reach_the_client_e2e.py` x20 on 4 workers: 3 runs
|
||||
red with the published firefox-62 engine and 11 with firefox-63. The page is now handed over in one step: what the client was not told is
|
||||
said once, in order, and nothing the engine sent in that period is lost.
|
||||
- The same hand-over dropped every event that is not a request: a `console` message, a `pageError`, a `dialog` (an `alert()` that opened
|
||||
while the popup was being built blocked its page for good, because no client had been told of it and none could answer it), a `crash`, a file chooser. All
|
||||
of them are given back now, in the order they arrived. The only bound left is the memory of the buffer (512 events): an event beyond it is
|
||||
lost and a `RuntimeWarning` says how many, once per page.
|
||||
- The hand-over holds when the engine's reader, the adoption and a close run at the same time: a `load` is told to the client once (not twice,
|
||||
so `page.on("load")` runs once); an event the engine sends while the held ones are being given back waits for them (a response is never handled
|
||||
before its request); a document committed at the same address as the previous one is told; a page closed while it was being adopted is not given
|
||||
frames, and is not announced, after its `__dispose__`; one frame never gets two dispatchers.
|
||||
- A popup could still be handed to the client at `about:blank` (or with its navigation pending again, and "Execution context was destroyed" in its
|
||||
first evaluate) when the destination committed while the events the page had missed were being replayed to it: the engine's reader went on
|
||||
delivering the live events to the lifecycle, and the replay then brought older ones after them. The page now subscribes its readers and is
|
||||
handed the missed events in one step, with the delivery of the sessions' events held, so a live event never overtakes the replay.
|
||||
With the three corrections together, on Windows with the library's client in the same process, under load: 680/680 and 256/256 popup cases
|
||||
green (run 43261858525).
|
||||
- `Control+A` selects all in an `<input>` and a `<textarea>` on Windows, on the published engine and the core this package pins: a new end-to-end
|
||||
test (five ways to press the shortcut, in-process and served to the stock client), run by `e2e.yml` on Windows, 20/20 green (run 43262320744).
|
||||
- Tests only: the e2e tests of the test servers take their ports from one sequence (no two servers draw the same one); the two tests that read a
|
||||
consecutive pair of host ports run alone, after the parallel tests; the sandbox e2e (the browser's seccomp filter) runs in a step of its own that
|
||||
turns unprivileged user namespaces on, and is left out of the normal run; every leg launches with a GeoIP database the repository builds (same
|
||||
bytes every run, no download); the CodeQL alerts of the test code are fixed; the install job waits for the package index through both installers;
|
||||
the raw Juggler tests wait for `Page.ready` and the main frame instead of a fixed time.
|
||||
|
||||
## [0.51.0] - 2026-11-12
|
||||
|
||||
### Changed
|
||||
- Engine firefox-63 through invisible-core 63.67.0, which this version pins (63.67.0 is 63.66.0 with the protocol mirror regenerated from the published engine; the mirror of 63.66.0 differed from it). Behind a proxy: names are resolved by the browser's own
|
||||
DNS-over-HTTPS through the proxy (not by the machine's resolver; checked with a resolver trap on Linux), WebRTC and HTTP/3 send
|
||||
their UDP through the proxy's relay when its UDP was measured to leave from the same address as its TCP, and a proxy whose UDP
|
||||
does not hold (including one whose UDP leaves from another address) is treated as a router that drops it (HTTP/3 falls back to
|
||||
HTTP/2, ICE gathers no server-reflexive candidate). A proxy given to a context declares its own measured UDP exit. The interface
|
||||
list WebRTC gathers is the network the session declares.
|
||||
- Behind a SOCKS5 proxy the proxy now receives addresses, not names (the names are resolved by the DNS-over-HTTPS through it); a proxy
|
||||
that cannot carry HTTPS to mozilla.cloudflare-dns.com resolves no name.
|
||||
- A STUN server list can be given at launch (`udp_stun_servers`) for the measurement of the proxy's UDP.
|
||||
- Every context carries the position the core declares for the session (the geolocation override of the context).
|
||||
- The package's launcher and server refuse the two prefs that govern the launch counter, `invisible_firefox.usage_ping.enabled` and
|
||||
`invisible_firefox.usage_ping.url`, in `extra_prefs` (and in the `firefoxUserPrefs` of a served launch). The engine counts launches with
|
||||
an anonymous GET to the `usage-counter` release of the engine's repository (`oss-invisible/firefox_antidetect_patch`).
|
||||
|
||||
### Added
|
||||
- `preload_newtab=False` turns off the preloaded New Tab page, on request only (`InvisiblePlaywright`,
|
||||
`invisible_playwright.async_api.InvisiblePlaywright` and `launch_server`): by default the browser keeps it, as a retail Firefox does.
|
||||
A retail Firefox keeps the New Tab page ready in a content process of its own; with the option it is not started. `None` writes
|
||||
nothing, `True` says the retail value aloud, and a `browser.newtab.preload` in `extra_prefs` wins over it. Needs invisible-core
|
||||
63.66.0 or later. Measured on Windows (run 43211271731), on an engine build of the firefox-63 candidate line (not the published engine), one
|
||||
page of a site, five alternating runs: the browser's processes together take 448-454 MB as shipped and 231-239 MB with the option
|
||||
(private memory 301-307 against 158-171 MB).
|
||||
|
||||
### Fixed
|
||||
- A request the browser resumed and whose channel is replaced and cancelled before the replacement starts (a `fetch` with
|
||||
`keepalive`, a beacon) is reported as failed, so it no longer keeps `networkidle` from arriving (engine firefox-63).
|
||||
- A navigation the page overtakes (`location.replace`) ends, and the document that overtook it is told (engine firefox-63).
|
||||
- A click in a frame under a CSS transform is mapped back to the point the frame shows, and a click in a frame scrolls the
|
||||
element in even when its point is inside the main viewport (invisible-core 63.66.0).
|
||||
- `request.resource_type` agrees with the pinned driver: a beacon is `beacon` and a CSP report is `cspreport` (it said `other`).
|
||||
- A download whose finish is seen before its announcement is marked finished: `save_as`, `path` and `failure` used to wait for ever on it.
|
||||
The early finishes the browser keeps are bounded (64) and forgotten with their context. (That the engine sends a finish before the
|
||||
announcement is not proven; the path is defensive.)
|
||||
- The opener kept for the downloads of a target whose adoption failed lives until the engine detaches the target, and none is
|
||||
made for a target already detached.
|
||||
- Tests only: the end-to-end tests that look at content processes ask for the processes of a site by its name and no longer compare two counts.
|
||||
|
||||
### Known differences from stock Playwright
|
||||
What a script that drives the browser can observe, from the configuration of Playwright's own Firefox and of a retail Firefox (no
|
||||
comparison run is saved). The result of a `window.open` (`null` or a window) is read by the page; the others are what the script sees.
|
||||
|
||||
- **A `window.open` from a script with no user gesture is blocked, as in a retail Firefox.** Playwright's own Firefox turns the popup
|
||||
blocker off (`dom.disable_open_during_load` false in its `playwright.cfg`); a retail Firefox keeps it on, and so does this browser. So
|
||||
`page.evaluate("window.open(url)")` returns `null` to the page and no `page` event comes; the same `window.open` from a click opens
|
||||
the popup on both. To get stock's behaviour: open the popup from a click; or pass
|
||||
`extra_prefs={"dom.disable_open_during_load": False}` for the session, knowing that a page then sees a browser that differs from a
|
||||
retail Firefox.
|
||||
|
||||
## [0.50.1] - 2026-11-12
|
||||
|
||||
0.50.0 was tagged and never published: its end-to-end gate was red on two tests that counted processes.
|
||||
0.50.1 is 0.50.0 with those tests corrected.
|
||||
|
||||
### Changed
|
||||
- Engine firefox-62 through invisible-core 62.63.0, which this version pins: firefox-61 plus Fission
|
||||
and the Juggler for frames in another process. When `goto` returns, the frames below have the
|
||||
address of their first document (an iframe of another site used to be listed with an empty url
|
||||
for a moment); a `goto` to the address the page is already at ends; a late event of a frame that
|
||||
left the page no longer brings it back into `page.frames`.
|
||||
- Fission: iframes of another site run in a content process of their own (isolation strategy 1,
|
||||
`fission.autostart` on, four isolated content processes), as in retail Firefox on desktop. The
|
||||
strategy comes from the invisible-core baseline of the firefox-62 engine, whose Juggler reaches a
|
||||
frame in another process like any other. The tests that held strategy 0
|
||||
(`tests/test_cross_origin_iframe.py`) now hold strategy 1, and the Fission end-to-end tests
|
||||
(frame tree, element to frame, geometry, input, crash of an iframe process, identity of the
|
||||
iframe and of its page) run on that engine.
|
||||
|
||||
### Fixed
|
||||
- `goto(wait_until="networkidle")` arrives on a page that is reused for many addresses, and on a served browser whose
|
||||
context routes every request, as with a stock Firefox. Two causes, both ours. A route answered after the browser had
|
||||
already closed its request (a fetch the page aborted, an image it replaced, an iframe it removed, a beacon cancelled
|
||||
with its document) came back to the client as an error, which the client kept for the whole connection and raised on the
|
||||
next route command; that command was never sent, its request stayed held in the engine, and so on down the page. The
|
||||
server now takes such an answer as done, whatever wording the engine gives it ("Cannot find request", or "NS_BINDING_ABORTED"
|
||||
when the channel was cancelled while the answer was on its way), as Playwright's own server does. The same defect was found a month earlier by richardpowellus
|
||||
(#351), on the favicon of the page a `goto` had just left; his test is part of this release. And the core counted the requests in flight
|
||||
with one integer per page, never reset by a navigation, so one request whose end never arrived kept every later address
|
||||
from going idle (invisible-core 62.64.0 keeps them by request id, per document, and does not keep the requests of a
|
||||
frame that already left: a beacon sent at `pagehide` is announced after its frame is gone).
|
||||
- A `goto` sent right after `new_page` is no longer "interrupted by another navigation to about:blank" on a loaded machine. The page was
|
||||
handed to the caller as soon as its main frame was announced, while the engine had not yet committed the page's own initial
|
||||
`about:blank`; a navigation answered before that commit lost to it. The page is now handed over when the engine says it is
|
||||
ready (`Page.ready`), as Playwright's own page is (invisible-core 62.65.0, `Lifecycle.wait_for_page_ready`; a page closed before
|
||||
it was ready ends the wait with an error at once).
|
||||
- A launch that names no session (Playwright's own `BrowserType.launch` against the server) gets a
|
||||
session composed the way `InvisiblePlaywright()` composes one: prefs, environment and, behind a
|
||||
proxy, the egress the page reads as its WebRTC address. It used to come up with Mozilla's
|
||||
defaults, and on Linux its first `new_page` failed with "Unexpected number of tabs in the new
|
||||
window: 2".
|
||||
- A frame that left the page (an iframe a script removed) answers a call with "Frame was
|
||||
detached", as Playwright does, not "Target page, context or browser has been closed".
|
||||
- `grant_permissions` uses the permission names of the engine. `geolocation` and `notifications` used
|
||||
to reach the engine under the web names while it keeps a grant under `geo` and
|
||||
`desktop-notification`, so a page of a context that had been granted geolocation and given a
|
||||
position was still denied. The names are those of the Playwright client for this browser
|
||||
(`geolocation`, `persistent-storage`, `push`, `notifications`, `screen-wake-lock`); any other name
|
||||
raises `Unknown permission`, as it does there, and a grant with no origin is a grant for every
|
||||
origin.
|
||||
- The end-to-end tests that count content processes count the ones that host a site, not every content
|
||||
process that is new. The engine keeps a pool of preallocated processes and refills it whenever it gets
|
||||
to it, so a refill landing between two reads looked like a process the test had caused (a same-site
|
||||
frame, a closed context with a service worker that never stops). Measured on firefox-62: a closed context
|
||||
leaves no process of its site. On Linux the process is named by the site it hosts; elsewhere these
|
||||
tests skip.
|
||||
- A popup (a `target=_blank` link, `window.open`) reaches the client as it does with Playwright's own Firefox: when its
|
||||
destination answers, with no limit of time, with the destination's address as its url, and with `load` reachable on
|
||||
it. It used to be given up on after 20 s, could be announced with `about:blank` as its url, and about one in a
|
||||
hundred was never announced. A destination that never becomes a page (a 204, a server that never answers) is not
|
||||
announced, as on stock. Measured against stock destination by destination, with answers after 4 s and after 25 s: 18
|
||||
cases of 18; and 128 popups announced of 128 across the two transports (the library client, a stock client over
|
||||
`launch_server`).
|
||||
- For a popup whose answer is a download, the opener's `download` event comes after the popup's `page` event, as on
|
||||
stock. With little CPU the download could arrive and the page never be announced. Measured on a runner limited to
|
||||
one CPU: 8 runs red of 10 before, 0 of 10 after.
|
||||
|
||||
### Known differences from stock Playwright
|
||||
Measured against Playwright's own Firefox with the same script, on this version. None of them is a value a page
|
||||
reads; they are what a script that drives the browser can observe.
|
||||
|
||||
- **The url of a popup that turns into a download.** A link or a `window.open` whose answer is an attachment gives, as on
|
||||
stock, a `page` event, a `download` event on the opener, and a popup that closes at once. The popup's `url` at the `page`
|
||||
event is `about:blank` here and the empty string on stock. Measured: 8 cases of 8 (link and `window.open`, the library
|
||||
client and a stock client over `launch_server`), against 4 of 4 on stock.
|
||||
- **The url of a frame of another site at the page's `DOMContentLoaded`.** A frame of another site runs in another process,
|
||||
as in a retail Firefox, and commits its navigation after the page's `DOMContentLoaded`; stock Playwright keeps frames in
|
||||
the page's process. So `frame.url` read right after `goto(..., wait_until="domcontentloaded")` can be the empty string.
|
||||
After `load` it is always set. Measured, 30 runs each: after `load` the url was there 30 times here and 30 on stock; at
|
||||
`DOMContentLoaded` once here and 30 times on stock. Wait for `load`, or for the frame's own navigation, before reading it.
|
||||
- **A click takes longer with the library client.** From `click()` on a link to the `page` event of the popup it opens:
|
||||
0.8 to 1.7 s more than stock with the library client, and the same as stock (within 0.1 s) with a stock client over
|
||||
`launch_server`. Measured on 64 popups per transport and on destinations that answer after 4 s and after 25 s. The
|
||||
same run with `humanize=False` was not measured.
|
||||
- **Back and forward restore the page from the back-forward cache.** As in a retail Firefox, `go_back` and `go_forward`
|
||||
bring the page back as it was; Playwright's own Firefox loads it again. So a script that runs when the page loads does
|
||||
not run again here. Measured on a 17-step journey with the same script on both: on its three back and forward steps
|
||||
the page's load-time requests were sent again on stock (6 beacons each) and not here (0, 2 and 0, the two being the
|
||||
ones a page sends when it is left); every step ended on the same page, and the other 14 steps sent the same requests.
|
||||
|
||||
## [0.49.1] - 2026-11-10
|
||||
|
||||
### Changed
|
||||
- Engine firefox-61 through invisible-core 61.62.0, which this version pins: firefox-60 plus four
|
||||
fixes. A context that ends no longer leaves a content process behind when a service worker
|
||||
that never stops keeps it alive (the engine kills the processes of the container that stay);
|
||||
the shared font resources of a closed window leave WebRender's pool with it; `Page.screenshot`
|
||||
empties its canvas on every way out; `Page.setEmulatedMedia` names the media features it
|
||||
refuses, in English.
|
||||
- A context route turns the context's cache off while it is active, as Playwright does.
|
||||
|
||||
### Fixed
|
||||
- `page.request_gc()` works on a served browser. It sent the engine's `Heap.collectGarbage` on the
|
||||
browser-level connection, whose handler does not have it, so every call failed with
|
||||
`Handler for does not implement method "Heap.collectGarbage"`; it is now sent with the session
|
||||
of the page, as the engine answers it.
|
||||
|
||||
## [0.49.0] - 2026-11-10
|
||||
|
||||
### Changed
|
||||
- Engine firefox-60 through invisible-core 60.61.0, which this version pins: firefox-59 plus
|
||||
the Juggler's memory fixes. A tab no longer keeps the documents it left alive (they used to
|
||||
stay as detached windows after leaving the back/forward cache), and a main-frame navigation
|
||||
drops the response bodies of the documents it left, as Chromium does: `response.body()` of
|
||||
such a response raises the evicted error Playwright already returns for Firefox.
|
||||
|
||||
## [0.48.1] - 2026-11-10
|
||||
|
||||
### Added
|
||||
- `launch_server`, `launch_server_async` and `RemoteServer` are importable from
|
||||
`invisible_playwright`, and the README's "Serving one browser to many clients" has a
|
||||
complete example: a server, and a Playwright for Python client that connects to its
|
||||
`ws_endpoint`.
|
||||
|
||||
### Changed
|
||||
- invisible-core 59.60.0, which this version pins. The browser never opens its crash
|
||||
reporter: the launch environment carries `MOZ_CRASHREPORTER_DISABLE=1`, so an engine that
|
||||
refuses a launch no longer leaves a "Crash Reporter" window on a Windows desktop.
|
||||
- The e2e run stops at the first refusal of the engine instead of launching the browser for
|
||||
every test (a change to the test suite, not to the package).
|
||||
|
||||
## [0.48.0] - 2026-11-10
|
||||
|
||||
### Added
|
||||
- `launch_server()` serves one browser on a WebSocket to any Playwright client: the
|
||||
Playwright initializer is the one of protocol 1.62, a call's timeout is read from its
|
||||
metadata or its parameters, a Dialog is a protocol object, and the pointer's path is
|
||||
drawn by the server, once, for every client.
|
||||
|
||||
### Changed
|
||||
- Engine firefox-59 (Firefox 159.0), through invisible-core 59.59.0, which this version
|
||||
pins. On Linux WebGL draws on the engine's own GL, never the host's, under X11 too, and
|
||||
every extension the persona declares answers as on Windows. The same seed gives the same
|
||||
pointer path, typing and persona on Python 3.11 to 3.14 (59.59.0 replaces the two builtins
|
||||
that differ between versions).
|
||||
- The server collects its oldest protocol objects as Playwright's does, with a lower limit
|
||||
for `Request`, `Response` and `Route` (2000, not 10000; nothing younger than 10 seconds).
|
||||
A program that holds more than 2000 requests or responses in hand for longer than 10
|
||||
seconds gets "Target closed" on the oldest ones. `INVPW_GC_LIMITS` changes the limits.
|
||||
- A closed context leaves nothing in the server's registry.
|
||||
## [Unreleased]
|
||||
|
||||
## [0.47.1] - 2026-11-08
|
||||
|
||||
@@ -1456,7 +1023,7 @@ browser reads that decision.
|
||||
`new_context` failed with `NS_ERROR_NOT_AVAILABLE`.
|
||||
- **A routed request carries its body.** `request.post_data`,
|
||||
`post_data_json` and `post_data_buffer` were None for every POST, in a route
|
||||
handler and on the `request` event alike (oss-invisible/core#90). The
|
||||
handler and on the `request` event alike (feder-cr/invisible_core#90). The
|
||||
body is there whenever a route is set on the page or its context; without a
|
||||
route it stays None, which keeps the engine from copying every POST body.
|
||||
- **`go_back()` goes back over a page the script left without a gesture**,
|
||||
@@ -2453,8 +2020,7 @@ browser reads that decision.
|
||||
repository that builds and ships the engine. The engine's compiled default
|
||||
says the same from the next build. Engines older than firefox-21 do not read
|
||||
the pref and are not counted. To opt out of the ping, set
|
||||
`invisible_firefox.usage_ping.enabled` to `False` in `extra_prefs`. (Since 0.51.0 this is no longer possible: the
|
||||
counter cannot be turned off or redirected.)
|
||||
`invisible_firefox.usage_ping.enabled` to `False` in `extra_prefs`.
|
||||
- **The `browser launches` badge is back.** It was removed in 0.7.2 because the
|
||||
counter behind it lived on a repository that had been deleted, so the badge
|
||||
would have redrawn a frozen number every morning. The counter has lived on
|
||||
@@ -3066,10 +2632,10 @@ browser reads that decision.
|
||||
## [0.3.1] - 2026-07-13
|
||||
|
||||
### Fixed
|
||||
- [#48](https://github.com/oss-invisible/playwright/issues/48): Playwright 1.61 adds an `isMobile` field to the `Browser.setDefaultViewport` Juggler command that the FF150 binary does not accept, which kills the session. The range narrows from `>=1.40,<1.61` to the CI-tested 1.55.x (`>=1.55,<1.56`, single-sourced from `scripts/playwright_pin.txt`) so a fresh install always gets a compatible client. Widened again in 0.3.2, once `firefox-18` rebased onto Firefox 151.
|
||||
- [#48](https://github.com/feder-cr/invisible_playwright/issues/48): Playwright 1.61 adds an `isMobile` field to the `Browser.setDefaultViewport` Juggler command that the FF150 binary does not accept, which kills the session. The range narrows from `>=1.40,<1.61` to the CI-tested 1.55.x (`>=1.55,<1.56`, single-sourced from `scripts/playwright_pin.txt`) so a fresh install always gets a compatible client. Widened again in 0.3.2, once `firefox-18` rebased onto Firefox 151.
|
||||
|
||||
### Changed
|
||||
- The patched-Firefox source repo is now `oss-invisible/firefox_antidetect_patch` (it was `feder-cr/invisible_firefox`, a name the profile manager took over). Release notes, CI references and the release URLs the download tests mock all point at the new name; the binaries themselves are unchanged.
|
||||
- The patched-Firefox source repo is now `feder-cr/firefox_antidetect_patch` (it was `feder-cr/invisible_firefox`, a name the profile manager took over). Release notes, CI references and the release URLs the download tests mock all point at the new name; the binaries themselves are unchanged.
|
||||
- The wrapper no longer injects the font-list / system-UI environment variables at launch: the binary ships its own font bundle and is self-contained on that front. The integration tests were adapted and the font-sampling tests dropped.
|
||||
|
||||
### Added
|
||||
@@ -3119,7 +2685,7 @@ browser reads that decision.
|
||||
## [0.1.8] - 2026-05-23
|
||||
|
||||
### Fixed
|
||||
- [#20](https://github.com/oss-invisible/playwright/issues/20): cross-origin iframes were unreachable from Playwright. `element_handle.content_frame()` returned `None`, `frame.evaluate()` threw cross-origin SOP errors, and `frame_locator(...).click()` timed out even with `force=True`. Root cause: FF150 defaults `fission.webContentIsolationStrategy=1` (`IsolateEverything`), which site-isolates every cross-origin iframe into a separate `webIsolated` content process even when `fission.autostart=False`. The parent's Juggler FrameTree then has a Frame placeholder with no docShell and no URL - every protocol op that needs to enter the iframe fails. Fix: pin `fission.webContentIsolationStrategy=0` (`IsolateNothing`) in the baseline prefs. The setting can be flipped back per session via `extra_prefs={"fission.webContentIsolationStrategy": 1}`.
|
||||
- [#20](https://github.com/feder-cr/invisible_playwright/issues/20): cross-origin iframes were unreachable from Playwright. `element_handle.content_frame()` returned `None`, `frame.evaluate()` threw cross-origin SOP errors, and `frame_locator(...).click()` timed out even with `force=True`. Root cause: FF150 defaults `fission.webContentIsolationStrategy=1` (`IsolateEverything`), which site-isolates every cross-origin iframe into a separate `webIsolated` content process even when `fission.autostart=False`. The parent's Juggler FrameTree then has a Frame placeholder with no docShell and no URL - every protocol op that needs to enter the iframe fails. Fix: pin `fission.webContentIsolationStrategy=0` (`IsolateNothing`) in the baseline prefs. The setting can be flipped back per session via `extra_prefs={"fission.webContentIsolationStrategy": 1}`.
|
||||
|
||||
### Added
|
||||
- `tests/test_cross_origin_iframe.py`: 4 unit + 5 e2e regression sentinels for cross-origin iframe interaction. The e2e layer runs entirely offline against two local HTTP servers on `127.0.0.1` (two ports = two SOP origins) and covers `page.frames` URL tracking, `content_frame()`, `frame.evaluate()`, `frame_locator(...).locator(...)`, and end-to-end `dispatch_event("click")` for plain, sandboxed and titled iframes. A future FF upgrade or fingerprint A/B that flips the pref back to `1` will fail the suite before shipping.
|
||||
@@ -3130,7 +2696,7 @@ browser reads that decision.
|
||||
## [0.1.7] - 2026-05-21
|
||||
|
||||
### Fixed
|
||||
- [#18](https://github.com/oss-invisible/playwright/issues/18): Tab crash when running with `headless=True` on Windows on pages that trigger cross-process navigation. Two separate bugs that only manifested together: (1) the Chromium content sandbox at default level 6 puts content processes on `kAlternateWinstation`, but the wrapper hides the browser window on its own alt-desktop (`CreateDesktop` for headless on Windows). Mismatched desktops → cross-process navigations couldn't reparent windows → content process exits cleanly and Playwright fires `page.on('crash')`. (2) The canvas2d `getImageData` stealth spoof wrote to a read-only mapped `DataSourceSurface`. On GPU-backed canvases that memory is write-protected → segfault during the final `getImageData` at page unload. Wrapper now sets `security.sandbox.content.level=4` in the alt-desktop workaround set, and `firefox-7` ships the source fix that moves the noise to the JS array's writable backing buffer.
|
||||
- [#18](https://github.com/feder-cr/invisible_playwright/issues/18): Tab crash when running with `headless=True` on Windows on pages that trigger cross-process navigation. Two separate bugs that only manifested together: (1) the Chromium content sandbox at default level 6 puts content processes on `kAlternateWinstation`, but the wrapper hides the browser window on its own alt-desktop (`CreateDesktop` for headless on Windows). Mismatched desktops → cross-process navigations couldn't reparent windows → content process exits cleanly and Playwright fires `page.on('crash')`. (2) The canvas2d `getImageData` stealth spoof wrote to a read-only mapped `DataSourceSurface`. On GPU-backed canvases that memory is write-protected → segfault during the final `getImageData` at page unload. Wrapper now sets `security.sandbox.content.level=4` in the alt-desktop workaround set, and `firefox-7` ships the source fix that moves the noise to the JS array's writable backing buffer.
|
||||
|
||||
### Changed
|
||||
- `BINARY_VERSION` bumped from `firefox-5` to `firefox-7`. `firefox-6` was rolled back when its partial fix turned out to be wrong (the iframe-burst hypothesis was a dead end; bisection in the evening found the real two-bug cause documented above).
|
||||
@@ -3149,12 +2715,12 @@ browser reads that decision.
|
||||
## [0.1.5] - 2026-05-20
|
||||
|
||||
### Fixed
|
||||
- [#15](https://github.com/oss-invisible/playwright/pull/15): `python -m invisible_playwright fetch` raised `RuntimeError: no SHA256 for firefox-150.0.1-stealth-linux-x86_64.tar.gz in checksums.txt` for every user because the parser kept the `*` binary-mode prefix that `sha256sum` writes in front of filenames. Now `.lstrip("*")` is applied to the key. Reporter + patch: [@LostBoxArt](https://github.com/LostBoxArt). Unrelated to the `firefox-N` binary; existing caches still work, only first-time fetches were broken.
|
||||
- [#15](https://github.com/feder-cr/invisible_playwright/pull/15): `python -m invisible_playwright fetch` raised `RuntimeError: no SHA256 for firefox-150.0.1-stealth-linux-x86_64.tar.gz in checksums.txt` for every user because the parser kept the `*` binary-mode prefix that `sha256sum` writes in front of filenames. Now `.lstrip("*")` is applied to the key. Reporter + patch: [@LostBoxArt](https://github.com/LostBoxArt). Unrelated to the `firefox-N` binary; existing caches still work, only first-time fetches were broken.
|
||||
|
||||
## [0.1.4] - 2026-05-20
|
||||
|
||||
### Fixed
|
||||
- [#13](https://github.com/oss-invisible/playwright/issues/13): every page that threw an uncaught JS error (e.g. bunny.net) crashed the Playwright client with `TypeError: Cannot read properties of undefined (reading 'url')`. Root cause: upstream Playwright Juggler added a required `location` field to the `Page.uncaughtError` event in the 2026-05-07 roll ([microsoft/playwright@c8604ec](https://github.com/microsoft/playwright/commit/c8604ecd97)); our fork was carrying the pre-roll schema in every `firefox-N` build. Fix matches upstream - Runtime.js builds the `errorLocation`, PageAgent.js forwards it on both worker and runtime error paths, Protocol.js declares the schema field. Reporter: [@dionorgua](https://github.com/dionorgua).
|
||||
- [#13](https://github.com/feder-cr/invisible_playwright/issues/13): every page that threw an uncaught JS error (e.g. bunny.net) crashed the Playwright client with `TypeError: Cannot read properties of undefined (reading 'url')`. Root cause: upstream Playwright Juggler added a required `location` field to the `Page.uncaughtError` event in the 2026-05-07 roll ([microsoft/playwright@c8604ec](https://github.com/microsoft/playwright/commit/c8604ecd97)); our fork was carrying the pre-roll schema in every `firefox-N` build. Fix matches upstream - Runtime.js builds the `errorLocation`, PageAgent.js forwards it on both worker and runtime error paths, Protocol.js declares the schema field. Reporter: [@dionorgua](https://github.com/dionorgua).
|
||||
|
||||
### Changed
|
||||
- `BINARY_VERSION` bumped from `firefox-3` to `firefox-4`. JS-only change inside `chrome/juggler/`; `xul.dll` and `firefox.exe` are byte-identical to `firefox-3`.
|
||||
@@ -3162,7 +2728,7 @@ browser reads that decision.
|
||||
## [0.1.3] - 2026-05-19
|
||||
|
||||
### Changed
|
||||
- `BINARY_VERSION` bumped from `firefox-2` to `firefox-3`. The new archives on both Windows and Linux are built from a clean clone of [oss-invisible/firefox_antidetect_patch#stealth/150](https://github.com/oss-invisible/firefox_antidetect_patch/tree/stealth/150) - the consolidated source-of-truth fork (renamed from `feder-cr/firefox`; the companion `feder-cr/firefox-stealth` patches repo was deleted, all patches now live as commits on top of `mozilla-firefox/firefox`).
|
||||
- `BINARY_VERSION` bumped from `firefox-2` to `firefox-3`. The new archives on both Windows and Linux are built from a clean clone of [feder-cr/firefox_antidetect_patch#stealth/150](https://github.com/feder-cr/firefox_antidetect_patch/tree/stealth/150) - the consolidated source-of-truth fork (renamed from `feder-cr/firefox`; the companion `feder-cr/firefox-stealth` patches repo was deleted, all patches now live as commits on top of `mozilla-firefox/firefox`).
|
||||
- The patched Firefox archive now ships the **proper C++ implementation** of `windowUtils.jugglerSendMouseEvent`, replacing the JS shim from 0.1.2.
|
||||
|
||||
### C++ fixes landed in this release
|
||||
@@ -3173,7 +2739,7 @@ browser reads that decision.
|
||||
- **C7 (partial)**: storage stub for `nsIDocShell.languageOverride`. Workaround `InvisiblePlaywright(locale="")` recommended until full BC FIELD port lands.
|
||||
|
||||
### Verified
|
||||
- Both archives built from same source: oss-invisible/firefox_antidetect_patch commit `68906f1f9c55`.
|
||||
- Both archives built from same source: feder-cr/firefox_antidetect_patch commit `68906f1f9c55`.
|
||||
- Windows + Linux smoke suite green: launch, `ctx.new_page()`, `page.mouse.{move,down,up,click,wheel}`, `navigator.webdriver=false`, sannysoft 32/33 PASS.
|
||||
- SHA256 published in `checksums.txt` on the `firefox-3` release.
|
||||
|
||||
@@ -3192,7 +2758,7 @@ browser reads that decision.
|
||||
## [0.1.1] - 2026-05-18
|
||||
|
||||
### Fixed
|
||||
- **Critical**: every `page.mouse.*`, `page.click(selector)`, `locator.click()`, `page.hover()`, `mouse.wheel()` failed on the patched Firefox 150 binary with `win.windowUtils.jugglerSendMouseEvent is not a function`. The Juggler JS was porting calls to a Playwright-specific C++ method that was never landed in the FF146→FF150 port; replaced with the Mozilla chrome-scope `win.synthesizeMouseEvent` helper which is present in FF150. Six call sites patched across `juggler/protocol/PageHandler.js` and `juggler/content/PageAgent.js`. Reporter: [@trob9](https://github.com/trob9) - [#9](https://github.com/oss-invisible/playwright/issues/9).
|
||||
- **Critical**: every `page.mouse.*`, `page.click(selector)`, `locator.click()`, `page.hover()`, `mouse.wheel()` failed on the patched Firefox 150 binary with `win.windowUtils.jugglerSendMouseEvent is not a function`. The Juggler JS was porting calls to a Playwright-specific C++ method that was never landed in the FF146→FF150 port; replaced with the Mozilla chrome-scope `win.synthesizeMouseEvent` helper which is present in FF150. Six call sites patched across `juggler/protocol/PageHandler.js` and `juggler/content/PageAgent.js`. Reporter: [@trob9](https://github.com/trob9) - [#9](https://github.com/feder-cr/invisible_playwright/issues/9).
|
||||
- `_linkedBrowser.scrollRectIntoViewIfNeeded()` is now guarded at both call sites in `PageHandler.js` (`dispatchMouseEvent` and `dispatchWheelEvent`) - the method is not present on the shipped FF150 `<browser>` element, so the unguarded call threw before the mouse event was dispatched.
|
||||
|
||||
### Added
|
||||
@@ -3216,7 +2782,7 @@ browser reads that decision.
|
||||
- SOCKS5 / SOCKS4 / HTTP / HTTPS proxy support with auth.
|
||||
- Linux x86_64 and Windows x86_64 binary support.
|
||||
|
||||
[0.4.3]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.3
|
||||
[0.4.3]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.3
|
||||
> The two oldest entries point at a COMMIT, not a tag: 0.1.0 and 0.1.1
|
||||
> predate arriving on PyPI (the index starts at 0.3.5) and never had
|
||||
> a tag. Creating one today is not harmless: `publish.yml` triggers
|
||||
@@ -3224,8 +2790,8 @@ browser reads that decision.
|
||||
> does not short-circuit, so a new tag could kick off a publish
|
||||
> attempt. The commit is the same information without that risk.
|
||||
|
||||
[0.1.1]: https://github.com/oss-invisible/playwright/compare/7a983e99c53fa1ec1a443651a4dd9de42258dc61...589c848e07a67c459969a2ddfb79851f48b10eff
|
||||
[0.1.0]: https://github.com/oss-invisible/playwright/commit/7a983e99c53fa1ec1a443651a4dd9de42258dc61
|
||||
[0.4.4]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.4
|
||||
[0.4.5]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.5
|
||||
[0.4.6]: https://github.com/oss-invisible/playwright/releases/tag/v0.4.6
|
||||
[0.1.1]: https://github.com/feder-cr/invisible_playwright/compare/7a983e99c53fa1ec1a443651a4dd9de42258dc61...589c848e07a67c459969a2ddfb79851f48b10eff
|
||||
[0.1.0]: https://github.com/feder-cr/invisible_playwright/commit/7a983e99c53fa1ec1a443651a4dd9de42258dc61
|
||||
[0.4.4]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.4
|
||||
[0.4.5]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.5
|
||||
[0.4.6]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.6
|
||||
+7
-7
@@ -4,9 +4,9 @@ Thanks for your interest in improving this project. Contributions are welcome vi
|
||||
|
||||
## Quick links
|
||||
|
||||
- **Bug or idea?** Open an [issue](https://github.com/oss-invisible/playwright/issues/new/choose).
|
||||
- **Bug or idea?** Open an [issue](https://github.com/feder-cr/invisible_playwright/issues/new/choose).
|
||||
- **Security issue?** Do **not** open a public issue - see [SECURITY.md](SECURITY.md).
|
||||
- **The C++ patches** live in the companion repo [oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch) (branch `stealth/151`). Bugs in fingerprint spoofing usually belong there.
|
||||
- **The C++ patches** live in the companion repo [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch) (branch `stealth/151`). Bugs in fingerprint spoofing usually belong there.
|
||||
|
||||
## Scope
|
||||
|
||||
@@ -16,7 +16,7 @@ This repository ships the **Python wrapper** (`invisible_playwright`) around a p
|
||||
- The CLI (`invisible-playwright fetch`, `invisible-playwright version`)
|
||||
- Tests, docs, examples, packaging
|
||||
|
||||
The fingerprint, the engine download and the browser protocol client are shared by every wrapper and live in [invisible_core](https://github.com/oss-invisible/core).
|
||||
The fingerprint, the engine download and the browser protocol client are shared by every wrapper and live in [invisible_core](https://github.com/feder-cr/invisible_core).
|
||||
|
||||
Out of scope (belongs in `firefox_antidetect_patch`):
|
||||
|
||||
@@ -30,8 +30,8 @@ To *use* the package you do not need any of this: see [Install](README.md#instal
|
||||
The steps below are for working on the code, with [uv](https://docs.astral.sh/uv/).
|
||||
|
||||
```bash
|
||||
git clone https://github.com/oss-invisible/playwright.git
|
||||
cd playwright
|
||||
git clone https://github.com/feder-cr/invisible_playwright.git
|
||||
cd invisible_playwright
|
||||
uv venv
|
||||
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
||||
uv pip install -e ".[dev]"
|
||||
@@ -66,9 +66,9 @@ CI must be green before merge.
|
||||
|
||||
Before opening, please:
|
||||
|
||||
- Search [existing issues](https://github.com/oss-invisible/playwright/issues) - the bug may already be tracked.
|
||||
- Search [existing issues](https://github.com/feder-cr/invisible_playwright/issues) - the bug may already be tracked.
|
||||
- Reproduce on the **latest release** if possible.
|
||||
- Confirm the issue is in the Python wrapper, not the patched Firefox itself. If a fingerprint is leaking or a detector flags the browser, open the issue at `oss-invisible/firefox_antidetect_patch` instead.
|
||||
- Confirm the issue is in the Python wrapper, not the patched Firefox itself. If a fingerprint is leaking or a detector flags the browser, open the issue at `feder-cr/firefox_antidetect_patch` instead.
|
||||
|
||||
Include:
|
||||
|
||||
|
||||
-9441
File diff suppressed because it is too large.
Load diff
@@ -1,27 +1,17 @@
|
||||
<div align="center">
|
||||
<picture>
|
||||
<source media="(max-width: 374px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-small-dark.gif">
|
||||
<source media="(max-width: 374px)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-small-light.gif">
|
||||
<source media="(max-width: 1239px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-phone-dark.gif">
|
||||
<source media="(max-width: 1239px)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-phone-light.gif">
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-dark.gif">
|
||||
<img alt="invisible_playwright, Playwright on an anti-detect Firefox. An animation: the two-line switch from Playwright, the fingerprint set inside the engine, a mouse that moves like a hand, and the bot tests it passes." src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/banner-light.gif" width="100%">
|
||||
<source media="(max-width: 374px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-small-dark.gif">
|
||||
<source media="(max-width: 374px)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-small-light.gif">
|
||||
<source media="(max-width: 1239px) and (prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-phone-dark.gif">
|
||||
<source media="(max-width: 1239px)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-phone-light.gif">
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-dark.gif">
|
||||
<img alt="invisible_playwright, Playwright on an anti-detect Firefox. An animation: the two-line switch from Playwright, the fingerprint set inside the engine, a mouse that moves like a hand, and the bot tests it passes." src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-light.gif" width="100%">
|
||||
</picture>
|
||||
<p align="center">
|
||||
<a href="https://github.com/oss-invisible/playwright/blob/badges/counters/launches_daily.csv"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Foss-invisible%2Fplaywright%2Fbadges%2Fdocs%2Fbadges%2Flaunches.json&style=for-the-badge" alt="browser launches"></a>
|
||||
<a href="https://github.com/oss-invisible/firefox_antidetect_patch/releases"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Foss-invisible%2Fplaywright%2Fbadges%2Fdocs%2Fbadges%2Fdownloads.json&style=for-the-badge" alt="engine downloads"></a>
|
||||
<a href="https://github.com/oss-invisible/playwright/stargazers"><img src="https://img.shields.io/github/stars/oss-invisible/playwright?style=for-the-badge&logo=github&color=e8a317" alt="GitHub stars"></a>
|
||||
</p>
|
||||
<h3 align="center">Playwright gets caught by anti-bots and captchas.<br>
|
||||
This one runs on an anti-detect Firefox with an undetected fingerprint, compatible with your existing Playwright code.</h3>
|
||||
</div>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://decodo.com/deals/residential-offer?utm_medium=affiliate&utm_source=Federico+Elia&promoter_id=15854270&fpr=7859773"><img alt="Decodo residential proxies, free trial (sponsored)" src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/decodo-residential-proxies-trial.png" width="560"></a><br>
|
||||
<sub>Sponsored</sub>
|
||||
</p>
|
||||
|
||||

|
||||

|
||||
|
||||
## How it works
|
||||
|
||||
@@ -135,50 +125,6 @@ with InvisiblePlaywright(proxy=proxy) as browser:
|
||||
|
||||
Schemes supported: `socks5`, `socks4`, `http`, `https`. DNS is routed through the proxy by default, no local leak.
|
||||
|
||||
### Serving one browser to many clients
|
||||
|
||||
`launch_server()` serves one browser on a WebSocket to any Playwright client. Install the
|
||||
extra that carries the WebSocket library with `uv add "invisible-playwright[remote]"`.
|
||||
|
||||
```python
|
||||
# server.py
|
||||
from invisible_playwright import launch_server
|
||||
|
||||
with launch_server(seed=42, headless=True) as server:
|
||||
print(server.ws_endpoint) # ws://127.0.0.1:<port>/<secret>
|
||||
input("serving, press Enter to stop")
|
||||
```
|
||||
|
||||
```python
|
||||
# client.py: any Playwright client; this one is Playwright for Python (uv add playwright)
|
||||
import sys
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
with sync_playwright() as p:
|
||||
browser = p.firefox.connect(sys.argv[1]) # the address the server printed
|
||||
page = browser.new_page()
|
||||
page.goto("https://example.com")
|
||||
print(page.title())
|
||||
browser.close() # ends this client; the server's browser keeps running
|
||||
```
|
||||
|
||||
The server listens on `127.0.0.1` with a random secret path; `host=`, `port=` and `path=` choose
|
||||
another address. A client in another language (Node, Java, .NET, Go) connects to the same
|
||||
address with the `connect` call of its own Playwright. The browser belongs to the server and
|
||||
ends with `server.close()` (or with the `with` block).
|
||||
|
||||
On Linux, set `MALLOC_ARENA_MAX=2` in the environment of the process that runs it (glibc keeps a memory
|
||||
arena per thread otherwise); the server already hands freed memory back with `malloc_trim`
|
||||
(`INVPW_MALLOC_TRIM=0` turns that off).
|
||||
|
||||
The server keeps its protocol objects in a registry and, like Playwright's own server,
|
||||
collects the oldest ones when a type grows past a limit (`__dispose__` with reason `gc`).
|
||||
Its limits are Playwright's, except `Request`, `Response` and `Route`, which are 2000
|
||||
instead of 10000, and nothing younger than 10 seconds is ever collected. A client that
|
||||
keeps more than 2000 requests or responses in hand for longer than that gets "Target
|
||||
closed" on the oldest ones; one that uses them inside its callback is not affected. Set
|
||||
`INVPW_GC_LIMITS="Request=10000,Response=10000,Route=10000"` to get Playwright's numbers.
|
||||
|
||||
### Timezone
|
||||
|
||||
The browser timezone follows `timezone=`:
|
||||
@@ -219,11 +165,6 @@ not carry raises, and the error lists the ones it does.
|
||||
|
||||
Full list of pinnable keys, how pinning interacts with the Bayesian sampler, and common patterns are in **[docs/pinning.md](docs/pinning.md)**.
|
||||
|
||||
|
||||
### Launch counter
|
||||
|
||||
The engine counts launches with an anonymous GET to the `usage-counter` release of the engine's repository (`oss-invisible/firefox_antidetect_patch`) on GitHub. This package's launcher and server refuse the two prefs that govern it, `invisible_firefox.usage_ping.enabled` and `invisible_firefox.usage_ping.url`, in `extra_prefs`.
|
||||
|
||||
---
|
||||
|
||||
## CLI
|
||||
@@ -243,15 +184,15 @@ invisible-playwright version # wrapper, core and engine versions, and where the
|
||||
**If you would rather prompt than script.** This page is the engine, as a Python
|
||||
library. Two ways to use it without writing code, both one line: from an MCP client
|
||||
you already have (Claude Code, Claude Desktop, Cursor),
|
||||
`claude mcp add stealth -- uvx invisible-playwright-mcp`, see
|
||||
[the MCP server page](https://github.com/oss-invisible/playwright_mcp/wiki/mcp-server); or with an
|
||||
`claude mcp add stealth -- uvx aihawk`, see
|
||||
[the MCP server page](https://github.com/feder-cr/AIHawk/wiki/mcp-server); or with an
|
||||
interface and a model included, needing only an OpenRouter key,
|
||||
`uvx invisible-playwright-mcp ui --openrouter-key sk-or-...`, see
|
||||
[invisible_playwright_mcp](https://github.com/oss-invisible/playwright_mcp). Same engine underneath, and the second
|
||||
`uvx aihawk ui --openrouter-key sk-or-...`, see
|
||||
[AIHawk](https://github.com/feder-cr/AIHawk). Same engine underneath, and the second
|
||||
is a client of the first.
|
||||
|
||||
All of it reads better, and is searchable, in
|
||||
**[the wiki](https://github.com/oss-invisible/playwright/wiki)**,
|
||||
**[the wiki](https://github.com/feder-cr/invisible_playwright/wiki)**,
|
||||
organised into four sections instead of one flat list:
|
||||
|
||||
- **[Documentation](docs/documentation.md)** -
|
||||
@@ -262,7 +203,7 @@ organised into four sections instead of one flat list:
|
||||
audio, network and WebRTC, the automation layer, AI agents, the detectors themselves
|
||||
explained from source, and testing.
|
||||
- **[Comparisons](docs/comparisons.md)** -
|
||||
against Patchright, nodriver and playwright-stealth, and the case for
|
||||
against Camoufox, Patchright, nodriver and playwright-stealth, and the case for
|
||||
Firefox over Chromium generally.
|
||||
- **[Integrations](docs/integrations/)** -
|
||||
Scrapy, Crawlee, Robot Framework, CodeceptJS, test runners, Playwright MCP, and the
|
||||
@@ -289,10 +230,10 @@ read from its own documentation or from confirmed reverse engineering:
|
||||
**The other pieces of this one.** The engine is the middle of three, and the
|
||||
two around it are how most people reach it:
|
||||
|
||||
- **[invisible_core](https://github.com/oss-invisible/core)** - seed to
|
||||
- **[invisible_core](https://github.com/feder-cr/invisible_core)** - seed to
|
||||
fingerprint to preferences, plus proxy and geolocation. This package pins it.
|
||||
- **[invisible_playwright_mcp](https://github.com/oss-invisible/playwright_mcp)** - this engine as an MCP
|
||||
server (`uvx invisible-playwright-mcp`, for any client that brings its own
|
||||
- **[AIHawk](https://github.com/feder-cr/AIHawk)** - this engine as an MCP
|
||||
server (`uvx aihawk`, for any client that brings its own
|
||||
model) and, in the same package, an interface with a model included, from
|
||||
one command. The interface is a client of the server, with no private path
|
||||
to the browser.
|
||||
@@ -305,7 +246,7 @@ covers the frameworks that pick Chromium over CDP for you.
|
||||
|
||||
**On the Firefox side**
|
||||
|
||||
- **Other patched Firefox builds** - some patch C++ too, with a wider surface and a fingerprint database instead of one derived from a seed. [How the stealth levels differ](docs/playwright-stealth-levels.md).
|
||||
- **[Camoufox](https://github.com/daijro/camoufox)** - patches C++ too, wider surface, ships a fingerprint database instead of deriving one from a seed. [Comparison](docs/vs-camoufox.md).
|
||||
- **[LibreWolf](https://librewolf.net)** - a privacy-defaults Firefox to browse with, not to automate.
|
||||
- **[arkenfox/user.js](https://github.com/arkenfox/user.js)** - hardening through preferences. Where a preference is enough, use it.
|
||||
|
||||
@@ -329,7 +270,7 @@ Two rules hold across everything below. Every value is decided **before a page c
|
||||
ask**, inside the browser, so there is no JavaScript shim to find. And every value
|
||||
comes from **one profile**, so no two surfaces contradict each other, which is how a
|
||||
spoofed browser is usually caught. Source:
|
||||
[oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch).
|
||||
[feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch).
|
||||
|
||||
**Identity**
|
||||
- `navigator`, the user agent and the client hints are derived together, so they cannot disagree: [does Playwright set navigator.webdriver](docs/does-playwright-set-navigator-webdriver.md), [client hints and Sec-Fetch](docs/client-hints-sec-fetch.md).
|
||||
@@ -348,7 +289,7 @@ spoofed browser is usually caught. Source:
|
||||
- The codec table is declared, so a Linux host does not answer a Windows question with Linux support: [codec fingerprinting](docs/codec-fingerprinting.md).
|
||||
|
||||
**Network**
|
||||
- Behind a proxy, WebRTC's UDP goes through the proxy when the proxy can carry it, so the server-reflexive candidate is the proxy's exit, and otherwise no datagram leaves the machine at all; candidates are real, never patched in the page: [WebRTC ICE candidate spoofing](docs/webrtc-ice-candidate-spoofing.md), [does the WebRTC IP match the proxy exit](docs/webrtc-ip-match-proxy-exit.md).
|
||||
- WebRTC offers one synthetic candidate carrying the proxy exit, instead of leaking the real address or offering none, which is itself a tell: [WebRTC ICE candidate spoofing](docs/webrtc-ice-candidate-spoofing.md), [does the WebRTC IP match the proxy exit](docs/webrtc-ip-match-proxy-exit.md).
|
||||
- DNS resolves through the proxy, including when the proxy is not in the preferences: [does a proxy leak DNS](docs/does-a-proxy-leak-dns-doh-explained.md), [how to check for a proxy IP leak](docs/how-to-check-proxy-ip-leak.md).
|
||||
- The timezone comes from the egress IP, resolved offline, so it matches the exit: [timezone and proxy mismatch](docs/timezone-proxy-mismatch.md), [offline GeoIP timezone](docs/offline-geoip-timezone-proxy.md).
|
||||
|
||||
@@ -362,7 +303,7 @@ spoofed browser is usually caught. Source:
|
||||
|
||||
## License
|
||||
|
||||
MIT - see [LICENSE](https://github.com/oss-invisible/playwright/blob/main/LICENSE). The patched Firefox binary is distributed under the MPL-2.0 (Firefox upstream license). The C++ patches against mozilla-central that produce that binary are at [oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch).
|
||||
MIT - see [LICENSE](https://github.com/feder-cr/invisible_playwright/blob/main/LICENSE). The patched Firefox binary is distributed under the MPL-2.0 (Firefox upstream license). The C++ patches against mozilla-central that produce that binary are at [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch).
|
||||
|
||||
---
|
||||
|
||||
@@ -374,12 +315,14 @@ This project is for educational purposes only. It is provided as-is, with no war
|
||||
|
||||
<p align="center">
|
||||
Built by <a href="https://it.linkedin.com/in/federico-elia-5199951b6">Federico Elia</a>
|
||||
<a href="https://it.linkedin.com/in/federico-elia-5199951b6"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/linkedin.svg" alt="LinkedIn"></a>
|
||||
<a href="https://it.linkedin.com/in/federico-elia-5199951b6"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/linkedin.svg" alt="LinkedIn"></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/oss-invisible/playwright/actions/workflows/tests.yml"><img src="https://github.com/oss-invisible/playwright/actions/workflows/tests.yml/badge.svg" alt="tests"></a>
|
||||
<a href="https://github.com/oss-invisible/playwright/blob/main/LICENSE"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/license.svg" alt="License: MIT"></a>
|
||||
<a href="https://www.python.org/downloads/"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/python.svg" alt="Python 3.11+"></a>
|
||||
<a href="https://github.com/oss-invisible/firefox_antidetect_patch/releases"><img src="https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/badges/firefox.svg" alt="Firefox 159.0"></a>
|
||||
<a href="https://github.com/feder-cr/invisible_playwright/actions/workflows/tests.yml"><img src="https://github.com/feder-cr/invisible_playwright/actions/workflows/tests.yml/badge.svg" alt="tests"></a>
|
||||
<a href="https://github.com/feder-cr/invisible_playwright/blob/main/LICENSE"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/license.svg" alt="License: MIT"></a>
|
||||
<a href="https://www.python.org/downloads/"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/python.svg" alt="Python 3.11+"></a>
|
||||
<a href="https://github.com/feder-cr/firefox_antidetect_patch/releases"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/firefox.svg" alt="Firefox 159.0"></a>
|
||||
<img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/badges/docs/badges/launches.svg" alt="browser launches">
|
||||
<a href="https://github.com/feder-cr/invisible_playwright/stargazers"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/badges/docs/badges/stars.svg" alt="GitHub stars"></a>
|
||||
</p>
|
||||
+1
-1
@@ -36,7 +36,7 @@ In scope:
|
||||
|
||||
Out of scope:
|
||||
|
||||
- Vulnerabilities in the patched Firefox source - report to [oss-invisible/firefox_antidetect_patch](https://github.com/oss-invisible/firefox_antidetect_patch/security/advisories/new)
|
||||
- Vulnerabilities in the patched Firefox source - report to [feder-cr/firefox_antidetect_patch](https://github.com/feder-cr/firefox_antidetect_patch/security/advisories/new)
|
||||
- Upstream Firefox / mozilla-central - report to Mozilla directly
|
||||
- Third-party dependencies - report to those projects
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"comment": "The GeoIP database every CI leg launches with (STEALTHFOX_GEOIP_MMDB): made by scripts/ci_lab_geoip.py, the same bytes on every run, no download and no licensed data. One record answers every public address that is not one of the lab's networks and not reserved (the runner's own egress address is not known in advance). To change it (a network, a field): change the table of the script and mmdb_sha256 here in one commit; `build` refuses to go on when they differ.",
|
||||
"generator": "scripts/ci_lab_geoip.py",
|
||||
"mmdb": "geoip-aio-all.mmdb",
|
||||
"mmdb_sha256": "d02825fd0336afa72ad7b7573769f1d9efddea447133f99ae3008c56d5308929",
|
||||
"mmdb_bytes": 2706
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
[
|
||||
{"id": "wrapper.e2e.udp", "giro": "G2", "os": ["linux", "windows"], "min_tests": 43, "exact": true, "tests": ["tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_webrtc_realness.py::test_the_gather_is_real_without_a_proxy", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_declared_host_network_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_with_coherent_udp_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all"], "marker": "e2e", "needs_root": false, "note": "Needs the candidate binary (STEALTHFOX_E2E_BINARY) and the engine that carries the UDP line. 57 = 1+7+6+1+21 from the five files + 21 from the 10 UDP-line tests of test_webrtc_realness.py (parametrized). The chain by name is here in its variant with the lab's exit on loopback (127.0.0.2) and the pref `media.peerconnection.ice.loopback`, on Linux and Windows: the exit of the lab is loopback, and a loopback mapped address is thrown away by nICEr unless the ICE context allows it. The variant without the pref (an exit that is not loopback) is the suite wrapper.e2e.udp.exit, Linux only; the address added to the interface of the Windows runner is work of the release after firefox-63. The preload_newtab test (2) is here: seen green on Linux as root (Docker) and on Windows 10 runs of 10 (windows-2022, round 5 engine); it reads the engine's own process log."},
|
||||
{"id": "wrapper.e2e.udp.exit", "giro": "G2", "os": ["linux"], "min_tests": 7, "exact": true, "tests": ["tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick", "tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Linux only, and not collected on Windows: the exit of the lab is a documentation address (198.51.100.9) added to lo with `ip addr add`, which needs root and iproute2; a mapped address in 127/8 would be thrown away by nICEr as bogus (stun_client_ctx.cpp nr_stun_transport_addr_check) and the pref that allows it is off in a product. The page reads a srflx equal to the gateway exit and the relay of the TURN server, the TURN name resolved by the DoH through the proxy, in the tick of 2 s. On the Windows runner of GitHub (administrator, the network of the runner) it could run too: not yet. A skipped test would turn the verdict red, hence a suite of its own. Its twin with the lab's exit on loopback and the pref stays in wrapper.e2e.udp on both systems, so that Windows keeps the walk of the chain by name.", "linux_only": "The lab's exit is a documentation address the host must hold besides its loopback (nICEr throws away a mapped address in 127/8). Linux holds it on lo as root; Windows takes no extra address on its loopback pseudo-interface, and adding it to the runner's adapter took the runner off the network (runs 43314251547 and 43334169682 died in the test step). A Windows twin waits for a way that leaves the runner's network alone."},
|
||||
{"id": "wrapper.e2e.udp.sandbox", "giro": "G2", "os": ["linux"], "min_tests": 13, "exact": true, "tests": ["tests/test_the_socket_process_is_sandboxed_e2e.py", "tests/test_webrtc_realness.py::test_the_gather_is_real_without_a_proxy", "tests/test_webrtc_realness.py::test_a_gateway_with_coherent_udp_gives_the_page_a_srflx_born_through_its_relay", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_a_gateway_without_udp_resolves_the_ice_name_then_ends_in_701"], "marker": "e2e", "needs_root": false, "note": "The browser WITH its sandbox, run by a normal user, as on any Linux that allows user namespaces. On the Ubuntu 24.04 runner AppArmor refuses them to a user, so every other non-root suite runs a browser WITHOUT the sandbox of its socket and content processes; the gate turns the restriction off for this leg (sysctl kernel.apparmor_restrict_unprivileged_userns=0) and the first test fails unless the socket and a tab process have a seccomp filter (Seccomp: 2). The three situations of the UDP line: A (a proxy that carries UDP: the srflx born through the relay), B (no proxy: the gather is real), C (a proxy with no UDP: the ICE server name goes by DoH through the proxy and the gather ends in 701). No root and no resolver trap needed.", "linux_only": "It reads the seccomp filter of the socket and tab processes in /proc. The Windows twin reads the sandbox token of the same processes (integrity level, restrictions) and needs a measurement of the retail Firefox's tokens first; until then Linux only."},
|
||||
{"id": "wrapper.e2e.web", "giro": "G2", "os": ["linux", "windows"], "min_tests": 27, "exact": true, "tests": ["tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_http3_through_the_proxy_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The networkidle e2e with routes and the HTTP/3 e2e, split from wrapper.e2e.udp (about 260 s of 500 on Linux; the whole suite did not fit the 15 minutes of Windows)."},
|
||||
{"id": "wrapper.e2e.doh", "giro": "G2", "os": ["linux", "windows"], "min_tests": 19, "exact": true, "tests": ["tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_ice_names_by_the_context_proxy_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Linux needs root: the resolver trap of the file (ResolverTrap) points /etc/resolv.conf at a counting resolver on port 53. Su Windows il resolver trap non gira: l'asserzione sul resolver di sistema è l'unica omessa. Run it without xdist (port 53 is one per host). On the Linux leg the gate exports INVPW_REQUIRE_TRAP=1: a trap that cannot run or bind port 53 is a failure, not a skipped assertion."},
|
||||
{"id": "wrapper.e2e.context.egress", "giro": "G2", "os": ["linux", "windows"], "min_tests": 14, "exact": true, "tests": ["tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Taken from the minimal-engine port (branch tests/minimal-port) unchanged but for the removed engine gate: 12 = 6 kinds of page work (hints, image/fetch/WebSocket/EventSource, WebRTC STUN and TURN-udp by name, geolocation, a service worker with push, a page still loading when its context closes) x 2 schemes (no proxy at launch and a gateway on the context; a launch gateway and a different one on the context), and 2 = the TURN server named over TCP in those two schemes. EXPECTED RED on the published firefox-63: the 2 TURN-by-name cases (the lookup of the TCP socket takes user context 0; fixed by commits ac0214bff4 and 058edd6cc6 of firefox-64). The 12 have not run on any engine yet. Like wrapper.e2e.doh: the Linux leg runs as root for the resolver trap (INVPW_REQUIRE_TRAP=1); on Windows the DoH log and the gateway's CONNECTs are the sink."},
|
||||
{"id": "wrapper.e2e.context.sink", "giro": "G2", "os": ["linux", "windows"], "min_tests": 36, "exact": true, "tests": ["tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The behavioural half of the class gate 'nothing of a context leaves but through its proxy', with a witness at an address of this host (no root, no address on lo) and the engine's own resolver log as the native-lookup sink. 35 = 31 + the 4 OCSP cases; the 31 are 19 probes (fetch, WebSocket, stun, turn over UDP, turn and turns over TCP, each by name, by IP and by a .local name, behind SOCKS5 and behind an HTTP proxy where the road differs) + 3 controls (the same probe by IP with no proxy IS heard by the witness) + 1 control of the native sink. + 4 PeerConnections built from a torn-down window (a detached iframe, a closed popup; behind SOCKS5 and behind HTTP; defect B3: EXPECTED RED on firefox-63, green on firefox-64) + 2 controls of them (the same PeerConnection from an attached iframe, green on both). + 2 cases of two contexts alive at once (each with its own proxy and DoH, a TURN server over TCP by a different name in each; behind SOCKS5 EXPECTED RED on firefox-63 like turn_tcp-name-socks5, behind HTTP green on both). EXPECTED RED on firefox-63: turn_tcp-name-socks5, turns_tcp-name-socks5 (user context 0, fixed in firefox-64) and the three .local cases fetch-local-socks5, stun-local-socks5, stun-local-http (audit B4, also red on firefox-64 until decided). The Linux leg runs as root so the resolver trap is a second sink. Windows reads the same engine log (its getaddrinfo lines are in the parent process file under the sandbox: run 43574494194), with the no-proxy native control as its positive control. THE OCSP CASES (4): a TLS page whose leaf, signed by a lab CA the engine trusts (put in the profile by the engine's xpcshell, no ignore_https_errors), names its OCSP responder by a NAME (ocsp-<nonce>.lab.test) and by an IP; a context behind the gateway loads it and the request must go through the gateway, never be looked up natively, in user context 0, or reach the responder (2 cases, EXPECTED RED on firefox-63, green on firefox-64); the same page in a context with no proxy IS asked of the responder (control); a page of an issuer the engine does not trust makes no OCSP request (negative control). THE CLOSED CONTEXT CASE (1, gated firefox-65): a beacon sent on pagehide as a proxied context closes, to a name never looked up, is resolved over the DoH through the context's gateway after the close; on firefox-64 it went to the machine's resolver every time (hunt 43733181674)."},
|
||||
{"id": "wrapper.e2e.realness", "giro": "G2", "os": ["linux", "windows"], "min_tests": 32, "exact": true, "tests": ["tests/test_realness_behind_a_declared_exit_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The realness check without a real proxy: six declared exits, the values a page reads, and the roads. Linux runs as root without xdist like the DoH suite (the resolver trap); on Windows the trap does not exist and the assertion on the system resolver is the only one omitted."},
|
||||
{"id": "wrapper.unit.udp", "giro": "G1", "os": ["linux", "windows"], "min_tests": 263, "exact": true, "tests": ["tests/test_doh_session_prefs_unit.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_the_doh_e2e_launch_on_a_virtual_display.py", "tests/test_the_egress_sink_helpers.py", "tests/test_the_exit_of_a_context_is_discovered_through_its_own_gateway.py", "tests/test_the_fake_doh_answers.py", "tests/test_the_fake_doh_delays_and_refuses.py", "tests/test_the_h3_line_helpers.py", "tests/test_the_host_address_helper.py", "tests/test_the_http_proxy_helper_asks_for_credentials.py", "tests/test_the_lab_ca_and_its_ocsp_leaf.py", "tests/test_the_leak_watcher_sees_a_direct_connection.py", "tests/test_the_network_declaration_reaches_the_engine.py", "tests/test_the_realness_helpers.py", "tests/test_the_resolver_trap_counts_its_own_users.py", "tests/test_the_resolver_trap_is_required_by_the_gate.py", "tests/test_the_server_says_nothing_about_the_launch_counter.py", "tests/test_the_udp_bench_survives_what_a_loaded_machine_does_to_it.py", "tests/test_the_udp_chain_helper.py", "tests/test_the_witness_hears_a_direct_send.py", "tests/test_the_witness_picks_a_port_both_sockets_bind.py"], "marker": "unit", "needs_root": false, "note": "The leak watcher file defines exactly one of its two resolver-trap tests per host (7 everywhere), so no test is skipped. `exact`: min_tests is raised by hand when a test is added. The sink of the egress gate (tests/test_the_egress_sink_helpers.py, 20): the engine's log (the same on Linux and Windows) and the witness read on known inputs, and a blind log that must raise, never answer 'nothing'. The lab CA of its OCSP case (tests/test_the_lab_ca_and_its_ocsp_leaf.py, 17; tests/test_the_fake_doh_answers.py +1, the DoH serving a lab-CA leaf): the leaf's AIA, trusted and untrusted issuers, the responder, the xpcshell step."},
|
||||
{"id": "wrapper.e2e.page", "giro": "G2", "os": ["linux", "windows"], "min_tests": 130, "exact": true, "tests": ["tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_popup_destinations_e2e.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py"], "marker": "e2e", "needs_root": false, "note": "130 = 126 + the 4 of test_a_drag_keeps_its_buttons_pressed_e2e.py (a drag reaches the page with the button it holds: event.buttons is 1 on every mousemove of a left drag, 2 on a right one, 0 after the release; with and without humanize). The 126 before it: 116 + the 9 of test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py (four browsers in one process, one closes: the loop is never seen inside a step of the close, the removal of the profile is held still and reached on a thread of the reaper while the close has returned, the other three keep answering; one control holds the loop on purpose, the other leaves it late in its selector and must not be charged). 116 = 100 + the 16 of test_a_page_that_moves_on_e2e.py (a navigation the page overtook with location.replace ends; the engine fix 860ef8a6d9 is proved by it; 2 of them the strict networkidle cases, a document still arriving that moves). 100 counted at the collection; was 96 = 10+32+16+34+4 before the popup tests of 6200bc2). A page is handed over when the engine says Page.ready; a popup reaches the client (link, noopener, window.open; own site and another; with and without a route; in-process and over launch_server) as Playwright's does; a superseded route. Needs the candidate binary, and the stock Playwright client of the dev extra."},
|
||||
{"id": "wrapper.unit.page", "giro": "G1", "os": ["linux", "windows"], "min_tests": 72, "exact": true, "tests": ["tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_page_number_follows_the_call.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_the_hand_over_of_a_popup_holds_under_concurrency.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py"], "marker": "unit", "needs_root": false, "note": "72 = 44 + 3+9+5+1+10 of the popup hand-over (24 counted at the collection before; was 20 = 3+8+1+8 before 6200bc2). The page dispatcher's wait for Page.ready and what it hands over; the drive gate goes through the core (the engine waits for the session's road)."},
|
||||
{"id": "wrapper.e2e.compositing", "giro": "G2", "os": ["linux", "windows"], "min_tests": 9, "exact": true, "tests": ["tests/test_software_compositing_is_declared_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The engine DECLARES software compositing on every machine (core: the compositing entries of zoom.stealth.gfx.feature_status carry the VM decision, and on Windows gfx.webrender.software=true, gfx.webrender.software.d3d11=false). 3 = (1) the compositor read from a privileged context is 'WebRender (Software)' on Windows and on Linux (windowUtils.layerManagerType of each window: Troubleshoot.snapshot().graphics throws on this engine, `ext is null`, so it is not the route); (2) the GPU process uses under 1.5 s of CPU on the fixed 10-scene loop of one browser (Windows runner: 0.32 s declared, 2.7-4.2 s not, runs 43652292533 and 43642744101; on Linux it is held to the bound if a GPU process exists); (3) the 86 keys of the page-bytes probe plus the canvas 2D scenes (drawImage scaled with smoothing off/low/medium/high, text with linear/radial/conic gradients) equal tests/data/page_bytes_<os>.json, PNGs on decoded pixels. EXPECTED RED on the core 64.71.0 (tests 1 and 2 on Windows). The reference of Windows holds the 75 stable keys and 6 of the 11 PNG keys of run 43652292533; the five other PNG keys and the new canvas keys, and all of Linux, are written from the first run on the engine of the reference (the failure of test 3 prints RECORD-BEGIN ... RECORD-END with the entries to merge): a reference that is not complete is red, never skipped. 9 = those 3 + the 6 families of tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py (from firefox-66, engine_at_least): a screenshot draws the text of Arial, Times New Roman, Consolas and Segoe UI, with accents, the typographic apostrophe, the euro sign, Chinese, Arabic and Russian, and of MS PGothic (face 2 of msgothic5_32.ttc: Japanese and Latin) and NSimSun (face 1 of simsun.ttc: Chinese), two faces that are not the first of their collection, with the same bytes as the content process drew them in a canvas (an SVG image with a foreignObject of the same markup), cut from the same page.screenshot, on both systems and with no threshold. EXPECTED RED on every engine that rebuilds the text in the parent with another font than the bundle (Linux: fontconfig answers DejaVu Sans), and skipped, hence red here, on an engine older than firefox-66. It saves the screenshot, the two boxes and a result.json under RUNNER_TEMP/invpw-evidence."},
|
||||
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_fakeweb_p2_e2e.py", "tests/test_fakeweb_p4_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The fake web, offline: our browser on the hard pages (profile P2: a reused routed page reaches networkidle every time, also under a load of three other browsers; the other site is another process) and on the 17-step journey of a person (profile P4), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 4 = 3 + 1. Stock itself is held to that declaration, and compared with ours step by step, by scripts/run_fakeweb.py in .github/workflows/fakeweb.yml. Needs the candidate binary (STEALTHFOX_E2E_BINARY)."},
|
||||
{"id": "wrapper.e2e.fontconfig", "giro": "G2", "os": ["linux"], "min_tests": 2, "exact": true, "tests": ["tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "Fontconfig exists only on Linux: the parent of the engine shows <GRE>/fonts to it (FcConfigAppFontAddDir) to rebuild a font from a path and a face index. On Windows DirectWrite opens the file from its path, with no folder to scan and no cache to read, so this test has no Windows counterpart.", "note": "2 = (1) the stand-in that runs the engine under strace stays in the engine's place, as the core launches it (the leader of a process group of its own): a fake engine with a child, no browser; the process the launcher holds lives as long as the fake engine, and the group killed holds strace and the child (the stand-in that exec'd setsid forked and exited 0 at once: candidate 44161687675); (2) the warm launch of the parent reads the bundle from fontconfig's cache and does not scan it again (from firefox-66, engine_at_least). Two launches under strace with the same XDG_CACHE_HOME of the test, the first cold and the second warm: the cold parent opens every font file of <GRE>/fonts (the folder as the disk lists it) before any page and fontconfig writes its cache; the warm parent does not open every one of them, and it opens a *.cache-* file of fontconfig (a few files are opened to be used, so the verdict asks about the whole folder, as a scan does). Scan and drawing are told apart by position: only what the parent opens before the first page counts (the opens that draw are written as after_startup). Evidence in RUNNER_TEMP/invpw-evidence/fontconfig-cache: the interval and the number of opens of the bundle, the names of the files of the bundle each launch opened before the first page, the size of the cache file, the VmRSS of the parent after about:blank and after a page with every family, and a third launch with gfx.bundled-fonts.activate=0 (the behaviour before), which is evidence only. Needs strace on the runner: without it both are red, not skipped. No threshold."},
|
||||
{"id": "wrapper.unit.compositing", "giro": "G1", "os": ["linux", "windows"], "min_tests": 30, "exact": true, "tests": ["tests/test_the_page_bytes_reference_compares_decoded_pixels.py"], "marker": "unit", "needs_root": false, "note": "The helpers of wrapper.e2e.compositing on known inputs, no browser: the PNG compared on decoded pixels (another deBG chunk and compression are the same, one pixel is not, every scanline filter), the comparison with a reference (changed, missing and extra keys named, the entry to record), the type of an engine process, an engine process known by its executable and not by the name it gives itself (Linux), and the CPU of a window, and the shape of the committed Windows reference, and the box cut out of a screenshot (its pixels, a box outside the picture refused, written as a PNG and read back, two boxes told apart by a pixel that is named, the pixels that are not grey)."},
|
||||
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 2260, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.pLine truncated
|
||||
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 2261, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_are_valid.py", "tests/test_pinning_doc.py", "tests/test_pointer_server.py", "tests/test_popup_adoption_unit.py", "tests/test_prefs_composition_arm.py", "tests/test_prefs_compositioLine truncated
|
||||
{"id": "wrapper.e2e.securitystate", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_security_state_engine_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The security state the core declares, against the engine: the engine launched directly in its generate mode makes what it is given (the contract's result, security_state/ with the bytes of the full filter and of the delta, the core's own validation of it); a normal launch declares no pref of the mode and re-imports nothing; a certificate that Mozilla's CRLite test data say is revoked in a delta is refused at the first navigation (SEC_ERROR_REVOKED_CERTIFICATE) while a valid one loads, and the revoked one loads when the ready directory has no data; a ready directory with no or an empty security_state/ starts. Certificates made on the run (a fresh root trusted in cert9.db by the engine's own xpcshell, Mozilla's default test key as the key of CN=int), servers on loopback, no network. Red on firefox-67 (no generate mode)."},
|
||||
{"id": "wrapper.e2e.suite.linux.1", "giro": "G2", "os": ["linux"], "min_tests": 376, "exact": true, "tests": ["tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_declared_host_network_e2e.py", "tests/test_detectors_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_element_screenshot_e2e.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_display_linux.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_ignore_https_errors_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_navigation_response.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_oop_frame_element.py", "tests/test_oop_frame_geometry.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_screencast.py", "tests/test_screencast_stop_e2e.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_offline_e2e.py", "tests/test_shadow_trusted_input.py", "tests/test_strict_and_force.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_a_launch_scans_no_process_of_the_machine", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_after_close_no_process_of_the_session_is_left", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_ua_widget_not_selectable.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_webgl_draws_on_the_engine_s_own_gl_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own"], "marker": "e2e", "needs_root": false, "windows_twin"Line truncated
|
||||
{"id": "wrapper.e2e.suite.linux.2", "giro": "G2", "os": ["linux"], "min_tests": 411, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_drag_motion.py", "tests/test_expose_binding_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_new_page_defaults.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_e2e.py", "tests/test_route_post_data_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screenshot_of_text_returns_linux_e2e.py", "tests/test_scroll_into_view.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_service_workers_blocked.py", "tests/test_set_input_files_payloads.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 564 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapLine truncated
|
||||
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 239, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.1", "giro": "G2", "os": ["windows"], "min_tests": 260, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_detectors_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_ignore_https_errors_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_transport.py", "tests/test_keyboard_rhythm.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_workers_blocked.py", "tests/test_strict_and_force.py", "tests/test_the_engine_is_born_in_the_job_e2e.py", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_ua_widget_not_selectable.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 1 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.2", "giro": "G2", "os": ["windows"], "min_tests": 218, "exact": true, "tests": ["tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_declared_host_network_e2e.py", "tests/test_expose_binding_e2e.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_desktop.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_oop_frame_geometry.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_e2e.py", "tests/test_screencast_stop_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.3", "giro": "G2", "os": ["windows"], "min_tests": 273, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_drag_motion.py", "tests/test_element_screenshot_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_first_launch_from_a_new_path.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_post_data_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screencast.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_input_files_payloads.py", "tests/test_set_offline_e2e.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_external_texture_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 3 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.4", "giro": "G2", "os": ["windows"], "min_tests": 270, "exact": true, "tests": ["tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_oop_frame_element.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_scroll_into_view.py", "tests/test_shadow_trusted_input.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 4 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.control_a", "giro": "G2", "os": ["windows"], "min_tests": 20, "exact": true, "tests": ["tests/test_control_a_selects_all_in_a_field_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "The keyboard shortcut Control+A selects all in a field (5 ways to press it x an input and a textarea, in-process and served to the stock client), alone on its own Windows runner (windows-latest), as e2e.yml runs it on the published engine: the Windows keyboard of a real user is what it needs. The same file is in one of wrapper.e2e.suite.windows.1..4 and in wrapper.e2e.suite.linux.1."}
|
||||
]
|
||||
@@ -1,12 +0,0 @@
|
||||
[
|
||||
{"file": "tests/test_css_calc_is_windows_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 1, "wrapper.unit.all.windows": 1}},
|
||||
{"file": "tests/test_math_sin_cos_tan_are_windows_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 1, "wrapper.unit.all.windows": 1}},
|
||||
{"file": "tests/test_system_fonts_and_colors_are_windows_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 1, "wrapper.unit.all.windows": 1}},
|
||||
{"file": "tests/test_webgl_dot_has_the_declared_gpu_s_bits_e2e.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}},
|
||||
{"file": "tests/unit/test_canvas_icc_refs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 9, "wrapper.unit.all.windows": 9}},
|
||||
{"file": "tests/unit/test_canvas_text_colors_refs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 8, "wrapper.unit.all.windows": 8}},
|
||||
{"file": "tests/unit/test_canvas_text_refs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 7, "wrapper.unit.all.windows": 7}},
|
||||
{"file": "tests/unit/test_compare_canvas_text_runs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}},
|
||||
{"file": "tests/unit/test_fontconfig_criterion.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 5, "wrapper.unit.all.windows": 5}},
|
||||
{"file": "tests/unit/test_theme_refusal_drop.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}}
|
||||
]
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"comment": "The ready security state every job of ci.yml launches with (STEALTHFOX_SECURITY_STATE, set at the top of the workflow): a result with NO data (format 1, ok, no CRLite hashes, zero timestamps, no engine) and no security_state/ directory, so a launch copies nothing and no job asks Mozilla for anything or runs the engine's generate mode (the core neither downloads nor generates when the variable is set). To change it, change ci/security-state/securitystate-result.json and sha256 here in one commit; tests/test_ci_sets_the_security_state.py fails when they differ.",
|
||||
"file": "ci/security-state/securitystate-result.json",
|
||||
"sha256": "15bed64b8d0d0db9e6e5cceeec231bbca5300cdc6715280a647895dd6f6f14a4",
|
||||
"bytes": 260
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{"format":1,"ok":true,"error":null,"engine":{"version":"","build_id":""},"collections":{"intermediates":{"collection_timestamp":0},"onecrl":{"collection_timestamp":0},"cert-revocations":{"collection_timestamp":0,"channel":"default"}},"crlite_filter_hashes":[]}
|
||||
+1
-1
@@ -9,7 +9,7 @@ sitemap: false
|
||||
# docs/ source folder
|
||||
|
||||
This folder is the source the wiki is rendered from. Read it with search and
|
||||
navigation in **[the wiki](https://github.com/oss-invisible/playwright/wiki)**.
|
||||
navigation in **[the wiki](https://github.com/feder-cr/invisible_playwright/wiki)**.
|
||||
|
||||
`index.md` is what the site root actually serves. This file exists so the folder
|
||||
still shows something sensible when browsed directly on github.com.
|
||||
@@ -27,9 +27,8 @@ matter, and prints something like "Local IP" and "Public IP" with a green or red
|
||||
badge. That summary hides exactly the distinctions you need while debugging, because
|
||||
three very different underlying states can round to the same badge:
|
||||
|
||||
- A host candidate carrying a raw `192.168.x.x` private address. A stock browser hides
|
||||
that address by default, so this is *worse* than stock. (In this product it is the
|
||||
home network the session declares, never an address read from the machine.)
|
||||
- A host candidate carrying a raw `192.168.x.x` LAN address. This is a real leak, and
|
||||
it is *worse* than a stock browser, which hides that address by default.
|
||||
- A host candidate carrying an obfuscated `<uuid>.local` name. This is the correct
|
||||
state, and it is what a stock Firefox produces.
|
||||
- A server-reflexive (`srflx`) candidate whose address is your proxy egress, with a
|
||||
@@ -54,8 +53,7 @@ gets a collapsible block; expand it and the two things worth reading are:
|
||||
address, and the timeline is the only view that shows arrival time.
|
||||
|
||||
You are reading for three things: that a host candidate exists and is masked, that a
|
||||
server-reflexive candidate points at the exit you expect (or is absent for a reason you
|
||||
can name, see [the four proxy cases](#reading-a-proxied-session-the-four-cases)), and that the
|
||||
server-reflexive candidate exists and points at the exit you expect, and that the
|
||||
timeline looks like a browser talking to a
|
||||
[STUN](https://datatracker.ietf.org/doc/html/rfc8489) server rather than fabricating an
|
||||
answer instantly.
|
||||
@@ -68,7 +66,7 @@ list; the lines underneath show the exact shape of each one.
|
||||
|
||||
| State | Candidate line | Leak-site badge | Verdict |
|
||||
|---|---|---|---|
|
||||
| Leak | `typ host` with a raw `192.168.x.x` private address | "Local IP" / red warning | Visible, worse than stock |
|
||||
| Leak | `typ host` with a raw `192.168.x.x` LAN address | "Local IP" / red warning | Real leak, worse than stock |
|
||||
| Correct host | `typ host` with a `<uuid>.local` name | "No Leak", local IP shown as "-" | Shipped, correct |
|
||||
| Correct srflx | `typ srflx` with your proxy egress address | contributes to "No Leak" | Correct exit |
|
||||
| Suppressed | nothing gathered at all | "No Leak" | Detectable tell, a FAIL |
|
||||
@@ -76,18 +74,16 @@ list; the lines underneath show the exact shape of each one.
|
||||
Here is what each state looks like as a candidate line, so you can recognise it on
|
||||
sight in the table.
|
||||
|
||||
**Leak (worst case).** The host candidate carries a raw private address:
|
||||
**Leak (worst case).** The host candidate carries the machine's real LAN address:
|
||||
|
||||
```text
|
||||
candidate:0 1 UDP 2122252543 192.168.1.24 51894 typ host
|
||||
```
|
||||
|
||||
If you see a private `192.168.x.x`, `10.x.x.x` or `172.16-31.x.x` address on a `typ
|
||||
host` line, WebRTC is handing out a private network address. A stock browser does
|
||||
not do this; it masks it. Seeing it means a masking setting is off (for example
|
||||
`media.peerconnection.ice.obfuscate_host_addresses` set to `false`), and you are more
|
||||
identifiable than a default install. The address is the home network the session
|
||||
declares, not one read from the machine.
|
||||
host` line, WebRTC is handing out your internal network address. A stock browser does
|
||||
not do this; it masks it. Seeing it means a masking setting is off, and you are now
|
||||
more identifiable than a default install.
|
||||
|
||||
**Correct host.** The same candidate with the address replaced by a per-session
|
||||
[mDNS](https://datatracker.ietf.org/doc/html/rfc6762) name:
|
||||
@@ -101,91 +97,39 @@ as "No Leak" with the local IP shown as "-". This is the shipped state here: the
|
||||
patched engine keeps host-address obfuscation on, so the host line is a `.local` name
|
||||
and never a raw LAN IP.
|
||||
|
||||
**Correct srflx.** Behind a SOCKS5 proxy whose UDP relay works, the server-reflexive
|
||||
candidate carries the proxy exit and a NAT port:
|
||||
**Correct srflx.** The server-reflexive candidate carries your public exit and a NAT
|
||||
port:
|
||||
|
||||
```text
|
||||
candidate:1 1 UDP 1686052863 203.0.113.45 49731 typ srflx raddr 0.0.0.0 rport 0
|
||||
```
|
||||
|
||||
Behind a proxy, that address must be the proxy egress, not your real public IP and not
|
||||
a private address. The candidate comes out of Firefox's own ICE code from a real STUN
|
||||
reply, so the [port, priority and foundation, not just the address](webrtc-ice-candidate-spoofing.md),
|
||||
are the ones a real `srflx` carries. If the proxy cannot carry the STUN request there
|
||||
is no `srflx` at all; see the four cases below.
|
||||
a private address. The port should sit in the ephemeral NAT range and the priority
|
||||
should look like a real `srflx` priority rather than a round, hand-picked number.
|
||||
Getting the [priority and foundation right, not just the address](webrtc-ice-candidate-spoofing.md),
|
||||
is what separates a candidate that survives inspection from one that only survives a
|
||||
leak badge.
|
||||
|
||||
## Pairing it with about:config
|
||||
|
||||
`about:webrtc` shows you the result; `about:config` shows you the switches that
|
||||
produced it. Open a second tab on `about:config` and filter on `media.peerconnection`.
|
||||
produced it. Open a second tab on `about:config` and filter on two prefixes.
|
||||
|
||||
- **`media.peerconnection.*`** are the standard Firefox WebRTC prefs. The one that
|
||||
governs the host state above is `media.peerconnection.ice.obfuscate_host_addresses`:
|
||||
`true` gives you the `.local` name, `false` gives you the raw private address. If
|
||||
`true` gives you the `.local` name, `false` gives you the raw LAN IP. If
|
||||
`about:webrtc` shows a `192.168.x.x` host, this is the first pref to check.
|
||||
|
||||
There is no pref that holds the proxy exit or an IPv6 switch to read here. What the
|
||||
session did with the proxy shows in the candidate list and in the `icecandidateerror`
|
||||
events, which the next section teaches you to read.
|
||||
- **`zoom.stealth.webrtc.*`** is where the product exposes its own WebRTC controls,
|
||||
including the egress the synthetic `srflx` is built from and the IPv6 host
|
||||
suppression. These are set per session by the launcher from the proxy you pass, so
|
||||
in normal use you read them here to confirm the wrapper resolved the right exit,
|
||||
rather than editing them by hand.
|
||||
|
||||
The workflow is: change one pref, reload the page that builds the connection, refresh
|
||||
`about:webrtc`, and read the candidate that changed. One switch at a time keeps cause
|
||||
and effect legible, which is the same discipline that makes a bisect a bisect.
|
||||
|
||||
## Reading a proxied session: the four cases
|
||||
|
||||
With a proxy set, no datagram ever leaves directly from the machine, and there is no
|
||||
fallback to a direct send. What you see depends on whether the proxy can carry the
|
||||
STUN request. Candidates always come from Firefox's own ICE code and from real STUN
|
||||
replies; none is invented and no address is rewritten.
|
||||
|
||||
| Session | The STUN datagram goes | `srflx` | `host` | `icecandidateerror` |
|
||||
|---|---|---|---|---|
|
||||
| SOCKS5 proxy whose UDP relay works and exits from the same address as its TCP | through the proxy's UDP relay | present, equal to the proxy exit | mDNS names, UDP and TCP | none |
|
||||
| SOCKS5 proxy that cannot carry UDP, or SOCKS4 | nowhere | absent | mDNS names, UDP and TCP | one `701` for the STUN request, after about eleven seconds, when gathering ends |
|
||||
| HTTP or HTTPS proxy | nowhere (CONNECT carries no UDP) | absent | mDNS names, UDP and TCP | same as the row above |
|
||||
| No proxy | directly from the machine, as in any browser | present when the STUN server answers: the line's real public address | mDNS names | none |
|
||||
|
||||
How to recognise each one from `about:webrtc` or from the `icecandidate` and
|
||||
`icecandidateerror` events of your own `RTCPeerConnection`:
|
||||
|
||||
- **The relay carried it.** A `typ srflx` line whose address equals the address the
|
||||
proxy exits from, and no error event. Behind a SOCKS5 proxy this is the only shape
|
||||
in which a `srflx` appears.
|
||||
- **The proxy does not carry coherent UDP.** Host candidates only, then a single `701`
|
||||
`icecandidateerror` for the STUN request about eleven seconds after the offer, at the
|
||||
moment gathering finishes, and no `srflx`. This covers a SOCKS5 proxy that refuses
|
||||
UDP ASSOCIATE, a relay that never answers, a relay whose UDP leaves from an address
|
||||
other than the TCP exit, and SOCKS4. An error that arrives at once instead of after
|
||||
about eleven seconds points at a STUN server name that did not resolve, not at the proxy.
|
||||
- **An HTTP or HTTPS proxy.** The same picture as the previous case: CONNECT carries
|
||||
no UDP, so the STUN request goes nowhere and ends in one `701`.
|
||||
- **No proxy.** A `typ srflx` line, present when the STUN server answers: the line's
|
||||
real public address, as in any browser.
|
||||
|
||||
This is not the "suppressed" state from the table above. The host candidates are
|
||||
there; only the `srflx` is missing, and the `701` tells you why.
|
||||
|
||||
Three things hold in every case:
|
||||
|
||||
- Host candidates are mDNS names (`<uuid>.local`), never an address of the machine.
|
||||
The browser does not read the machine's network interfaces; the session declares one
|
||||
plausible home network.
|
||||
- No IPv6 candidate is produced, with or without a proxy.
|
||||
- The names of STUN and TURN servers in `iceServers` are resolved by the browser over
|
||||
DNS-over-HTTPS through the proxy of the context, not by the machine's resolver.
|
||||
Without a proxy the system resolver is used, as in retail Firefox.
|
||||
|
||||
The decision is made by the library, not by you. Before launch, and before a context
|
||||
that brings its own SOCKS5 proxy, it opens a SOCKS5 UDP ASSOCIATE, sends a STUN Binding
|
||||
request through the relay and compares the address the STUN server saw with the proxy's
|
||||
TCP exit. Only if a reply comes back and the two addresses are equal does the browser
|
||||
send WebRTC's UDP through the relay; anything else is treated as a router that drops
|
||||
UDP. No option forces UDP on. The measurement uses two public STUN servers by default;
|
||||
to choose them, pass IPv4 literals, for example `udp_stun_servers=["192.0.2.10:3478"]`,
|
||||
to `InvisiblePlaywright`. Each context uses its own proxy for WebRTC, so a context with
|
||||
its own SOCKS5 proxy gets its own `srflx`.
|
||||
|
||||
## Driving the same session from Playwright
|
||||
|
||||
The manual read is for exploring. Once you know which candidate line matters, you want
|
||||
@@ -207,11 +151,7 @@ with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
|
||||
page.goto("https://example.com")
|
||||
page.evaluate("""
|
||||
async () => {
|
||||
const pc = new RTCPeerConnection({
|
||||
// Use a STUN server you can reach: with an unreachable one a 701 is
|
||||
// expected in every case, and the cases cannot be told apart.
|
||||
iceServers: [{ urls: "stun:stun.example.org:3478" }],
|
||||
});
|
||||
const pc = new RTCPeerConnection();
|
||||
pc.createDataChannel('x');
|
||||
await pc.setLocalDescription(await pc.createOffer());
|
||||
}
|
||||
@@ -224,9 +164,7 @@ with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
|
||||
```
|
||||
|
||||
Then the same read as data, so a wrong candidate fails a check instead of a session.
|
||||
This gathers the candidate strings and the `icecandidateerror` codes the page itself
|
||||
would list, waits for gathering to finish (about eleven seconds when the proxy cannot
|
||||
carry the STUN request), and prints them. Replace the STUN server with one you control:
|
||||
This gathers the candidate strings the page itself would list and prints them:
|
||||
|
||||
```python
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
@@ -235,49 +173,34 @@ PROXY = {"server": "socks5://gate.example.com:1080", "username": "u", "password"
|
||||
|
||||
GATHER = """
|
||||
async () => {
|
||||
const pc = new RTCPeerConnection({
|
||||
// Use a STUN server you can reach. With an unreachable one a 701 is expected in
|
||||
// every case, and the cases cannot be told apart.
|
||||
iceServers: [{ urls: "stun:stun.example.org:3478" }],
|
||||
});
|
||||
const pc = new RTCPeerConnection();
|
||||
pc.createDataChannel("probe");
|
||||
const lines = [];
|
||||
const errors = [];
|
||||
pc.onicecandidate = (e) => { if (e.candidate) lines.push(e.candidate.candidate); };
|
||||
pc.onicecandidateerror = (e) => { errors.push(e.errorCode); };
|
||||
await pc.setLocalDescription(await pc.createOffer());
|
||||
await new Promise((r) => {
|
||||
const cap = setTimeout(r, 25000);
|
||||
const done = () => {
|
||||
if (pc.iceGatheringState === "complete") { clearTimeout(cap); r(); }
|
||||
};
|
||||
pc.onicegatheringstatechange = done;
|
||||
done();
|
||||
});
|
||||
await new Promise((r) => setTimeout(r, 3000));
|
||||
pc.close();
|
||||
return { lines, errors };
|
||||
return lines;
|
||||
}
|
||||
"""
|
||||
|
||||
with InvisiblePlaywright(seed=42, proxy=PROXY) as browser:
|
||||
page = browser.new_page()
|
||||
page.goto("https://example.com")
|
||||
result = page.evaluate(GATHER)
|
||||
candidates, errors = result["lines"], result["errors"]
|
||||
candidates = page.evaluate(GATHER)
|
||||
|
||||
host = [c for c in candidates if "typ host" in c]
|
||||
srflx = [c for c in candidates if "typ srflx" in c]
|
||||
|
||||
for c in candidates:
|
||||
print(c)
|
||||
print("icecandidateerror codes:", errors)
|
||||
|
||||
# Assert the positive shape, not the absence of a leak.
|
||||
assert host and all(".local" in c for c in host), "host must be an mDNS .local name"
|
||||
# A proxied session has exactly two shapes: a srflx from the relay (no error), or
|
||||
# no srflx and a single 701 for the STUN request.
|
||||
assert srflx or errors == [701], "no srflx must come with exactly one 701"
|
||||
assert not any(":" in c.split()[4] for c in candidates), "no IPv6 candidate"
|
||||
assert srflx, "a proxied session must still produce a server-reflexive candidate"
|
||||
assert not any(
|
||||
p in c for c in host for p in ("192.168.", "10.", "172.16.")
|
||||
), "no raw LAN address on a host line"
|
||||
```
|
||||
|
||||
Because the identity is seed-derived, `seed=42` gives the same session every run, so a
|
||||
@@ -287,11 +210,10 @@ exact browser that produced it](quickstart.md) instead of chasing a random draw.
|
||||
## A before-and-after you can measure
|
||||
|
||||
The distinction is not theoretical. With host obfuscation off, a leak page reports the
|
||||
host candidate as a raw private address and shows the red "WebRTC exposes your Local IP"
|
||||
host candidate as the real LAN address and shows the red "WebRTC exposes your Local IP"
|
||||
warning; the same page on the shipped baseline reports "No Leak" with the local IP as
|
||||
"-", because the host line is a `<uuid>.local` name and the only routable address
|
||||
on the page, when the proxy's UDP relay carries the STUN request, is the proxy egress
|
||||
on the `srflx` line. Same session, one pref, and the
|
||||
"-", because the host line is now a `<uuid>.local` name and the only routable address
|
||||
on the page is the proxy egress on the `srflx` line. Same session, one pref, and the
|
||||
difference is the whole point of reading candidates instead of badges.
|
||||
|
||||
Assert the presence of the right candidate, not the absence of a wrong one. A WebRTC
|
||||
@@ -302,10 +224,9 @@ catches](how-to-test-bot-detection.md).
|
||||
## Conclusion
|
||||
|
||||
`about:webrtc` turns WebRTC from a badge into a list you can read. It shows the host
|
||||
candidate so you can confirm it is a `.local` name and not a raw private address, the
|
||||
server-reflexive candidate so you can confirm it is your proxy egress when the proxy
|
||||
carries UDP (and its absence, with a single `701` after about eleven seconds, when it does
|
||||
not), and the gathering timeline so you can confirm the answers arrived
|
||||
candidate so you can confirm it is a `.local` name and not a raw LAN IP, the
|
||||
server-reflexive candidate so you can confirm it is your proxy egress with a plausible
|
||||
port and priority, and the gathering timeline so you can confirm the answers arrived
|
||||
the way a browser produces them rather than instantly. Pair it with `about:config` to
|
||||
see the switches behind each line, drive the same read from Playwright to make it a
|
||||
test, and change one pref at a time so every difference has a cause.
|
||||
@@ -317,14 +238,12 @@ connections: the full ICE candidate list, each candidate's type and address and
|
||||
priority, and the gathering timeline. It shows the detail a leak site summarises away.
|
||||
|
||||
**Why is my host candidate a 192.168 address?** Host-address obfuscation is off. A
|
||||
stock Firefox emits a `<uuid>.local` name instead, and a raw private address is
|
||||
visible where stock hides it. Check `media.peerconnection.ice.obfuscate_host_addresses` in `about:config`.
|
||||
stock Firefox emits a `<uuid>.local` name instead, and a raw LAN address is a real
|
||||
leak. Check `media.peerconnection.ice.obfuscate_host_addresses` in `about:config`.
|
||||
|
||||
**What should the srflx candidate show behind a proxy?** When the proxy's UDP relay
|
||||
carries the STUN request, your proxy egress address, with the port and priority of a
|
||||
real `srflx`. Not your real public IP and not a private address. When the proxy cannot
|
||||
carry UDP there is no `srflx`: you see host candidates and a single `701`
|
||||
`icecandidateerror` after about eleven seconds.
|
||||
**What should the srflx candidate show behind a proxy?** Your proxy egress address,
|
||||
with a NAT-range port and a realistic priority. Not your real public IP, not a private
|
||||
address, and not a suspiciously round priority value.
|
||||
|
||||
**A leak site says "No Leak" but I still get flagged. Why?** "No Leak" can mean the
|
||||
candidates are correct, or it can mean WebRTC was suppressed and gathered nothing,
|
||||
@@ -335,10 +254,9 @@ and you can gather the same candidate strings programmatically with `page.evalua
|
||||
over a real [`RTCPeerConnection`](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection),
|
||||
which turns the manual read into an assertion.
|
||||
|
||||
**Why does an empty WebRTC section count as a failure?** Because a real browser always
|
||||
gathers host candidates, and behind NAT a server-reflexive one as soon as its STUN
|
||||
request is answered. Emitting nothing is not neutral; it is a shape no ordinary browser
|
||||
has, so assert presence, not absence.
|
||||
**Why does an empty WebRTC section count as a failure?** Because a real browser behind
|
||||
NAT always emits at least a host and a server-reflexive candidate. Emitting nothing is
|
||||
not neutral; it is a shape no ordinary browser has, so assert presence, not absence.
|
||||
|
||||
## Sources
|
||||
|
||||
@@ -347,6 +265,10 @@ has, so assert presence, not absence.
|
||||
third-party summary.
|
||||
- Mozilla Support, [Configuration Editor for Firefox](https://support.mozilla.org/en-US/kb/about-config-editor-firefox),
|
||||
retrieved 2026-08-28, for `about:config`, read the same way.
|
||||
- This project's WebRTC release gates and their per-event diagnostics, including the
|
||||
incident where a negative-only check passed a fully blocked WebRTC section behind a
|
||||
proxy, and the host-obfuscation fix that moved the host line from a raw LAN IP to a
|
||||
`.local` name.
|
||||
|
||||
**See also:** [what actually leaks through a proxy](webrtc-leak-proxy.md),
|
||||
[the srflx fields beyond the address](webrtc-ice-candidate-spoofing.md), and
|
||||
@@ -354,6 +276,6 @@ has, so assert presence, not absence.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. Every candidate line in
|
||||
this page is one I have read off about:webrtc while chasing a leak that a badge missed.*
|
||||
@@ -244,7 +244,7 @@ limits, or behaviour and timing, which you still have to supply.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The sensor surface
|
||||
is the easy kind of honest: the correct answer is to report nothing, and the only
|
||||
way to fail is to invent data a real desktop would never send.*
|
||||
@@ -218,6 +218,6 @@ slightly unusual.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The header and the array
|
||||
come from one preference, which is exactly what an injection-only spoof gets wrong.*
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "AI agent retry loops trip rate limits, not fingerprints"
|
||||
description: "Retry and re-plan loops multiply requests into a volume signal; throttling belongs in the agent loop. This page moved to the invisible_playwright_mcp wiki."
|
||||
description: "Retry and re-plan loops multiply requests into a volume signal; throttling belongs in the agent loop. This page moved to the AIHawk wiki."
|
||||
parent: "AI Agents and Frameworks"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 17
|
||||
@@ -9,10 +9,10 @@ nav_order: 17
|
||||
|
||||
# AI agent retry loops trip rate limits, not fingerprints
|
||||
|
||||
This page moved to the invisible_playwright_mcp wiki, where the agent-experience content now
|
||||
This page moved to the AIHawk wiki, where the agent-experience content now
|
||||
lives:
|
||||
|
||||
**[Agent retry loops trip rate limits, not fingerprints](https://github.com/oss-invisible/playwright_mcp/wiki/agent-retry-loops-rate-limits)**
|
||||
**[Agent retry loops trip rate limits, not fingerprints](https://github.com/feder-cr/AIHawk/wiki/agent-retry-loops-rate-limits)**
|
||||
|
||||
The one-paragraph version: an agent that retries and re-plans multiplies its
|
||||
requests, and volume is scored server-side against your address and account.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "Why AI browser agents have their own timing signal"
|
||||
description: "An LLM loop emits machine-regular action gaps and instant pointer jumps - a behavioral signal no fingerprint fixes. This page moved to the invisible_playwright_mcp wiki."
|
||||
description: "An LLM loop emits machine-regular action gaps and instant pointer jumps - a behavioral signal no fingerprint fixes. This page moved to the AIHawk wiki."
|
||||
parent: "AI Agents and Frameworks"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 10
|
||||
@@ -9,10 +9,10 @@ nav_order: 10
|
||||
|
||||
# Why AI browser agents have their own timing signal
|
||||
|
||||
This page moved to the invisible_playwright_mcp wiki, where the agent-experience content now
|
||||
This page moved to the AIHawk wiki, where the agent-experience content now
|
||||
lives:
|
||||
|
||||
**[The timing signal AI agents give off](https://github.com/oss-invisible/playwright_mcp/wiki/ai-agent-timing-signal)**
|
||||
**[The timing signal AI agents give off](https://github.com/feder-cr/AIHawk/wiki/ai-agent-timing-signal)**
|
||||
|
||||
The short version it still owes you here: a think-act loop pauses for model
|
||||
latency, and that pause repeats with a regularity no human produces. The
|
||||
|
||||
@@ -224,7 +224,7 @@ this whole page is about.
|
||||
one. Pick on the agent loop, then fix the machine, then consider the engine.
|
||||
|
||||
**Is there any agent route to an engine-level fingerprint?** Two, and they are not
|
||||
equivalent. `uvx invisible-playwright-mcp` launches through the engine, so the
|
||||
equivalent. `uvx aihawk` launches through the engine, so the
|
||||
seeded profile and the humanised pointer come with it. Microsoft's own Playwright
|
||||
MCP server takes a browser and an executable path, which runs the engine but
|
||||
carries no `firefox_user_prefs`, so every session on a given build shares one
|
||||
@@ -274,6 +274,6 @@ identity.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. This page exists because eight separate articles all
|
||||
concluding "does not fit" would have been worse for you than one that says why.*
|
||||
@@ -16,10 +16,10 @@ fingerprint into a Bot Score from 0 (human) to 100 (bot). Passing one layer of t
|
||||
pipeline, even the hardest layer, does not mean you pass the rest.
|
||||
|
||||
A real, documented case makes that concrete, not theoretical. In April 2026 a
|
||||
user of a separate open-source project
|
||||
user of [Camoufox](https://github.com/daijro/camoufox), a separate open-source project
|
||||
that also patches Firefox at the C++ level for automation, filed
|
||||
an issue reporting that an
|
||||
Akamai-protected site blocked their patched-Firefox session with a flat 403 while stock,
|
||||
[an issue](https://github.com/daijro/camoufox/issues/555) reporting that an
|
||||
Akamai-protected site blocked their Camoufox session with a flat 403 while stock,
|
||||
unpatched Firefox driven through the same Playwright automation reached the page and a
|
||||
solvable challenge. The reporter had already checked the one thing everyone checks
|
||||
first, the TLS and HTTP/2 handshake, and it matched byte for byte. This page walks
|
||||
@@ -115,7 +115,7 @@ It does not remove the other six.
|
||||
Here is what the GitHub issue actually contains, read directly, not summarized
|
||||
from memory.
|
||||
|
||||
The reporter, running that project's v135.0.1-beta.24 build through Playwright 1.58.0 on Linux, was
|
||||
The reporter, running Camoufox v135.0.1-beta.24 through Playwright 1.58.0 on Linux, was
|
||||
being blocked with a flat 403 by one specific Akamai-protected site, while the same
|
||||
automated request pattern against the same site using stock Firefox through Playwright
|
||||
returned a normal page and a solvable challenge. Before filing, the reporter had already
|
||||
@@ -123,12 +123,12 @@ run the check this whole article leads with: they compared JA3, JA4, and Akamai'
|
||||
HTTP/2 signature between the two browsers and found them identical, and confirmed the
|
||||
HTTP headers matched except for the User-Agent version string. Their own conclusion,
|
||||
stated in the issue, was that this "means detection is NOT TLS/HTTP2," and that
|
||||
"something in the C++ patches is being detected" further up the stack.
|
||||
"something in Camoufox's C++ patches is being detected" further up the stack.
|
||||
|
||||
The reporter also tested several other Akamai-protected sites in the same session: most
|
||||
treated both browsers identically, either passing both or blocking both, which is itself
|
||||
useful information, because it means the divergence was not a blanket signature of that
|
||||
build, it was specific to one deployment's tuning.
|
||||
useful information, because it means the divergence was not a blanket Camoufox
|
||||
signature, it was specific to one deployment's tuning.
|
||||
|
||||
Working the problem, the reporter ruled out a content-blocking browser extension,
|
||||
changing the reported OS, enabling the page cache, and matching window sizes by hand,
|
||||
@@ -146,7 +146,7 @@ it caused the block, and nobody in the thread went on to confirm which one, or w
|
||||
any one of them individually, was responsible.
|
||||
|
||||
What actually closed the issue was different from what anyone expected going in. Another
|
||||
user suggested trying a newer build, version 140 or higher from an unofficial
|
||||
user suggested trying a newer Camoufox build, version 140 or higher from an unofficial
|
||||
fork rather than the mainline release the reporter had been running. The reporter tried
|
||||
it, confirmed the previously-blocked site and the others now loaded normally, reopened
|
||||
the issue asking for the fix to land in the mainline branch, and a third participant
|
||||
@@ -174,7 +174,7 @@ that had nothing to do with the browser at all.
|
||||
That lesson generalizes to any project taking this approach, and it does not stop at the
|
||||
project this issue was filed against. This project also compiles Firefox from source and
|
||||
sets its fingerprint at the C++ level rather than in JavaScript, for
|
||||
the same reasons that project does: an injected override is a function
|
||||
[the same reasons Camoufox does](vs-camoufox.md): an injected override is a function
|
||||
whose source can be read, and a value decided below the JavaScript layer is not. That
|
||||
shared decision is a real advantage over page-level spoofing, and it is not a guarantee
|
||||
against a specific commercial detector's tuning on a specific deployment. This project
|
||||
@@ -192,10 +192,10 @@ against that same session's history, not just evaluated once.
|
||||
|
||||
**Does a matching TLS/JA3/JA4 fingerprint mean I pass Akamai?** No. It means one input to
|
||||
the score, out of roughly seven categories Akamai evaluates, agrees with a real browser.
|
||||
The documented case had a byte-identical network fingerprint and was still
|
||||
The documented Camoufox case had a byte-identical network fingerprint and was still
|
||||
blocked.
|
||||
|
||||
**What actually happened in the GitHub issue?** An older patched build was
|
||||
**What actually happened in the Camoufox GitHub issue?** An older patched build was
|
||||
blocked by one Akamai-protected site while stock Firefox passed, despite matching
|
||||
TLS/JA3/JA4/HTTP2 fingerprints. Switching to a newer patched build resolved it in
|
||||
practice. No mechanism was confirmed in the thread.
|
||||
@@ -217,7 +217,8 @@ the parts that are hardest to verify from outside: the JavaScript-collected brow
|
||||
device fingerprint, behavioral telemetry across the session, and reputation tied to the
|
||||
IP and cookie history, none of which a single clean test can rule in or out.
|
||||
|
||||
**See also:** [JA3 and JA4: why a TLS
|
||||
**See also:** [Playwright stealth vs Camoufox: two patched Firefoxes](vs-camoufox.md),
|
||||
for how this project and Camoufox compare on everything else; [JA3 and JA4: why a TLS
|
||||
fingerprint cannot be patched](ja3-ja4-tls-fingerprint.md) and [HTTP/2 fingerprint: the
|
||||
layer above the TLS handshake](http2-fingerprint-detection.md), for the two layers that
|
||||
matched in the case above; and [How do websites detect bots?](how-do-websites-detect-bots.md),
|
||||
@@ -225,8 +226,8 @@ for where a JavaScript-collected fingerprint sits among the other layers.
|
||||
|
||||
## Sources
|
||||
|
||||
- A public GitHub issue on a patched-Firefox project,
|
||||
"Akamai-protected sites block the patched build but not stock Firefox via Playwright," retrieved
|
||||
- GitHub issue [`daijro/camoufox#555`](https://github.com/daijro/camoufox/issues/555),
|
||||
"Akamai-protected sites block Camoufox but not stock Firefox via Playwright," retrieved
|
||||
2026-08-30, for the test results, the matched network fingerprints, the suspected
|
||||
patches, the viewport inconsistency, and the resolution.
|
||||
- Akamai's own documentation, [Detection
|
||||
@@ -245,8 +246,8 @@ for where a JavaScript-collected fingerprint sits among the other layers.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
a Firefox patched at the C++ level. The issue above is someone else's bug
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The Camoufox issue above is someone else's bug
|
||||
tracker and someone else's engine build; it is quoted here because it is the clearest
|
||||
public evidence that this whole approach narrows a gap rather than closing one, and that
|
||||
applies to this project exactly as much as it applies to theirs.*
|
||||
@@ -124,7 +124,7 @@ for the flag every CDP-driven fork inherits alike.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level, precisely because a Chromium fork does not
|
||||
change the automation protocol underneath it. The page recommends switching
|
||||
engines rather than skins for that reason, and says so plainly rather than
|
||||
|
||||
@@ -77,7 +77,7 @@ This is the one detector in this whole corpus where the honest answer is: engine
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
|
||||
patched at the C++ level. Anubis is the one detector here this project can actually read the source of, and
|
||||
the honest conclusion is that engine-level realness has almost nothing to do with passing it: the puzzle
|
||||
tests JavaScript execution speed, not fingerprint fidelity, and any real browser clears it the same way.*
|
||||
@@ -23,7 +23,7 @@ That is a real limit on what this page can say with a straight face. Arkose does
|
||||
|
||||
## What practitioner reverse engineering has converged on
|
||||
|
||||
Multiple independent writeups, none of them Arkose's own source, describe a broadly consistent picture of what the client-side script collects before a puzzle appears: device and browser fingerprint (screen resolution, installed fonts, navigator properties), canvas, WebGL and AudioContext rendering output, the same category of signal [a consistency checker](consistency-checker-explained.md) and [BotD](botd-explained.md) read, and continuous mouse-movement telemetry once the puzzle itself is on screen.
|
||||
Multiple independent writeups, none of them Arkose's own source, describe a broadly consistent picture of what the client-side script collects before a puzzle appears: device and browser fingerprint (screen resolution, installed fonts, navigator properties), canvas, WebGL and AudioContext rendering output, the same category of signal [CreepJS](creepjs-explained.md) and [BotD](botd-explained.md) read, and continuous mouse-movement telemetry once the puzzle itself is on screen.
|
||||
|
||||
The mouse-movement layer is where the writeups get specific enough to be worth quoting carefully, with the caveat that this is reconstructed from the outside, not confirmed by Arkose: one practitioner account describes the script computing cursor acceleration ahead of a click, flagging a straight-line `mouse.move()` path (the kind a naive automation script produces) as an anomaly, and treating a press-to-release interval under roughly 50 milliseconds as evidence of programmatic input, on the reasoning that human physiology puts a real click closer to 70 to 100 milliseconds. None of these specific thresholds appear in Arkose's own public materials as retrieved for this page; they are practitioner reconstructions and should be weighed accordingly, the same caveat this corpus applies to reconstructed internals for [Kasada](kasada-explained.md) and [DataDome](datadome-explained.md).
|
||||
|
||||
@@ -39,7 +39,7 @@ Time pressure is part of the same mechanism by the same accounts: a stalled chal
|
||||
|
||||
Two different layers are worth separating cleanly here, because collapsing them is exactly the framing this page is built to avoid.
|
||||
|
||||
The **fingerprint layer**, canvas, WebGL, AudioContext, navigator properties, is the same category of check covered throughout this corpus: a genuinely real browser engine, patched below the JavaScript layer rather than overridden from a content script, produces these values honestly because it is not simulating them, it is generating them the normal way. That argument holds here exactly as it does for [a consistency checker](consistency-checker-explained.md) and another bot-detection service, and it says nothing puzzle-specific: it only affects whether the fingerprint half of Arkose's risk read looks honest or contradictory.
|
||||
The **fingerprint layer**, canvas, WebGL, AudioContext, navigator properties, is the same category of check covered throughout this corpus: a genuinely real browser engine, patched below the JavaScript layer rather than overridden from a content script, produces these values honestly because it is not simulating them, it is generating them the normal way. That argument holds here exactly as it does for [CreepJS](creepjs-explained.md) and [PerimeterX](perimeterx-explained.md), and it says nothing puzzle-specific: it only affects whether the fingerprint half of Arkose's risk read looks honest or contradictory.
|
||||
|
||||
The **puzzle itself is a different kind of gate entirely**, the same structural point [made about Cloudflare Turnstile's checkbox tier](cloudflare-turnstile-explained.md): once risk scoring has decided a session needs a challenge, solving a 3D rotation puzzle is an interactive task, not a value a browser engine reports about itself. No amount of engine-level fidelity upstream makes that requirement disappear, because the requirement was never a fingerprint question in the first place. And the mouse-dynamics telemetry collected during the solve is a property of whatever is driving the pointer, human or scripted, [which has its own separate treatment in this corpus](mouse-dynamics-behavioural-biometrics.md), not a property of the rendering engine underneath.
|
||||
|
||||
@@ -61,7 +61,7 @@ The **puzzle itself is a different kind of gate entirely**, the same structural
|
||||
|
||||
**Why does Arkose escalate a stalled puzzle after about fifteen seconds?** By practitioner accounts, an unsolved challenge sitting past that window gets swapped or escalated rather than left open, which works against slow or hesitant automation the same way it works against a distracted human.
|
||||
|
||||
**See also:** [How Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) for the same fingerprint-versus-human-gate distinction at a vendor whose interactive tier is a click rather than a puzzle; [What are mouse-dynamics behavioural biometrics?](mouse-dynamics-behavioural-biometrics.md) for the pointer-telemetry layer in depth; and [How a consistency checker decides you are lying](consistency-checker-explained.md) for the fingerprint-consistency argument this page leans on.
|
||||
**See also:** [How Cloudflare Turnstile actually works](cloudflare-turnstile-explained.md) for the same fingerprint-versus-human-gate distinction at a vendor whose interactive tier is a click rather than a puzzle; [What are mouse-dynamics behavioural biometrics?](mouse-dynamics-behavioural-biometrics.md) for the pointer-telemetry layer in depth; and [How CreepJS decides you are lying](creepjs-explained.md) for the fingerprint-consistency argument this page leans on.
|
||||
|
||||
## Sources
|
||||
|
||||
@@ -77,7 +77,7 @@ The **puzzle itself is a different kind of gate entirely**, the same structural
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
|
||||
patched at the C++ level. Arkose's own materials stop at category-level claims about its risk engine,
|
||||
and this page stops there too for anything not independently corroborated. It does not describe, and
|
||||
this project does not build, a way to solve FunCaptcha's puzzles for you.*
|
||||
@@ -206,6 +206,6 @@ when every browser check comes back green.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The browser layer is the
|
||||
part we can make perfect; the IP is the part only you can keep clean.*
|
||||
@@ -65,7 +65,7 @@ Two things went wrong, and the second one is the interesting one.
|
||||
|
||||
## Silence is a trap
|
||||
|
||||
A consistency checker has a check called
|
||||
[CreepJS](https://abrahamjuliot.github.io/creepjs/) has a check called
|
||||
`hasFakeAudio`. It does not compare your hash to a database. It builds a buffer that
|
||||
should be **silent**, renders it, and looks at whether anything is in it.
|
||||
|
||||
@@ -208,7 +208,7 @@ say so.
|
||||
and [getFloatTimeDomainData()](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData),
|
||||
and [DynamicsCompressorNode.reduction](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/reduction),
|
||||
retrieved 2026-08-28.
|
||||
- A consistency checker, read 2026-08-28, for the
|
||||
- [CreepJS](https://github.com/abrahamjuliot/creepjs), read 2026-08-28, for the
|
||||
`hasFakeAudio` check and its silence-and-opening-samples tests described above.
|
||||
- This project's own A/B measurement of the tampering score with the audio noise isolated
|
||||
as the only variable, on one machine and one identity.
|
||||
@@ -218,11 +218,11 @@ since the audio hash is one of the components that ID is made of,
|
||||
[why headless browsers render different fonts](headless-fonts-differ.md)
|
||||
and [your renderer string says NVIDIA, your pixels say software](renderer-string-vs-render.md),
|
||||
which are the same "the honest answer describes your machine" problem on other
|
||||
surfaces, and [how a consistency checker decides you are lying](consistency-checker-explained.md).
|
||||
surfaces, and [how CreepJS decides you are lying](creepjs-explained.md).
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The two scores above are our own A/B, on one
|
||||
machine and one identity, with the audio noise as the only variable. The feature they
|
||||
killed was one we wrote.*
|
||||
@@ -221,6 +221,6 @@ the audio device sits in the order you should debug.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The audio device is one of
|
||||
the machine tells no page-level plugin can reach, which is why it is solved in the engine.*
|
||||
@@ -281,7 +281,7 @@ for the same total-budget thinking applied to a poll loop instead of a request r
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The code arriving is the easy part; keeping the
|
||||
browser that asked for it and the one that spends it as the same machine is the part
|
||||
worth writing down.*
|
||||
@@ -143,6 +143,6 @@ checks when there is no way to avoid running it.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level, on why the safest login is usually the one that
|
||||
never runs as automation at all.*
|
||||
@@ -266,7 +266,7 @@ session-reuse pattern this flow feeds into once the 2FA step is past.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. Generating a code from a secret you already
|
||||
hold is arithmetic, not automation trickery; the browser's realness has nothing to
|
||||
do with whether the math is correct, and the whole flow is worthless without a
|
||||
|
||||
@@ -54,7 +54,7 @@ AWS is also explicit about a category it treats differently from everything abov
|
||||
|
||||
## What an engine answers honestly, and what a browser cannot touch
|
||||
|
||||
`SignalAutomatedBrowser`, `TGT_SignalBrowserAutomationExtension`, and `TGT_SignalBrowserInconsistency` are the rules a real, engine-level browser answers by construction: a genuinely real Firefox, patched below the JavaScript layer, not scripted from a content script, does not carry automation-framework tells, does not have a Selenium-style extension installed, and does not produce internally inconsistent browser-interrogation data, because nothing is faking any of those signals from the inside. That is the same argument this corpus makes for [BotD](botd-explained.md) and [a consistency checker](consistency-checker-explained.md), applied to a managed rule group instead of an open-source script.
|
||||
`SignalAutomatedBrowser`, `TGT_SignalBrowserAutomationExtension`, and `TGT_SignalBrowserInconsistency` are the rules a real, engine-level browser answers by construction: a genuinely real Firefox, patched below the JavaScript layer, not scripted from a content script, does not carry automation-framework tells, does not have a Selenium-style extension installed, and does not produce internally inconsistent browser-interrogation data, because nothing is faking any of those signals from the inside. That is the same argument this corpus makes for [BotD](botd-explained.md) and [CreepJS](creepjs-explained.md), applied to a managed rule group instead of an open-source script.
|
||||
|
||||
Several rule families sit entirely outside what any browser engine can affect. `SignalKnownBotDataCenter` and the cloud-service-provider signal read the network origin, not the browser. The `TGT_VolumetricSession` and `TGT_TokenReuseIp/Country/Asn` families score session and token behavior across time and across requests, a property of how the automation is orchestrated (how many machines, how many networks, how fast) rather than of the browser rendering any one page. And `TGT_ML_CoordinatedActivity`, by AWS's own description, runs on aggregate traffic statistics across a site's whole visitor population, comparing against a baseline no single session's engine fidelity can influence.
|
||||
|
||||
@@ -89,7 +89,7 @@ Several rule families sit entirely outside what any browser engine can affect. `
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
|
||||
patched at the C++ level. AWS documents its Bot Control rules more specifically, by name and by
|
||||
default action, than almost any other vendor in this corpus, which is why this page quotes rule
|
||||
names directly rather than reconstructing them from outside reverse engineering.*
|
||||
@@ -222,6 +222,6 @@ for the order to debug in once something flags you.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The engine swap is the easy
|
||||
half; the pacing and the exit are the half that decides the session.*
|
||||
@@ -64,7 +64,7 @@ convincingly: the property has to be gone from the prototype, absent from a
|
||||
a detector fetches a clean copy of `Navigator.prototype` from a fresh iframe and compares.
|
||||
A partial delete that patches the obvious access but leaves a trace elsewhere is worse than
|
||||
leaving the API alone, because now there is both a Firefox user agent and evidence of
|
||||
tampering. This is the pattern a consistency checker is built to catch: it does not ask what you report,
|
||||
tampering. This is the pattern CreepJS is built to catch: it does not ask what you report,
|
||||
it asks whether the shape of your environment is internally consistent and whether anything
|
||||
looks deleted.
|
||||
|
||||
@@ -94,7 +94,7 @@ Firefox build.
|
||||

|
||||
values.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/battery-api-fingerprint-firefox-values.png)
|
||||
|
||||
`navigator.getBattery` is `undefined`, which is the answer to the title, and the bundled
|
||||
Firefox returns the same thing.
|
||||
@@ -211,7 +211,7 @@ and [how navigator.webdriver actually reads](navigator-webdriver-explained.md).
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The most robust fingerprint
|
||||
field is the one a real browser genuinely produces, and sometimes the one it genuinely does
|
||||
not.*
|
||||
@@ -204,7 +204,7 @@ challenge layer that sits beside, not instead of, everything on this page.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. It answers the
|
||||
browser-identity layer honestly; it does not touch a rate limit, an IP block, a
|
||||
honeypot your own code walks into, or a site's decision to block a traffic category
|
||||
|
||||
@@ -184,6 +184,6 @@ for where behavioural signals sit in the wider picture.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The preference exists because the timeout described
|
||||
above is real, and a test suite that hits it deserves a way back to the old behaviour.*
|
||||
@@ -256,6 +256,6 @@ for the compare-against-stock method this page leans on.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The protocol under
|
||||
the driver is an implementation detail; the leaks were never on the wire.*
|
||||
@@ -218,6 +218,6 @@ human is worth more than the seconds you save.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The speed is stock
|
||||
Playwright; the tell is the part the speed guides leave out.*
|
||||
@@ -165,11 +165,11 @@ see.
|
||||
release and read which detectors fired rather than only the verdict.
|
||||
|
||||
**See also:** [what sannysoft checks](sannysoft-explained.md), which is the older
|
||||
list of the same kind, and [how a consistency checker detects tampering](consistency-checker-explained.md),
|
||||
list of the same kind, and [how CreepJS detects tampering](creepjs-explained.md),
|
||||
which takes the consistency idea considerably further.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
|
||||
We gate every release on BotD, so the detector names and the compared values above
|
||||
come out of its source and not out of memory.*
|
||||
@@ -67,7 +67,7 @@ tool you picked.
|
||||
|
||||
## Where this project sits
|
||||
|
||||
[invisible_playwright](https://github.com/oss-invisible/playwright) is
|
||||
[invisible_playwright](https://github.com/feder-cr/invisible_playwright) is
|
||||
not a fifth entry on the list above competing for the same job. It answers a
|
||||
different question: given that you have already picked Playwright's API
|
||||
(unchanged, same code you would write against any Playwright browser), what
|
||||
@@ -117,7 +117,7 @@ and [Firefox or Chromium for anti-detect automation](firefox-vs-chromium-antidet
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
which is not a competitor to any of the four tools above - it sits underneath
|
||||
one of them. The page is organized around picking the right testing tool
|
||||
first, because that decision is independent of the engine question it exists
|
||||
|
||||
@@ -179,6 +179,6 @@ layer an extension lives at has a ceiling.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. This page exists because someone asked in our
|
||||
discussions and got an answer about a different kind of extension entirely.*
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "Browser trust scores explained: what the number means"
|
||||
description: "consistency-checker trust, fingerprinting-library confidence and reCAPTCHA v3 score measure different things: what each trust score means and why one green does not imply the rest."
|
||||
description: "CreepJS trust, FingerprintJS confidence and reCAPTCHA v3 score measure different things: what each trust score means and why one green does not imply the rest."
|
||||
parent: "Detectors, Explained"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 8
|
||||
@@ -9,7 +9,7 @@ nav_order: 8
|
||||
|
||||
# Browser trust scores explained: what the number means
|
||||
|
||||
consistency-checker trust, fingerprinting-library confidence and a reCAPTCHA v3 score all look like the
|
||||
CreepJS trust, FingerprintJS confidence and a reCAPTCHA v3 score all look like the
|
||||
same kind of number, and they are not: one counts contradictions, one measures how
|
||||
sure a match is, and one estimates behavioural risk. A high number from one says
|
||||
almost nothing about what the next one will read, and treating them as interchangeable
|
||||
@@ -22,12 +22,12 @@ number moved.
|
||||
|
||||
## Three numbers, three different questions
|
||||
|
||||
The three numbers answer three unrelated questions: consistency-checker trust asks whether your
|
||||
The three numbers answer three unrelated questions: CreepJS trust asks whether your
|
||||
values contradict each other, a FingerprintJS visitor ID asks whether you are the same
|
||||
visitor as last time, and a reCAPTCHA v3 score asks how risky your behaviour and history
|
||||
look. Line them up and the confusion evaporates:
|
||||
|
||||
- **consistency-checker trust** is a consistency and lie count. It is high when nothing you report
|
||||
- **CreepJS trust** is a consistency and lie count. It is high when nothing you report
|
||||
contradicts anything else you report and nothing looks tampered with. It is not a
|
||||
rarity score, and being unusual does not lower it.
|
||||
- **A FingerprintJS visitor ID** is a hash, and the thing next to it labelled
|
||||
@@ -39,16 +39,16 @@ look. Line them up and the confusion evaporates:
|
||||
|
||||
| Number | The question it answers | What it reads | What moves it |
|
||||
|---|---|---|---|
|
||||
| consistency-checker trust | Do my reported values contradict each other? | Descriptors, prototypes, stack traces, canvas and font surfaces | A patched or blocked probe, or two fields that disagree |
|
||||
| CreepJS trust | Do my reported values contradict each other? | Descriptors, prototypes, stack traces, canvas and font surfaces | A patched or blocked probe, or two fields that disagree |
|
||||
| FingerprintJS visitor ID (+ confidence) | Am I the same visitor as before? | A hash of the browser's components, in a fixed order | Any one component changing changes the whole ID |
|
||||
| reCAPTCHA v3 score | How risky do my behaviour and history look? | Interaction, cookies, storage and exit reputation, not the DOM | A warmed-up profile and realistic behaviour, not a cleaner fingerprint |
|
||||
|
||||
Different inputs, different outputs, different failure modes. The rest of this page is
|
||||
one section per number, then why they do not move together.
|
||||
|
||||
## consistency-checker trust: a lie count, not a rarity score
|
||||
## CreepJS trust: a lie count, not a rarity score
|
||||
|
||||
[a consistency checker records a blocked probe as a lie](consistency-checker-explained.md) and walks
|
||||
[CreepJS records a blocked probe as a lie](creepjs-explained.md) and walks
|
||||
descriptors, prototypes and stack traces looking for values that were patched after
|
||||
the fact. Its trust figure goes up when the surfaces agree with each other and down
|
||||
when one of them looks edited or refuses to answer.
|
||||
@@ -106,18 +106,18 @@ none of which a fingerprint layer can supply.
|
||||
The three numbers are independent, so a high score on one predicts nothing about the
|
||||
other two. Put them side by side and the independence is obvious:
|
||||
|
||||
- You can score high on consistency-checker trust and low on reCAPTCHA v3, because a perfectly
|
||||
- You can score high on CreepJS trust and low on reCAPTCHA v3, because a perfectly
|
||||
consistent browser with no history is exactly what a consistent bot also looks like.
|
||||
- You can have a stable, high-confidence fingerprinting-library ID and still fail a consistency checker,
|
||||
- You can have a stable, high-confidence FingerprintJS ID and still fail CreepJS,
|
||||
because a stable ID only means your components did not move, not that they are
|
||||
telling the truth.
|
||||
- You can pass reCAPTCHA v3 on a warmed profile and fail a consistency checker, because behavioural
|
||||
- You can pass reCAPTCHA v3 on a warmed profile and fail CreepJS, because behavioural
|
||||
reputation says nothing about whether a descriptor was patched.
|
||||
|
||||
They cross-cut. Each of the [five detector deep-dives in this set](how-to-test-bot-detection.md)
|
||||
measures a different axis, and a green on one axis is not a green on the others. The
|
||||
practical rule is to name which number you are looking at before you react to it,
|
||||
because the fix for a low consistency-checker trust (consistency) is not the fix for a low
|
||||
because the fix for a low CreepJS trust (consistency) is not the fix for a low
|
||||
reCAPTCHA v3 score (history), and applying one to the other wastes days.
|
||||
|
||||
## A blocked probe lowers the score, it does not hide from it
|
||||
@@ -129,7 +129,7 @@ is nothing here for it to punish.
|
||||
|
||||
Every one of those is counted against you, not for you:
|
||||
|
||||
- A consistency checker records a blocked probe as a lie by name, so blocking lowers trust directly.
|
||||
- CreepJS records a blocked probe as a lie by name, so blocking lowers trust directly.
|
||||
- A value that changes on every read is a tampering tell, and a per-call-changing
|
||||
canvas or audio hash reads as randomisation rather than a real device.
|
||||
- A missing signal is still a signal. An empty result where a real browser has data is
|
||||
@@ -171,7 +171,7 @@ with sf as browser:
|
||||
|
||||
Reading the same value twice in one session is the cheapest consistency check there
|
||||
is: if `first` and `second` disagree, something is randomising per call, which is the
|
||||
exact tampering pattern that costs you consistency-checker trust. Here they match, which is the
|
||||
exact tampering pattern that costs you CreepJS trust. Here they match, which is the
|
||||
behaviour you want.
|
||||
|
||||
Now confirm it is stable across sessions too, which is what keeps a FingerprintJS ID
|
||||
@@ -198,14 +198,14 @@ That reproducibility is what lets you attribute a score change to the one thing
|
||||
changed. If you have not passed a seed, log `sf.seed` from the instance first so a run
|
||||
that scored interestingly can be replayed exactly.
|
||||
|
||||
The honest boundary, again: this makes the consistency-checker-style consistency axis and the
|
||||
The honest boundary, again: this makes the CreepJS-style consistency axis and the
|
||||
FingerprintJS linkability axis controllable and repeatable. It does not warm up a
|
||||
profile, and the reCAPTCHA v3 number will still start low on a session with no past no
|
||||
matter how clean the fingerprint is.
|
||||
|
||||
## Conclusion
|
||||
|
||||
Three numbers, three axes. consistency-checker trust counts contradictions and lies, a
|
||||
Three numbers, three axes. CreepJS trust counts contradictions and lies, a
|
||||
FingerprintJS ID and its confidence measure whether you are the same visitor as before,
|
||||
and a reCAPTCHA v3 score estimates risk from behaviour and history. Passing one is not
|
||||
passing another, suppressing a signal lowers the two that read the DOM rather than
|
||||
@@ -215,7 +215,7 @@ react to the number, and the contradictory results stop being contradictory.
|
||||
|
||||
## Short answers to the questions that lead here
|
||||
|
||||
**Is a consistency-checker trust score the same as a reCAPTCHA score?** No. consistency-checker trust counts
|
||||
**Is a CreepJS trust score the same as a reCAPTCHA score?** No. CreepJS trust counts
|
||||
internal contradictions and tampering; a reCAPTCHA v3 score is a 0.0 to 1.0 risk
|
||||
estimate built mostly from behaviour and history. A high one does not predict the
|
||||
other.
|
||||
@@ -224,11 +224,11 @@ other.
|
||||
this visitor ID matches the same visitor as before. It is about the reliability of the
|
||||
match, not about whether the browser looks automated.
|
||||
|
||||
**I pass a consistency checker but still get a low reCAPTCHA score, why?** Because reCAPTCHA v3 is
|
||||
**I pass CreepJS but still get a low reCAPTCHA score, why?** Because reCAPTCHA v3 is
|
||||
mostly reading history and behaviour, and a fresh profile has neither. A clean
|
||||
fingerprint does not supply a past, and past is what this score is missing.
|
||||
|
||||
**Does a rare fingerprint lower my trust score?** No. consistency-checker trust is about
|
||||
**Does a rare fingerprint lower my trust score?** No. CreepJS trust is about
|
||||
consistency, not rarity. An unusual but coherent identity can score perfectly; a common
|
||||
but contradictory one scores badly.
|
||||
|
||||
@@ -237,14 +237,14 @@ recorded as a lie, and a value that changes per read is a tampering tell. Answer
|
||||
every probe with a coherent value scores better than refusing.
|
||||
|
||||
**Which score should I optimise for?** The one your target actually uses. Optimise
|
||||
consistency for a consistency-checker-style check, a warmed profile and realistic behaviour for a
|
||||
consistency for a CreepJS-style check, a warmed profile and realistic behaviour for a
|
||||
reCAPTCHA-style score, and decide whether you want the FingerprintJS ID to stay put or
|
||||
change.
|
||||
|
||||
## Sources
|
||||
|
||||
- The three detectors named above, each with its own page in this set, read from their
|
||||
own source rather than from a rendered verdict: a consistency checker
|
||||
own source rather than from a rendered verdict: [CreepJS](https://github.com/abrahamjuliot/creepjs)
|
||||
on tampering, [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) on
|
||||
the hashed visitor ID and its confidence, and [reCAPTCHA v3](https://developers.google.com/recaptcha/docs/v3)
|
||||
on the behavioural score, retrieved 2026-08-28.
|
||||
@@ -252,14 +252,14 @@ change.
|
||||
byte-identical canvas output within and across sessions, which is the property a
|
||||
consistency check rewards.
|
||||
|
||||
**See also:** [how a consistency checker decides you are lying](consistency-checker-explained.md) for the
|
||||
**See also:** [how CreepJS decides you are lying](creepjs-explained.md) for the
|
||||
consistency axis, [why a fresh browser scores low on reCAPTCHA v3](recaptcha-v3-score.md)
|
||||
for the history axis, and [how to test whether your browser is detected](how-to-test-bot-detection.md)
|
||||
for the compare-against-a-stock-browser method that keeps these numbers honest.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The three numbers on this
|
||||
page get conflated because they all look like a percentage; none of them are the same
|
||||
percentage.*
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "browser-use gets detected: what you can and cannot change"
|
||||
description: "browser-use drives Chrome over CDP. What BrowserProfile lets you change and what stays out of reach. This page moved to the invisible_playwright_mcp wiki."
|
||||
description: "browser-use drives Chrome over CDP. What BrowserProfile lets you change and what stays out of reach. This page moved to the AIHawk wiki."
|
||||
parent: "AI Agents and Frameworks"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 2
|
||||
@@ -9,10 +9,10 @@ nav_order: 2
|
||||
|
||||
# browser-use gets detected: what you can and cannot change
|
||||
|
||||
This page moved to the invisible_playwright_mcp wiki, where the agent-experience content now
|
||||
This page moved to the AIHawk wiki, where the agent-experience content now
|
||||
lives:
|
||||
|
||||
**[browser-use getting blocked: what you can and cannot change](https://github.com/oss-invisible/playwright_mcp/wiki/browser-use-getting-blocked)**
|
||||
**[browser-use getting blocked: what you can and cannot change](https://github.com/feder-cr/AIHawk/wiki/browser-use-getting-blocked)**
|
||||
|
||||
The unchanged short answer: browser-use exposes a real set of levers
|
||||
(`executable_path`, `user_data_dir`, `proxy`, `headless`, `args`), all of
|
||||
|
||||
+15
-13
@@ -1,22 +1,22 @@
|
||||
---
|
||||
title: "The canvas and WebGL readback hash, explained"
|
||||
description: "The canvas and WebGL signature a raw-value inspector shows is a hash of a pixel readback, not your GPU. What it measures, and why one seed gives a byte-identical hash."
|
||||
title: "BrowserLeaks canvas and WebGL hash, explained"
|
||||
description: "The BrowserLeaks canvas and WebGL signature is a hash of a pixel readback, not your GPU. What it measures, and why one seed gives a byte-identical hash."
|
||||
parent: "Detectors, Explained"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 6
|
||||
---
|
||||
|
||||
|
||||
# The canvas and WebGL readback hash, explained
|
||||
# BrowserLeaks canvas and WebGL hash, explained
|
||||
|
||||
The canvas and WebGL signature a raw-value inspector shows is a hash of the pixels a readback call
|
||||
The BrowserLeaks canvas and WebGL signature is a hash of the pixels a readback call
|
||||
returns, not a fingerprint of your GPU. It sits at the very end of the render pipeline,
|
||||
which is why editing a reported renderer string never moves it, and why the only way to
|
||||
control it is to control the bytes handed back at the readback boundary. Get that boundary
|
||||
right and one seed produces a byte-identical hash on Windows and Linux alike.
|
||||
|
||||
A raw-value inspector shows you a canvas "signature" and a WebGL "signature" and treats each as a
|
||||
stable identifier for your machine (see [what each raw-value inspector panel tests](raw-value-inspector-explained.md)
|
||||
BrowserLeaks shows you a canvas "signature" and a WebGL "signature" and treats each as a
|
||||
stable identifier for your machine (see [what each BrowserLeaks panel tests](browserleaks-explained.md)
|
||||
for the wider tour). People read those short hex strings as a fingerprint
|
||||
of the GPU, and then try to change the GPU to change them. That is the wrong layer. The
|
||||
signature is a hash of one specific thing, and once you know which thing, the whole
|
||||
@@ -26,7 +26,7 @@ This page is what the signature measures, where in the pipeline it is actually t
|
||||
has to be true for two machines to produce the same one, and how to read both values
|
||||
yourself against a stock browser.
|
||||
|
||||
## What a raw-value inspector calls a signature
|
||||
## What BrowserLeaks calls a signature
|
||||
|
||||
The canvas test draws text and shapes into an off-screen canvas, then asks the page to
|
||||
read the resulting pixels back out and hashes them. The WebGL test does the same with a
|
||||
@@ -90,7 +90,7 @@ between Windows and Linux. The honest test is not "did the hash change", it is "
|
||||
different hosts, same seed, produce the same hash to the byte".
|
||||
|
||||
Measured on this build, same seed on Windows and on Linux, read in the page the way
|
||||
a raw-value inspector reads it: the canvas signature is `df2a9319` on both, and the WebGL signature
|
||||
BrowserLeaks reads it: the canvas signature is `df2a9319` on both, and the WebGL signature
|
||||
is `0df1d6f8` on both. Not close, identical.
|
||||
|
||||
| Signature | Windows | Linux | Match |
|
||||
@@ -189,7 +189,7 @@ seeded one gives the same answer on a second machine and the stock one does not.
|
||||
|
||||
## Conclusion
|
||||
|
||||
The canvas and WebGL signatures a raw-value inspector shows are hashes of a readback, and the readback is
|
||||
The BrowserLeaks canvas and WebGL signatures are hashes of a readback, and the readback is
|
||||
the only place a page can observe a render at all. That single fact is what makes the
|
||||
surface tractable: substitute the bytes at the readback boundary with a function of the
|
||||
seed, and the signature becomes seed-determined instead of GPU-determined, byte-identical
|
||||
@@ -200,7 +200,7 @@ byte on two different hosts, with zero cross-host failures across sixteen seeds.
|
||||
|
||||
## Short answers to the questions that lead here
|
||||
|
||||
**What does the raw-value inspector canvas signature actually measure?** The hash of the pixels a
|
||||
**What does the BrowserLeaks canvas signature actually measure?** The hash of the pixels a
|
||||
readback call returns, not any property of your GPU. It is downstream of the entire render
|
||||
pipeline, which is why editing a renderer string does not move it.
|
||||
|
||||
@@ -225,8 +225,10 @@ signature is the pixels, the renderer string is a reported value, and both have
|
||||
|
||||
## Sources
|
||||
|
||||
- The canvas and WebGL pages of public raw-value inspectors, read for how the signature is
|
||||
computed: a hash over the bytes returned by a readback call.
|
||||
- BrowserLeaks canvas and WebGL pages, read for how the signature is computed: a hash over
|
||||
the bytes returned by a readback call
|
||||
([browserleaks.com/canvas](https://browserleaks.com/canvas),
|
||||
[browserleaks.com/webgl](https://browserleaks.com/webgl)).
|
||||
- This project's host-independence audit, which maps every path a host-dependent render
|
||||
value can reach JavaScript and confirms the seeded hashes (`df2a9319`, `0df1d6f8`)
|
||||
byte-identical on Windows and Linux, zero of sixteen seeds failing the cross-host check.
|
||||
@@ -237,6 +239,6 @@ signature is the pixels, the renderer string is a reported value, and both have
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The two hashes above are
|
||||
real measurements, reproduced to the byte on two operating systems from one seed.*
|
||||
@@ -1,15 +1,15 @@
|
||||
---
|
||||
title: "What a raw-value inspector actually tests, surface by surface"
|
||||
description: "What a raw-value inspector tests, surface by surface: canvas hash, WebGL, WebRTC, fonts, ClientRects. Why a unique panel is not a fail, and the miss it never flags."
|
||||
title: "What BrowserLeaks actually tests, surface by surface"
|
||||
description: "What BrowserLeaks tests, surface by surface: canvas hash, WebGL, WebRTC, fonts, ClientRects. Why a unique panel is not a fail, and the miss it never flags."
|
||||
parent: "Detectors, Explained"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 7
|
||||
---
|
||||
|
||||
|
||||
# What a raw-value inspector actually tests, surface by surface
|
||||
# What BrowserLeaks actually tests, surface by surface
|
||||
|
||||
A raw-value inspector is the tool people reach for when they want to see a number rather than
|
||||
BrowserLeaks is the tool people reach for when they want to see a number rather than
|
||||
read a verdict. It prints the raw value of each browser surface - the canvas hash, the
|
||||
WebGL parameter block, the WebRTC candidate addresses, the installed font list, the
|
||||
ClientRects geometry - each on its own page.
|
||||
@@ -18,25 +18,25 @@ That design is its strength and the source of most of the panic it causes. It sh
|
||||
everything and scores none of it. So the panel that lights up red and says "unique" is
|
||||
the one everybody worries about, while the thing that actually gets a session flagged -
|
||||
two panels that quietly contradict each other - is displayed in plain text and never
|
||||
called out, because a raw-value inspector does not compare its own pages to one another.
|
||||
called out, because BrowserLeaks does not compare its own pages to one another.
|
||||
|
||||
This page is what each surface measures, why "unique" is not the alarm it looks like,
|
||||
and how to read the tool for the failure it will not point at.
|
||||
|
||||
## A raw-value inspector, not a scorer
|
||||
|
||||
A raw-value inspector reads each browser surface and prints its raw value; it does not judge whether the values are coherent. It shows the canvas hash, the WebGL block, the font list and how rare each is in its sample, but it never cross-checks one surface against another and never hands you a trust score. That is the distinction that makes it useful, and the one people miss.
|
||||
BrowserLeaks reads each browser surface and prints its raw value; it does not judge whether the values are coherent. It shows the canvas hash, the WebGL block, the font list and how rare each is in its sample, but it never cross-checks one surface against another and never hands you a trust score. That is the distinction that makes it useful, and the one people miss.
|
||||
|
||||
[a consistency checker asks whether you are lying](consistency-checker-explained.md): it takes a clean copy of the
|
||||
[CreepJS asks whether you are lying](creepjs-explained.md): it takes a clean copy of the
|
||||
built-ins, walks descriptors and prototypes, and cross-checks every surface against
|
||||
every other one, then hands you a single trust score. A raw-value inspector does none of that. It
|
||||
every other one, then hands you a single trust score. BrowserLeaks does none of that. It
|
||||
reads a value, hashes it if it is a bitmap, tells you how rare that exact value is in its
|
||||
own visitor sample, and moves on to the next page.
|
||||
|
||||
That means two things. First, a "unique" result on any single raw-value inspector page is a
|
||||
That means two things. First, a "unique" result on any single BrowserLeaks page is a
|
||||
statement about rarity in their sample, not about whether your browser is coherent. A
|
||||
perfectly real, perfectly consistent machine can be unique. Second, and this is the part
|
||||
that matters, a raw-value inspector will show you a Windows font list on one page and a WebGL
|
||||
that matters, BrowserLeaks will show you a Windows font list on one page and a WebGL
|
||||
renderer that no Windows machine ships on another, side by side, both green, and say
|
||||
nothing - because it has no page that reads both. The contradiction is on screen. The
|
||||
tool just is not looking for it.
|
||||
@@ -49,13 +49,13 @@ most of why people get confused.
|
||||
- **Canvas.** Draws text and shapes to a `<canvas>`, reads the pixels back, and hashes
|
||||
them. The hash is a fingerprint of how your specific GPU, driver and font stack
|
||||
rasterize that exact drawing. It is not a property you can set; it is
|
||||
[a readback of what the machine actually painted](canvas-webgl-readback-hash-explained.md).
|
||||
[a readback of what the machine actually painted](browserleaks-canvas-webgl-hash.md).
|
||||
- **WebGL.** Two things on one page: the
|
||||
[`UNMASKED_VENDOR_WEBGL` / `UNMASKED_RENDERER_WEBGL`](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)
|
||||
strings, and a long block of numeric limits (max texture size, shader precision
|
||||
ranges, supported extensions). The strings are the famous part; the numeric block is
|
||||
the part that has to agree with them, and a disagreement is a contradiction a scoring
|
||||
detector catches even though a raw-value inspector prints both without comment.
|
||||
detector catches even though BrowserLeaks prints both without comment.
|
||||
- **WebRTC.** Asks the browser to gather ICE candidates and prints the addresses it
|
||||
finds. This is where a proxied browser can leak the real local address next to the
|
||||
proxy exit, or [return nothing at all, which is its own tell](webrtc-leak-proxy.md).
|
||||
@@ -100,7 +100,7 @@ randomized per call or collapsed onto the software default.
|
||||
|
||||
## The risk it shows but never flags: two panels that disagree
|
||||
|
||||
Here is the thing a raw-value inspector displays and will never point at, and it is the thing a
|
||||
Here is the thing BrowserLeaks displays and will never point at, and it is the thing a
|
||||
real scoring detector fails you on.
|
||||
|
||||
Every surface on the site carries an implicit claim about the same machine. The user
|
||||
@@ -110,7 +110,7 @@ rasterization stack. On a real browser these all describe one coherent computer.
|
||||
patched-together disguise they describe two or three different ones, and each individual
|
||||
page still looks fine on its own.
|
||||
|
||||
A raw-value inspector will happily show you:
|
||||
BrowserLeaks will happily show you:
|
||||
|
||||
- A user agent claiming Windows, and a font page missing the fonts every Windows install
|
||||
ships.
|
||||
@@ -120,19 +120,19 @@ A raw-value inspector will happily show you:
|
||||
- A WebRTC page reporting a timezone-consistent exit, and a geolocation page a continent
|
||||
away.
|
||||
|
||||
None of those triggers a warning on a raw-value inspector, because no page reads another page.
|
||||
A consistency checker would collapse your trust score on any one of them. This is exactly the gap the
|
||||
None of those triggers a warning on BrowserLeaks, because no page reads another page.
|
||||
CreepJS would collapse your trust score on any one of them. This is exactly the gap the
|
||||
comparison method in [how to test whether your browser is detected](how-to-test-bot-detection.md)
|
||||
exists to close: the tool gives you the raw values, and it is on you to check that they
|
||||
agree, because it will not.
|
||||
|
||||
The practical consequence: do not read a raw-value inspector page by page and tick each one green.
|
||||
The practical consequence: do not read BrowserLeaks page by page and tick each one green.
|
||||
Read the values across pages as a set and ask whether one machine could produce all of
|
||||
them. That is the check the site skips.
|
||||
|
||||
## Reading a raw-value inspector with the product, twice and against a stock browser
|
||||
## Reading BrowserLeaks with the product, twice and against a stock browser
|
||||
|
||||
The way to use a raw-value inspector well is to automate the cross-check it does not do: read the
|
||||
The way to use BrowserLeaks well is to automate the cross-check it does not do: read the
|
||||
same surface twice for stability, and read the surfaces together for coherence.
|
||||
|
||||
Switching from plain Playwright is a two-line change, and the returned object is a real
|
||||
@@ -142,17 +142,13 @@ Playwright `Browser` with every standard method:
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
# seed fixed, so every surface is reproducible and a failing run can be replayed
|
||||
# base URL of any public per-surface inspector you choose; the selectors below
|
||||
# are placeholders, adapt them to that site's markup
|
||||
INSPECTOR = "https://inspector.example"
|
||||
|
||||
with InvisiblePlaywright(seed=42) as browser:
|
||||
page = browser.new_page()
|
||||
|
||||
# 1. Stability: read the canvas signature twice. A real GPU is deterministic,
|
||||
# so these two hashes must be identical. If they differ, something is
|
||||
# adding per-call noise, which is a tell in its own right.
|
||||
page.goto(INSPECTOR + "/canvas")
|
||||
page.goto("https://browserleaks.com/canvas")
|
||||
first = page.locator("#canvas-hash").inner_text()
|
||||
page.reload()
|
||||
second = page.locator("#canvas-hash").inner_text()
|
||||
@@ -160,17 +156,17 @@ with InvisiblePlaywright(seed=42) as browser:
|
||||
|
||||
# 2. Coherence: pull the WebGL renderer string and the font list, then check
|
||||
# they tell the same story about one machine.
|
||||
page.goto(INSPECTOR + "/webgl")
|
||||
page.goto("https://browserleaks.com/webgl")
|
||||
renderer = page.locator("#UNMASKED_RENDERER_WEBGL").inner_text()
|
||||
print("WebGL renderer:", renderer)
|
||||
|
||||
page.goto(INSPECTOR + "/fonts")
|
||||
page.goto("https://browserleaks.com/fonts")
|
||||
print("fonts detected:", page.locator("#fonts-metrics-report").inner_text())
|
||||
```
|
||||
|
||||
Two rules turn that from a screenshot into a test.
|
||||
|
||||
First, assert presence, not absence. A raw-value inspector page that comes back empty, blocked
|
||||
First, assert presence, not absence. A BrowserLeaks page that comes back empty, blocked
|
||||
or still spinning is a failure, not a clean pass - the WebRTC page returning no candidates
|
||||
at all reads as clean to a naive check and as suspicious to a real detector.
|
||||
|
||||
@@ -184,7 +180,7 @@ other than the exit address is your candidate, whatever colour the panel is.
|
||||
|
||||
## Conclusion
|
||||
|
||||
A raw-value inspector is the right tool for reading a specific surface and the wrong tool for
|
||||
BrowserLeaks is the right tool for reading a specific surface and the wrong tool for
|
||||
deciding whether you are safe. It prints raw values page by page and scores none of them,
|
||||
so the "unique" canvas panel that scares people is usually just real hardware behaving
|
||||
normally, while the failure that actually matters - two panels describing two different
|
||||
@@ -192,27 +188,27 @@ machines - is on screen in plain text with no warning attached.
|
||||
|
||||
Read it as a set, not a stack of independent verdicts. Check that each value is stable on
|
||||
a re-read, check that the values across pages could all come from one computer, and diff
|
||||
the whole thing against a stock browser. Do that and a raw-value inspector becomes a precise
|
||||
the whole thing against a stock browser. Do that and BrowserLeaks becomes a precise
|
||||
instrument. Read it panel by panel and it will scare you about the wrong number and stay
|
||||
silent about the right one.
|
||||
|
||||
## Short answers to the questions that lead here
|
||||
|
||||
**A raw-value inspector says my canvas is unique - am I detected?** Almost certainly not.
|
||||
**BrowserLeaks says my canvas is unique - am I detected?** Almost certainly not.
|
||||
Uniqueness is the baseline for real hardware, which rasterizes in a way few other
|
||||
visitors share. The tell is the opposite: a hash that changes every read, or one that
|
||||
matches thousands of others exactly.
|
||||
|
||||
**Does a raw-value inspector give a bot score?** No. It is a raw-value inspector. It prints each
|
||||
surface and how rare it is, but it never scores cross-surface consistency the way a consistency checker
|
||||
**Does BrowserLeaks give a bot score?** No. It is a raw-value inspector. It prints each
|
||||
surface and how rare it is, but it never scores cross-surface consistency the way CreepJS
|
||||
does, so it cannot tell you whether your surfaces agree with each other.
|
||||
|
||||
**Why does a raw-value inspector look clean but I still get blocked?** Because it showed you values
|
||||
**Why does BrowserLeaks look clean but I still get blocked?** Because it showed you values
|
||||
that individually look fine and never checked that they describe one machine. A Windows
|
||||
user agent with a Linux font list passes every raw-value inspector page and fails a real
|
||||
user agent with a Linux font list passes every BrowserLeaks page and fails a real
|
||||
detector.
|
||||
|
||||
**Which raw-value inspector page matters most?** None alone. The value is reading them together:
|
||||
**Which BrowserLeaks page matters most?** None alone. The value is reading them together:
|
||||
the canvas, WebGL, font and WebRTC pages have to tell the same story about one computer.
|
||||
|
||||
**How do I know if my canvas hash is randomized?** Load the canvas page twice. A real GPU
|
||||
@@ -225,22 +221,30 @@ datacenter. You want a stable, hardware-shaped, unique value, not a popular one.
|
||||
|
||||
## Sources
|
||||
|
||||
- The per-surface test pages of public raw-value inspectors (canvas, WebGL, WebRTC,
|
||||
fonts, ClientRects, TLS, HTTP headers, geolocation, DNS), retrieved 2026-08-28, each read
|
||||
from its own page rather than from a summary score.
|
||||
- BrowserLeaks' own test pages named above, retrieved 2026-08-28:
|
||||
[browserleaks.com/canvas](https://browserleaks.com/canvas),
|
||||
[browserleaks.com/webgl](https://browserleaks.com/webgl),
|
||||
[browserleaks.com/webrtc](https://browserleaks.com/webrtc),
|
||||
[browserleaks.com/fonts](https://browserleaks.com/fonts),
|
||||
[browserleaks.com/rects](https://browserleaks.com/rects) (ClientRects),
|
||||
[browserleaks.com/tls](https://browserleaks.com/tls),
|
||||
[browserleaks.com/ip](https://browserleaks.com/ip) (HTTP headers),
|
||||
[browserleaks.com/geo](https://browserleaks.com/geo), and
|
||||
[browserleaks.com/dns](https://browserleaks.com/dns), each read from its own page
|
||||
rather than from a summary score.
|
||||
- This project's release gates, including the WebRTC gate whose absence-only assertions
|
||||
passed a feature that returned nothing, and the seed-derived canvas readback checked for
|
||||
stability across reads.
|
||||
- A consistency checker's own source, for the cross-surface
|
||||
trust score this page contrasts against a raw-value inspector's page-by-page raw values; the rest
|
||||
- [CreepJS's own source](https://github.com/abrahamjuliot/creepjs), for the cross-surface
|
||||
trust score this page contrasts against BrowserLeaks' page-by-page raw values; the rest
|
||||
of the companion detector pages in this set, read from each tool's own behaviour.
|
||||
|
||||
**See also:** [how a consistency checker scores the cross-surface consistency a raw-value inspector skips](consistency-checker-explained.md),
|
||||
[what the canvas and WebGL hash actually measures](canvas-webgl-readback-hash-explained.md), and
|
||||
**See also:** [how CreepJS scores the cross-surface consistency BrowserLeaks skips](creepjs-explained.md),
|
||||
[what the canvas and WebGL hash actually measures](browserleaks-canvas-webgl-hash.md), and
|
||||
[the comparison method that catches contradictions no single panel flags](how-to-test-bot-detection.md).
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The seed makes every surface
|
||||
reproducible, so the two-read stability check above is a test rather than a guess.*
|
||||
@@ -28,7 +28,7 @@ same contradiction: the list says Windows, the pixels say something else.
|
||||
|
||||
The fix that actually holds is upstream of the whole problem: ship the real font
|
||||
files inside the browser, and read only from that bundle, on every platform. This is
|
||||
the same direction other patched Firefox builds took first, and for the same reason - a real file produces
|
||||
the same direction Camoufox took first, and for the same reason - a real file produces
|
||||
real glyphs, real metrics, and a real hash, because nothing about it is simulated.
|
||||
|
||||
## One manifest, so three backends can't disagree with each other
|
||||
@@ -218,11 +218,12 @@ and a script cannot change what the OS actually draws.
|
||||
**Does this fix cost anything?** A larger binary, and a font list that's frozen at
|
||||
build time rather than tracking whatever the real OS might add later.
|
||||
|
||||
**Is this the same thing other patched Firefox builds do?** The same direction - real files, not a
|
||||
**Is this the same thing Camoufox does?** The same direction - real files, not a
|
||||
filter - checked independently rather than assumed to work the same way underneath.
|
||||
|
||||
**See also:** [why headless browsers render different fonts](headless-fonts-differ.md),
|
||||
for the detection side this architecture answers; and
|
||||
for the detection side this architecture answers; [invisible_playwright vs Camoufox](vs-camoufox.md),
|
||||
for where this approach sits relative to theirs; and
|
||||
[WebGL renderer strings](webgl-renderer-strings.md), for the same shape of problem on
|
||||
different hardware.
|
||||
|
||||
@@ -238,6 +239,6 @@ different hardware.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level, including three separate font backends convinced not
|
||||
to ask their host anything.*
|
||||
@@ -232,7 +232,7 @@ for the compare-against-stock method that catches a VM tell a verdict hides.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. It presents one coherent
|
||||
real-hardware persona to the browser-visible layer; the IP, the timing floor and the
|
||||
pacing are still yours to supply.*
|
||||
@@ -251,6 +251,6 @@ handle.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The clipboard opens for it
|
||||
because the gesture is genuinely trusted, not because a value was faked.*
|
||||
@@ -85,7 +85,7 @@ Linux container, because they are presented by the browser rather than read from
|
||||
|
||||

|
||||
both.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/can-a-website-tell-you-are-on-a-server-values.png)
|
||||
|
||||
Three values from one page served from `127.0.0.1`. The audio sample rate is `48000 Hz`
|
||||
in both browsers and the platform string is `Win32` in both, so neither of those two is
|
||||
@@ -230,6 +230,6 @@ and the pacing still depend on where and how you run it.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. It fixes the machine tells a
|
||||
server leaks in JavaScript; the datacenter IP and the pacing are still yours to supply.*
|
||||
@@ -196,7 +196,7 @@ for the end-to-end version of this.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The seed-and-directory
|
||||
pairing rule is one I wrote down after debugging a profile whose machine changed
|
||||
overnight.*
|
||||
@@ -196,6 +196,6 @@ and [when the timezone does not match the proxy](timezone-proxy-mismatch.md).
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The anonymity-set framing
|
||||
is the one that keeps me from "fixing" a shared fingerprint that was doing its job.*
|
||||
@@ -187,6 +187,6 @@ still on a distrusted IP.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The browser half is
|
||||
what the patch does; the IP half is the one honest thing it cannot do for you.*
|
||||
@@ -61,7 +61,7 @@ lying around, and they exist whether or not the driver flag above was ever touch
|
||||
JavaScript stealth plugins reach into built-ins to hide the first signal, and in doing so
|
||||
they create the second: a redefined function whose `toString()` stops returning
|
||||
`[native code]`, a property descriptor that a real engine never has, a global that only a
|
||||
particular tooling stack defines. A tampering-oriented suite such as a consistency checker does not ask
|
||||
particular tooling stack defines. A tampering-oriented suite such as CreepJS does not ask
|
||||
what you report, it asks whether anything you report contradicts anything else, and a
|
||||
built-in that has been rewritten is exactly that kind of contradiction. This is
|
||||
[the native-code check](tostring-native-code-detection.md), and it is the reason stacking
|
||||
@@ -190,7 +190,7 @@ rather than reading the score.
|
||||
`navigator.webdriver` property and the automation flag behind it.
|
||||
- This project's real API surface, `InvisiblePlaywright(seed=...)` and the returned
|
||||
Playwright `Browser`, as documented in the quickstart and configuration pages.
|
||||
- The public detection suites (a consistency checker, BotD, an open-source fingerprinting library, a basic bot-test page and a raw-value inspector),
|
||||
- The public detection suites CreepJS, BotD, FingerprintJS, sannysoft and BrowserLeaks,
|
||||
each of which reads one or more of the three signal families described above.
|
||||
- This project's release gates, which assert the presence of a real-browser signal rather
|
||||
than the absence of a wrong one, and separate browser tells from IP and behaviour.
|
||||
@@ -201,6 +201,6 @@ rather than reading the score.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The honest boundary in the
|
||||
last section is the one I most wish more of these pages drew.*
|
||||
@@ -85,7 +85,7 @@ promised no leftover state, and it delivers that.
|
||||

|
||||
panels.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/can-you-be-fingerprinted-in-incognito-mode-values.png)
|
||||
|
||||
Three values, read from one page served from `127.0.0.1`. `localStorage` is available in
|
||||
both, which is the point of the section above: private mode is about state, and this
|
||||
@@ -218,7 +218,7 @@ and [the TLS handshake no browsing mode can hide](ja3-ja4-tls-fingerprint.md).
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. Private mode clears what a
|
||||
site stored on you; this project changes what the browser is, which is the axis private
|
||||
mode leaves alone.*
|
||||
@@ -63,9 +63,8 @@ Three separate limits, three separate ways this fails:
|
||||
|
||||
The download can be moved off the critical path with a cache directory, and the wrapper
|
||||
supports exactly that: `INVISIBLE_PLAYWRIGHT_CACHE_DIR` points the engine at a path your
|
||||
platform already caches between runs, and the `binary_path=` launch argument skips the
|
||||
download entirely when a compatible binary is already on disk (see
|
||||
[Configuration](configuration.md)). That
|
||||
platform already caches between runs, and `INVPW_BINARY_PATH` skips the download entirely
|
||||
when a compatible binary is already on disk (see [Configuration](configuration.md)). That
|
||||
helps a persistent worker a great deal. It helps a stateless function much less, because
|
||||
the thing a function does not keep is exactly the local disk those variables point at.
|
||||
|
||||
@@ -183,7 +182,7 @@ container is the right place to unpack the browser once and keep it warm, but it
|
||||
fix your IP reputation, your account quotas, or your timing. You supply those.
|
||||
|
||||
**How do I avoid downloading Firefox on every invocation?** Bake it into the image at
|
||||
build time, or pass `binary_path=` for a binary already on disk. On a stateless
|
||||
build time, or point `INVPW_BINARY_PATH` at a binary already on disk. On a stateless
|
||||
function neither fully helps, because the local disk does not persist between calls.
|
||||
|
||||
**What is the smallest thing that works?** A single long-lived worker: launch once inside
|
||||
@@ -209,6 +208,6 @@ signals no stealth layer touches.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The weight that keeps it out
|
||||
of a small function is the same weight that makes it look real.*
|
||||
@@ -187,7 +187,7 @@ exit.
|
||||
for clicks, but the pacing, typing rhythm and request volume come from your code. That
|
||||
is the behaviour layer, and it is yours.
|
||||
|
||||
**Is a passing result on a basic bot-test page or a consistency checker enough to be safe?** No. It means the
|
||||
**Is a passing sannysoft or CreepJS result enough to be safe?** No. It means the
|
||||
browser layer is internally consistent and does not announce automation. The network
|
||||
and behaviour layers are not in those tests at all.
|
||||
|
||||
@@ -197,9 +197,9 @@ and behaviour layers are not in those tests at all.
|
||||
against a stock Firefox on the same machine and treat a suppressed signal as a
|
||||
failure rather than a pass.
|
||||
- The public detection suites named across this documentation set
|
||||
(a basic bot-test page, a consistency checker,
|
||||
([sannysoft](https://bot.sannysoft.com/), [CreepJS](https://github.com/abrahamjuliot/creepjs),
|
||||
[BotD](https://github.com/fingerprintjs/BotD), [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs),
|
||||
a raw-value inspector), each read from its own source rather than its
|
||||
[BrowserLeaks](https://browserleaks.com/)), each read from its own source rather than its
|
||||
rendered verdict, retrieved 2026-08-28.
|
||||
|
||||
**See also:** [how to test whether your browser is detected](how-to-test-bot-detection.md),
|
||||
@@ -208,7 +208,7 @@ and behaviour layers are not in those tests at all.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. It is built to look like
|
||||
a real browser, which is why it passes most checks and why it will never claim to make
|
||||
you invisible.*
|
||||
@@ -141,6 +141,6 @@ fingerprinting surface](measuretext-textmetrics-fingerprinting.md).
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. A canvas hash was never
|
||||
really about the canvas; it was always about everything underneath it.*
|
||||
@@ -130,7 +130,7 @@ right value directly.
|
||||
a seed report different canvas and WebGL readback hashes and even a different device
|
||||
pixel ratio, while two sessions launched with the same seed report identical hashes and
|
||||
identical
|
||||
pixels.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/canvas-seed-vs-no-seed.png)
|
||||
pixels.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/canvas-seed-vs-no-seed.png)
|
||||
|
||||
Four sessions above, one page served from `127.0.0.1`, hashes computed inside the page
|
||||
so the numbers and the picture come from the same run. The two unseeded sessions
|
||||
@@ -289,7 +289,7 @@ last step is to pin the identity so a failure is reproducible.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The seed is the same
|
||||
lever whether you are hiding rotation or reproducing a bug: pin it and the machine
|
||||
stops moving.*
|
||||
@@ -137,7 +137,7 @@ instead of staying bounded.
|
||||
|
||||

|
||||
report that the screen and the viewport differ.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/canvas-fingerprint-noise-values.png)
|
||||
|
||||
One page served from `127.0.0.1`, three values, two browsers. The canvas pixel hash
|
||||
moves and the text width does not: `measureText` returns `115.65 px` in both.
|
||||
@@ -220,10 +220,10 @@ fingerprinting probe.
|
||||
same per-call mistake has the same consequence and where our own noise turned out to be
|
||||
the thing being detected, [what sannysoft checks](sannysoft-explained.md), whose
|
||||
canvas-in-iframe rows are a consistency test rather than a fingerprint test, and
|
||||
[how a raw-value inspector reports the canvas and WebGL hash](canvas-webgl-readback-hash-explained.md).
|
||||
[how BrowserLeaks reports the canvas and WebGL hash](browserleaks-canvas-webgl-hash.md).
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The solid-fill guard exists because we shipped
|
||||
without it.*
|
||||
@@ -1,20 +1,17 @@
|
||||
---
|
||||
title: "Canvas and WebGL fingerprints across OSes"
|
||||
description: "Canvas and WebGL fingerprints across Windows and Linux: 2D canvas is drawn on the CPU, noise is projected only when WebGL and WebGPU pixels are read back, and it depends only on the seed."
|
||||
title: "Canvas and WebGL fingerprints, identical across OSes"
|
||||
description: "Canvas and WebGL fingerprints identical across Windows and Linux: intercept readback, not the render, so one seed produces a byte-identical hash on every OS."
|
||||
parent: "Canvas, WebGL, Fonts and Audio"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 9
|
||||
---
|
||||
|
||||
|
||||
# Canvas and WebGL fingerprints across OSes
|
||||
# Canvas and WebGL fingerprints, identical across OSes
|
||||
|
||||
A GPU-backed render surface can't be read from or written to directly and safely, so
|
||||
the fix intercepts the one place JavaScript can actually see the result instead - the
|
||||
same seed then gives the same noise on Windows and Linux. 2D canvas is drawn on the CPU, so it
|
||||
does not depend on the GPU; the noise is projected only when WebGL and WebGPU pixels are read back.
|
||||
Text and GPU raster can still differ slightly between the two OSes, and the PNG container is left
|
||||
as a stock Firefox writes it.
|
||||
same seed then produces a byte-identical canvas and WebGL hash on Windows and Linux.
|
||||
|
||||
[Why headless browsers render different fonts](headless-fonts-differ.md) and
|
||||
[how to make Linux and macOS report real Windows fonts](bundled-fonts-cross-platform.md)
|
||||
@@ -95,18 +92,17 @@ for the same reason: nothing about it resembles noise added on top of a real sig
|
||||
| Additive per-call noise | Perturbs a fraction of pixels on top of the real render | Two reads in one page differ; the real render's font/GPU signature still shows through; the noise has a high-frequency shape a single read can flag |
|
||||
| Full substitution | Replaces pixels with a pure function of the seed and the pixel position, with zero input from the render underneath | Must leave low-entropy buffers untouched so it does not break legitimate canvas reads |
|
||||
|
||||
## What was checked, and what was not
|
||||
## The proof: byte-identical hashes, not just "looks similar"
|
||||
|
||||
Rendered the same seed's canvas (text plus a gradient) and WebGL scene (a
|
||||
high-entropy draw) on Windows and on Linux, hashed both in-page, and ran a commercial
|
||||
fingerprint scanner across multiple seeds. What holds: the noise is a pure function of
|
||||
the seed and of the pixels it is applied to, so two reads of the same bytes give the same
|
||||
result, and the 2D path does not depend on the GPU.
|
||||
high-entropy draw) on Windows and on Linux, hashed both in-page. The hashes matched
|
||||
byte for byte on both platforms. Run against a commercial fingerprint scanner across
|
||||
multiple seeds, zero failures on either OS.
|
||||
|
||||
What is not claimed: that every byte matches between a Windows and a Linux host. Text
|
||||
pixels follow the host's rasteriser on Linux, and GPU raster can differ by one level
|
||||
between drivers. Whether two profiles with the same font can be linked by the way they
|
||||
rasterise has not been measured.
|
||||
That is a stronger claim than "produces a plausible fingerprint." It's the same
|
||||
identity, provably, regardless of which OS is actually running underneath - which is
|
||||
what makes a seed a real, portable identity instead of a value that happens to look
|
||||
right on the machine it was tested on.
|
||||
|
||||
## What this generalises to, and where the edges still are
|
||||
|
||||
@@ -125,8 +121,8 @@ a fact that becomes true once and stays true.
|
||||
The render was never the reachable surface. Content only ever sees a canvas or a
|
||||
WebGL scene through a handful of readback calls, and putting the substitution there
|
||||
instead of in the renderer is what makes a seed portable: the same identity produces
|
||||
the same noise on Windows and on Linux, because the noise comes from the seed and not from
|
||||
the host's rendering pipeline.
|
||||
the same bytes on Windows and on Linux, because nothing about either host's actual
|
||||
rendering pipeline reaches the output.
|
||||
|
||||
The tradeoff is honest rather than free - the fix covers only the readback paths it
|
||||
enumerates, and a masking-safe design still has to leave genuinely low-entropy canvas
|
||||
@@ -135,10 +131,10 @@ fingerprinting.
|
||||
|
||||
## Short answers to the questions that lead here
|
||||
|
||||
**Can canvas and WebGL fingerprints be made the same across operating systems?** The
|
||||
noise can: it is applied where content can read the result, from the seed, rather than at
|
||||
the render itself, which can't be touched directly on a GPU-backed surface. The pixels
|
||||
underneath still differ slightly between hosts for text and GPU raster.
|
||||
**Can canvas and WebGL fingerprints be made identical across operating systems?** Yes,
|
||||
if the interception happens at every point content can read the result rather
|
||||
than at the render itself, which is the part that can't be touched directly on a
|
||||
GPU-backed surface.
|
||||
|
||||
**Why substitution instead of adding noise to the real render?** Noise on top of a
|
||||
real image still carries the host's own rendering signature underneath it.
|
||||
@@ -166,7 +162,7 @@ content can observe, not at the source - applied to a different surface.
|
||||
retrieved 2026-08-28, the enumerable set of readback calls this page's interception
|
||||
point covers.
|
||||
- This project's own render-readback interception work and its cross-platform
|
||||
validation (same-seed hashes on Windows and Linux, multi-seed
|
||||
validation (same-seed byte-identical hashes on Windows and Linux, multi-seed
|
||||
results against a commercial fingerprint scanner).
|
||||
|
||||
**See also:** [canvas fingerprint noise](canvas-fingerprint-noise.md), for why
|
||||
@@ -174,12 +170,12 @@ per-call randomisation specifically fails; [how to make Linux and macOS report r
|
||||
Windows fonts](bundled-fonts-cross-platform.md), for the same architecture applied to
|
||||
fonts; [WebGL renderer strings](webgl-renderer-strings.md), for the adjacent
|
||||
surface of what the GPU claims to be rather than what it draws; and
|
||||
[how the raw-value inspector canvas and WebGL hash is computed](canvas-webgl-readback-hash-explained.md),
|
||||
[how the BrowserLeaks canvas and WebGL hash is computed](browserleaks-canvas-webgl-hash.md),
|
||||
for what that hash actually measures.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The same-seed check here once passed while the
|
||||
render was actually broken: a Linux canvas with text came back holding 11994 distinct
|
||||
colours where Windows gave 16, and identical bytes for two different strings.*
|
||||
@@ -200,6 +200,6 @@ layer has to be built differently rather than patched afterwards.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. Firefox-based, so `cdc_` was never our problem,
|
||||
but the general shape of it is everybody's.*
|
||||
@@ -110,7 +110,7 @@ and [WebRTC leak with a proxy](webrtc-leak-proxy.md).
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The table above
|
||||
exists because "the proxy isn't working" and "the site is blocking me" get
|
||||
treated as the same sentence far more often than they are the same problem.*
|
||||
@@ -254,6 +254,6 @@ in both directions.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. This is the argument for the engine choice that we
|
||||
find most convincing, and it is the one most comparisons leave out.*
|
||||
@@ -209,7 +209,7 @@ the same argument from the other end,
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. Running a real Firefox means the Client Hints
|
||||
question answers itself, which is the kind of advantage you only get by not lying in the
|
||||
first place.*
|
||||
@@ -183,6 +183,6 @@ and [waiting for a specific API response](wait-for-specific-api-response-playwri
|
||||
|
||||
---
|
||||
|
||||
*From [invisible_playwright](https://github.com/oss-invisible/playwright).
|
||||
*From [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
|
||||
The three-arm table is our own run and the test page is printed above so you
|
||||
can reproduce it rather than take our word for it.*
|
||||
@@ -41,7 +41,7 @@ AI Labyrinth was one early piece of a larger shift in how Cloudflare treats AI c
|
||||
|
||||
## What this means for a real, engine-level browser
|
||||
|
||||
This is worth being direct about, because it is a genuinely different kind of mechanism from everything else in this corpus: **AI Labyrinth is not a fingerprint check at all.** It does not read canvas output, WebGL parameters, TLS handshakes, or navigator properties. It is triggered by crawling behavior, following invisible links a normal rendering and interaction pattern never reaches, after a site's crawl preferences have already been ignored. There is no honest-engine argument to make here the way there is for [a consistency checker](consistency-checker-explained.md) or a bot-detection service's device layer, because nothing about being a genuinely real browser engine changes whether a crawling process follows every link it finds on a page, including invisible ones humans never see.
|
||||
This is worth being direct about, because it is a genuinely different kind of mechanism from everything else in this corpus: **AI Labyrinth is not a fingerprint check at all.** It does not read canvas output, WebGL parameters, TLS handshakes, or navigator properties. It is triggered by crawling behavior, following invisible links a normal rendering and interaction pattern never reaches, after a site's crawl preferences have already been ignored. There is no honest-engine argument to make here the way there is for [CreepJS](creepjs-explained.md) or [DataDome's device layer](datadome-explained.md), because nothing about being a genuinely real browser engine changes whether a crawling process follows every link it finds on a page, including invisible ones humans never see.
|
||||
|
||||
`invisible_playwright` is browser-automation infrastructure, not a crawling framework, and this project makes no claim about how any particular scraping logic built on top of it handles hidden links or robots.txt. What is worth stating plainly: a scraper that respects a site's stated crawl preferences and does not follow invisible, `nofollow`-tagged links in the first place never encounters this mechanism at all. AI Labyrinth is aimed at crawlers that have already chosen not to do that.
|
||||
|
||||
@@ -80,7 +80,7 @@ This is worth being direct about, because it is a genuinely different kind of me
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright), a Firefox
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright), a Firefox
|
||||
patched at the C++ level. This mechanism has nothing to do with browser fingerprinting, so this page has
|
||||
nothing to claim about engine realness one way or the other, honestly: a scraper that respects a site's
|
||||
crawl preferences and does not chase invisible links never triggers it in the first place.*
|
||||
@@ -92,7 +92,7 @@ for custom WAF rules.
|
||||
A matching TLS fingerprint is one input clearing, not a passed score. The same point is
|
||||
made at length for a comparable vendor, where a byte-identical JA3/JA4/HTTP2 fingerprint
|
||||
still did not stop a block on one deployment: see
|
||||
[the documented patched-Firefox case](akamai-bot-manager-explained.md#the-case-that-shows-matching-fingerprint-is-not-passing).
|
||||
[the documented Camoufox case](akamai-bot-manager-explained.md#the-case-that-shows-matching-fingerprint-is-not-passing).
|
||||
Cloudflare's own ML engine is described the same way, as combining "headers, session
|
||||
characteristics, and browser signals," never any one of those alone.
|
||||
|
||||
@@ -199,7 +199,7 @@ pipeline and a documented case where a matching network fingerprint was not enou
|
||||
and JA4: why a TLS fingerprint cannot be patched](ja3-ja4-tls-fingerprint.md) and [HTTP/2
|
||||
fingerprint: the layer above the TLS handshake](http2-fingerprint-detection.md) for the
|
||||
network-layer inputs above; and [Browser trust scores explained](browser-trust-score-explained.md)
|
||||
for why a Cloudflare bot score, a consistency-checker trust score and a reCAPTCHA v3 score do not imply
|
||||
for why a Cloudflare bot score, a CreepJS trust score and a reCAPTCHA v3 score do not imply
|
||||
each other.
|
||||
|
||||
## Sources
|
||||
@@ -233,7 +233,7 @@ each other.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level and driven by stock Playwright. Bot Management's actual
|
||||
score never reaches the client that earned it; what this page can speak to is the half of
|
||||
the pipeline a real browser engine touches, and it stops exactly where that half stops.*
|
||||
@@ -248,7 +248,7 @@ detail.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level and driven by stock Playwright. This page describes
|
||||
a mechanism, not a workaround: the product does not solve captchas or click Turnstile's
|
||||
interactive tier for you, and any tool that claims to defeat Cloudflare wholesale is
|
||||
|
||||
@@ -193,7 +193,7 @@ and [Playwright in Docker](playwright-docker-detection.md), which are the rest o
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The joint sampling is the same decision made for
|
||||
audio, storage quota and antialiasing, and for the same reason: independently sampled
|
||||
dimensions contradict each other.*
|
||||
@@ -73,7 +73,7 @@ surface that reports the same underlying fact through CSS.
|
||||
If your approach to fingerprinting is injecting JavaScript, this surface is a problem,
|
||||
because there is nothing in JavaScript's gift to change here. You can redefine
|
||||
`matchMedia` to lie about `color-gamut`, but redefining a built-in is itself one of
|
||||
the loudest tells there is: [a consistency checker](how-to-test-bot-detection.md) walks descriptors
|
||||
the loudest tells there is: [CreepJS](how-to-test-bot-detection.md) walks descriptors
|
||||
and prototypes and records a patched built-in by name. And even if you patch
|
||||
`matchMedia`, the pure-CSS path that applies a `@media (color-gamut: ...)` rule
|
||||
without ever calling script is still resolving against the real value. You cannot
|
||||
@@ -209,7 +209,7 @@ and [screen sizes that give a headless machine away](screen-size-headless-tells.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The color-gamut and
|
||||
colorDepth disagreement is one I would rather find in my own diff than have a page find
|
||||
for me.*
|
||||
@@ -205,7 +205,7 @@ for reading the JSON the page already fetches.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The browser is for the
|
||||
fingerprint-gated fetches, httpx is for the unguarded bulk, and telling them apart is the
|
||||
whole job.*
|
||||
+3
-1
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "Comparisons"
|
||||
description: "invisible_playwright against the closest alternatives at each layer - Patchright, nodriver, playwright-stealth - plus the engine question underneath all of them: Firefox or Chromium."
|
||||
description: "invisible_playwright against the closest alternatives at each layer - Camoufox, Patchright, nodriver, playwright-stealth - plus the engine question underneath all of them: Firefox or Chromium."
|
||||
has_children: true
|
||||
nav_order: 4
|
||||
---
|
||||
@@ -28,6 +28,7 @@ browser. An engine-level patch changed the binary, so there is no lie left to re
|
||||
| Tool | Browser | Patch layer | Language |
|
||||
|---|---|---|---|
|
||||
| invisible_playwright | Firefox | engine (C++) | Python |
|
||||
| [Camoufox](vs-camoufox.md) | Firefox | engine (C++) | Python |
|
||||
| [Patchright](vs-patchright.md) | Chromium | driver | Python, Node |
|
||||
| [rebrowser-patches](vs-rebrowser-patches.md) | Chromium | driver (CDP `Runtime.enable`) | Node |
|
||||
| [undetected-playwright](vs-undetected-playwright.md) | Chromium | driver | Python |
|
||||
@@ -64,6 +65,7 @@ need rendering. Each page below states where the other tool covers more.
|
||||
|
||||
## Patched-engine, driver-patch and stealth-plugin tools
|
||||
|
||||
- [invisible_playwright vs Camoufox: two patched Firefoxes](vs-camoufox.md) - Both patch Firefox in C++; how each builds its fingerprint and whether a run replays.
|
||||
- [invisible_playwright vs Patchright: driver vs engine](vs-patchright.md) - Patchright patches the Playwright driver on Chromium; this patches Firefox itself. Often you need both.
|
||||
- [invisible_playwright vs rebrowser-patches: the same CDP fix](vs-rebrowser-patches.md) - Fixes the Runtime.enable CDP leak on Chromium; reaches neither Firefox nor fonts, GPU, canvas, audio.
|
||||
- [undetected-playwright vs a patched Firefox binary](vs-undetected-playwright.md) - Hides Playwright's init-script and bindings tells; a patched Firefox closes the fingerprint layer.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "Computer-use agents and browser fingerprint detection"
|
||||
description: "Clicking by pixel makes driver flags moot; the engine fingerprint and action rhythm stay checkable. This page moved to the invisible_playwright_mcp wiki."
|
||||
description: "Clicking by pixel makes driver flags moot; the engine fingerprint and action rhythm stay checkable. This page moved to the AIHawk wiki."
|
||||
parent: "AI Agents and Frameworks"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 6
|
||||
@@ -9,10 +9,10 @@ nav_order: 6
|
||||
|
||||
# Computer-use agents and browser fingerprint detection
|
||||
|
||||
This page moved to the invisible_playwright_mcp wiki, retargeted at the question people
|
||||
This page moved to the AIHawk wiki, retargeted at the question people
|
||||
actually search:
|
||||
|
||||
**[Claude computer use detected as a bot](https://github.com/oss-invisible/playwright_mcp/wiki/claude-computer-use-detected-as-bot)**
|
||||
**[Claude computer use detected as a bot](https://github.com/feder-cr/AIHawk/wiki/claude-computer-use-detected-as-bot)**
|
||||
|
||||
The core of it, kept here in brief: a coordinate-clicking agent never
|
||||
generates the DOM-automation tells, so `navigator.webdriver` advice mostly
|
||||
|
||||
@@ -73,15 +73,12 @@ row is for a specific situation.
|
||||
|---|---|
|
||||
| `INVISIBLE_PLAYWRIGHT_CACHE_DIR` | Put the cache somewhere else - another drive, a shared location, a path your CI already caches. It holds the engine and this machine's state (the GeoIP database, the font manifest) |
|
||||
| `INVISIBLE_PLAYWRIGHT_ENGINE_DIR` | Keep the engine apart from the state, for example on a read-only disk built once per release: `invisible-playwright fetch` with it set fills it, and a launch only reads it. The cache directory must still be writable |
|
||||
| `INVPW_BINARY_PATH` | Point at a binary you already have, and skip the download |
|
||||
| `STEALTHFOX_GITHUB_TOKEN` | A rate-limited or corporate network that refuses anonymous GitHub downloads |
|
||||
| `INVISIBLE_PLAYWRIGHT_SKEW=allow` | Run a Playwright version outside the tested range anyway |
|
||||
| `INVPW_CURSOR_ENGINE` | `python` (default, same as unset) or `off`. Any other value stops the launch with an error that lists these two |
|
||||
| `INVPW_CURSOR_ENGINE` | `python` (default), `binary`, or `off` |
|
||||
| `INVISIBLE_DOWNLOAD_DEADLINE` | Seconds allowed for one engine download, default `1800`. Raise it on a very slow link; `0` removes the bound |
|
||||
|
||||
A binary you already have is not an environment variable: pass it as
|
||||
`binary_path=` to `InvisiblePlaywright(...)`. That route skips the download, and the
|
||||
engine is still checked against the sealed build, so a different one is refused.
|
||||
|
||||
```bash
|
||||
export INVISIBLE_PLAYWRIGHT_CACHE_DIR=/mnt/big/engines
|
||||
```
|
||||
|
||||
@@ -200,6 +200,6 @@ rather than a free pass.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. CSP enforcement is the
|
||||
browser's own security layer, unaffected by fingerprint patching in either direction.*
|
||||
@@ -188,6 +188,6 @@ seam looks like, and
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. We would rather document the missing field than
|
||||
publish an integration guide for a seam that is not there.*
|
||||
@@ -1,20 +1,20 @@
|
||||
---
|
||||
title: "How a consistency checker decides you are lying"
|
||||
description: "A consistency checker asks whether a browser is telling the truth, not just what it reports. Read from its own source: how it detects a lie and why spoofing scores worse."
|
||||
title: "How CreepJS decides you are lying"
|
||||
description: "CreepJS asks whether a browser is telling the truth, not just what it reports. Read from its own source: how it detects a lie and why spoofing scores worse."
|
||||
parent: "Detectors, Explained"
|
||||
grand_parent: "Guides"
|
||||
nav_order: 2
|
||||
---
|
||||
|
||||
|
||||
# How a consistency checker decides you are lying
|
||||
# How CreepJS decides you are lying
|
||||
|
||||
Most fingerprinting tests ask what your browser reports. A consistency checker mostly asks whether
|
||||
Most fingerprinting tests ask what your browser reports. CreepJS mostly asks whether
|
||||
your browser is *telling the truth*, which is a different question and a much harder
|
||||
one to pass by spoofing.
|
||||
|
||||
Read from the source on 2026-07-27 (the open-source code of a public
|
||||
consistency-checking test page: its tampering module and the module layout) and not from the rendered page, because
|
||||
Read from the source on 2026-07-27 ([`abrahamjuliot/creepjs`](https://github.com/abrahamjuliot/creepjs),
|
||||
`src/lies/index.ts` and the module layout) and not from the rendered page, because
|
||||
the interesting part is the method instead of the numbers it prints.
|
||||
|
||||
## The shape of it
|
||||
@@ -39,7 +39,7 @@ anything else here, and nothing looks tampered with".
|
||||
|
||||
## How it finds tampering
|
||||
|
||||
Four techniques, all visible in its tampering module and [described in general
|
||||
Four techniques, all visible in `src/lies/index.ts` and [described in general
|
||||
terms elsewhere](tostring-native-code-detection.md).
|
||||
|
||||
**A pristine reference.** It creates fresh iframes and reaches into
|
||||
@@ -67,7 +67,7 @@ a native one, shows up here without any cleverness.
|
||||
|
||||
**Blocking the probe is itself recorded.** Among the lie names in the source are
|
||||
`client blocked phantom iframe` and `client blocked behemoth iframe`. If your
|
||||
environment prevents a consistency checker from creating its reference iframes, that prevention is
|
||||
environment prevents CreepJS from creating its reference iframes, that prevention is
|
||||
written down as a lie.
|
||||
|
||||
That last one is the principle worth taking away, and it generalises far beyond this
|
||||
@@ -105,12 +105,12 @@ remains exactly as hard as it was.
|
||||
|
||||
Run directly against a live Playwright-driven Chromium session with no stealth
|
||||
layer of any kind applied - no injected patches, no engine-level work, nothing
|
||||
this project or any comparable tool does. A consistency checker's own headless module returned
|
||||
this project or any comparable tool does. CreepJS's own headless module returned
|
||||
0% headless and 0% stealth, with a 25% "like headless" partial-similarity score
|
||||
alongside them.
|
||||
|
||||
Worth stating plainly what that does and does not mean: it says
|
||||
this one specific, directly-checked session did not trip a consistency checker's headless
|
||||
this one specific, directly-checked session did not trip CreepJS's headless
|
||||
heuristics that day, not that headless or automation detection in general is
|
||||
solved, and not that every Playwright launch configuration scores the same way.
|
||||
The rest of the report - the parts covered throughout this page, the lie
|
||||
@@ -130,14 +130,14 @@ Two things worth doing when you open it:
|
||||
|
||||
## Short answers to the questions that lead here
|
||||
|
||||
**What does the consistency checker score actually mean?** Not "your fingerprint is rare". It means
|
||||
**What does the CreepJS score actually mean?** Not "your fingerprint is rare". It means
|
||||
nothing here contradicts anything else here, and nothing looks tampered with.
|
||||
|
||||
**Why does it detect my stealth plugin?** Four ways, and each is cheap: a pristine copy
|
||||
of the built-ins from a fresh iframe, stack-trace inspection, descriptor and prototype
|
||||
walking, and recording a blocked probe as a lie.
|
||||
|
||||
**Should I block a consistency checker from creating its iframes?** No. Blocking is written down as a
|
||||
**Should I block CreepJS from creating its iframes?** No. Blocking is written down as a
|
||||
lie, by name, in its source. Suppressing a signal is a signal.
|
||||
|
||||
**Why does more patching score worse?** Because every override is another candidate for
|
||||
@@ -149,25 +149,25 @@ JavaScript layer there is no override to find and no seam to detect.
|
||||
|
||||
## Sources
|
||||
|
||||
- The public source repository of a consistency-checking test page,
|
||||
its tampering module and the module layout, read 2026-07-27, for the four
|
||||
- CreepJS's own GitHub repository, [`abrahamjuliot/creepjs`](https://github.com/abrahamjuliot/creepjs),
|
||||
`src/lies/index.ts` and the module layout, read 2026-07-27, for the four
|
||||
tampering-detection techniques and the lie names quoted throughout.
|
||||
- MDN Web Docs, [`HTMLIFrameElement.contentWindow`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow),
|
||||
[`Function.prototype.toString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString),
|
||||
[`Object.getOwnPropertyDescriptor()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor),
|
||||
and [`Object.getPrototypeOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf),
|
||||
retrieved 2026-08-28, for the four native APIs a consistency checker's tampering checks are built on.
|
||||
retrieved 2026-08-28, for the four native APIs CreepJS's tampering checks are built on.
|
||||
- Mozilla's own [Fingerprinting wiki page](https://wiki.mozilla.org/Security/Fingerprinting),
|
||||
retrieved 2026-08-28, for Firefox's `resistFingerprinting` mode, which consistency checker's own
|
||||
retrieved 2026-08-28, for Firefox's `resistFingerprinting` mode, which CreepJS's own
|
||||
`resistance` module identifies.
|
||||
- This project's own testing: a live, unmodified Playwright-driven Chromium session run
|
||||
directly against a consistency checker's headless module, for the 0% headless / 0% stealth scores
|
||||
directly against CreepJS's headless module, for the 0% headless / 0% stealth scores
|
||||
quoted above.
|
||||
|
||||
**See also:** [what sannysoft checks](sannysoft-explained.md), whose canvas-in-iframe test is the same idea in miniature, [the three levels](playwright-stealth-levels.md), and [AudioContext fingerprinting](audiocontext-fingerprinting.md), where its silent-buffer check is worked through in detail.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
|
||||
A consistency checker is a release gate here. The lie names above are quoted from its source and
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
|
||||
CreepJS is a release gate here. The lie names above are quoted from its source and
|
||||
not paraphrased, because the exact strings are what you will see in a report.*
|
||||
@@ -139,6 +139,6 @@ for the reproduction discipline that caught the two wrong fixes here.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level, on a bug that took two wrong committed fixes before
|
||||
the actual cause was reproduced.*
|
||||
@@ -223,6 +223,6 @@ platform tell that no script controls, and
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. The system-colour palette is pinned here because a
|
||||
commercial detector was hashing it and catching the host operating system through it.*
|
||||
@@ -298,7 +298,7 @@ and [the checklist for when one site detects you](playwright-detected-as-bot.md)
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright).
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright).
|
||||
DataDome does not publish its scoring model or the full list of what its
|
||||
collector checks, so this page draws a line between DataDome's own
|
||||
documentation and outside reverse engineering everywhere that line exists,
|
||||
|
||||
@@ -225,7 +225,7 @@ driver layer is the one this page is about.
|
||||
|
||||
---
|
||||
|
||||
*From the notes of [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*From the notes of [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level. All four fixes are in this project's engine and
|
||||
driver, and the fourth one was found by controlled experiment after the first three did
|
||||
not fully close it.*
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 537 KiB |
@@ -66,7 +66,7 @@ families against two different fallbacks. Segoe UI, Calibri, Cambria and Tahoma
|
||||
present against both fallbacks. Consolas reads absent against the monospace fallback
|
||||
and present against the serif one. An invented control family reads absent
|
||||
everywhere. All three browsers return the same
|
||||
answer.](https://raw.githubusercontent.com/oss-invisible/playwright/main/docs/img/font-presence-probe-three-arms.png)
|
||||
answer.](https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/img/font-presence-probe-three-arms.png)
|
||||
|
||||
Run that exact function over ten families with `monospace` as the fallback, on Windows,
|
||||
and Consolas comes back **absent**. Consolas is installed. It is also what `monospace`
|
||||
@@ -293,7 +293,7 @@ and [why headless browsers render a different font set](headless-fonts-differ.md
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The font set is the
|
||||
same on every host by construction, which is the only reason this probe answers
|
||||
the same way whether the process runs on a laptop or a container.*
|
||||
@@ -194,6 +194,6 @@ pass the number as text, `"1.25"`, not as a bare float.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The dead dpr write in this
|
||||
page is one we shipped ourselves, and only caught by reading the value back.*
|
||||
@@ -95,7 +95,7 @@ because shaping is the same in-tree library on both. None of that is Selenium
|
||||
or Playwright; it is what the engine and the machine underneath either of them
|
||||
report. Choosing between the two frameworks does not move any of those 58
|
||||
families. This project exists because of that gap:
|
||||
[invisible_playwright](https://github.com/oss-invisible/playwright) is
|
||||
[invisible_playwright](https://github.com/feder-cr/invisible_playwright) is
|
||||
Playwright's own API, unchanged, driving a Firefox patched at the C++ source
|
||||
rather than the stock build - same protocol and auto-waiting Playwright always
|
||||
had, different browser underneath. It does not touch Selenium's side of this
|
||||
@@ -151,7 +151,7 @@ for the engine question once you have picked a framework.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. This page compares
|
||||
frameworks, not engines - the engine question is a separate page, linked above,
|
||||
because conflating them is the most common mistake in this comparison.*
|
||||
@@ -71,7 +71,7 @@ The engine layer answers those questions before any page loads, which is why
|
||||
this project patches Firefox at the C++ level instead of injecting scripts. The
|
||||
same reasoning shows up when you compare
|
||||
[a patched Firefox against a patched Chromium](firefox-vs-chromium-antidetect.md)
|
||||
or against another Firefox-based build: the durable difference
|
||||
or against [another Firefox-based build](vs-camoufox.md): the durable difference
|
||||
is always where the patch lives, not the brand on the box.
|
||||
|
||||
## The layers the paid product adds: proxy and identity management
|
||||
@@ -227,6 +227,6 @@ cannot substitute for them.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The engine layer
|
||||
is the part I can hand you; the clean IP is the part you still have to bring.*
|
||||
@@ -208,6 +208,6 @@ and [testing detection without fooling yourself with a verdict](how-to-test-bot-
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. It hides that a script is
|
||||
present; the pacing is still yours to get right.*
|
||||
@@ -70,12 +70,6 @@ invisible_playwright resolves DNS through the proxy by default, so names and con
|
||||
exit from the same place. There is no separate switch to remember: pass a SOCKS5 proxy
|
||||
and the hostname goes to the exit, not to your local resolver.
|
||||
|
||||
WebRTC follows the same rule. With a proxy set, the names of STUN and TURN servers in a
|
||||
page's `iceServers` are resolved by the browser over DNS-over-HTTPS, and that request
|
||||
leaves through the proxy of that context (a context with its own proxy uses it), never
|
||||
through your machine's resolver. The browser then connects to the address, not the name.
|
||||
Without a proxy the system resolver is used, as in retail Firefox.
|
||||
|
||||
## Where DNS-over-HTTPS fits
|
||||
|
||||
DNS-over-HTTPS (DoH), standardized in
|
||||
@@ -226,10 +220,6 @@ location is unchanged. It answers "is my lookup readable", not "where does my lo
|
||||
the name and the connection exit from the same place. You just pass a SOCKS5 proxy the normal
|
||||
way.
|
||||
|
||||
**Who resolves the name of a STUN or TURN server?** With a proxy, the browser, over
|
||||
DNS-over-HTTPS through the proxy of that context. Without a proxy, the system resolver, as in
|
||||
retail Firefox.
|
||||
|
||||
**How do I check for a DNS leak?** Positively, through the browser session and not on
|
||||
localhost. Compare the exit IP the destination sees against the address a resolver-echo
|
||||
service reports; if they disagree in location, you have a leak.
|
||||
@@ -259,7 +249,7 @@ closed.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The default that keeps DNS and
|
||||
the connection exiting together is the whole point of this page; the reputation of the exit is
|
||||
still yours to bring.*
|
||||
@@ -225,8 +225,8 @@ the clean IP.
|
||||
- This project's release gates, including the WebRTC gate whose negative-only checks
|
||||
once passed on a feature that was returning nothing, and the timezone derivation
|
||||
that resolves the zone from the egress address.
|
||||
- The public fingerprinting suites - a consistency checker, BotD, an open-source fingerprinting library, a basic bot-test page and
|
||||
A raw-value inspector - read field by field before and after a VPN, which is where the
|
||||
- The public fingerprinting suites - CreepJS, BotD, FingerprintJS, sannysoft and
|
||||
BrowserLeaks - read field by field before and after a VPN, which is where the
|
||||
"one field changed, the rest did not" observation comes from.
|
||||
- [MDN: `Navigator.userAgent`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent),
|
||||
[`Navigator.platform`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform)
|
||||
@@ -248,6 +248,6 @@ the network layer neither a VPN nor a fingerprint fix reaches from JavaScript.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The fingerprint half is
|
||||
what it controls; the clean IP and the human pacing are still yours to supply.*
|
||||
@@ -131,7 +131,7 @@ invisible_playwright is a Firefox patched at the C++ level and driven by stock
|
||||
Playwright, built to look like a real browser operated by a real person. That is why it
|
||||
passes most detection checks that live in the browser: the fingerprint (GPU, canvas,
|
||||
audio, fonts, screen, roughly 400 fields, seed-reproducible), the TLS handshake and the
|
||||
driver layer all read as a genuine Firefox rather than an automated one. A consistency checker,
|
||||
driver layer all read as a genuine Firefox rather than an automated one. A CreepJS,
|
||||
BotD, FingerprintJS or sannysoft run reads it as an ordinary browser because at those
|
||||
layers it is one.
|
||||
|
||||
@@ -203,7 +203,7 @@ pacing and quotas you respect.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The browser is built to
|
||||
look real; the exit IP is still yours to choose, and a chain changes who can trace it,
|
||||
not what the site scores.*
|
||||
@@ -71,7 +71,7 @@ If the identifier is a hash of canvas, WebGL, fonts, audio and TLS, then the onl
|
||||
to present a different identity is to change those underlying values so they hash
|
||||
differently, and to change them together so they still agree with one another. A canvas
|
||||
that says one machine next to a font list that says another is not a new identity, it
|
||||
is a contradiction, and [contradictions are what the tampering-focused suites look for](consistency-checker-explained.md).
|
||||
is a contradiction, and [contradictions are what the tampering-focused suites look for](creepjs-explained.md).
|
||||
|
||||
That is a much harder thing to do than emptying a cookie jar, which is the reason a
|
||||
cookie clear can never do it. The cleared browser still renders canvas the same way and
|
||||
@@ -205,7 +205,7 @@ the layer that no amount of cookie clearing or JavaScript ever reaches.
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. Every session gets a
|
||||
distinct, self-consistent fingerprint from its seed, which is the thing a cookie clear
|
||||
was always trying and failing to be.*
|
||||
@@ -49,7 +49,7 @@ Windows `user_agent` to "look normal".
|
||||
|
||||
You have just built a contradiction. A consistency detector does not care that any
|
||||
single value is plausible. It cares whether values that must agree, do.
|
||||
[a consistency checker is built specifically to catch that](consistency-checker-explained.md): a user agent
|
||||
[CreepJS is built specifically to catch that](creepjs-explained.md): a user agent
|
||||
claiming Windows, sitting on top of a font set that only exists on Linux, next to a
|
||||
GPU string that only exists in a datacenter. Each field is fine alone. Together they
|
||||
describe a machine that cannot exist, and that is a cleaner signal than any single bad
|
||||
@@ -184,12 +184,12 @@ Playwright `Browser`; every documented method works unchanged.
|
||||
- The public consistency detectors named across this doc set, read from their own source
|
||||
rather than from a rendered verdict.
|
||||
|
||||
**See also:** [what a consistency checker actually checks](consistency-checker-explained.md),
|
||||
**See also:** [what CreepJS actually checks](creepjs-explained.md),
|
||||
[why a container gives itself away regardless of the stealth layer](playwright-docker-detection.md),
|
||||
and [keeping canvas and WebGL consistent across platforms](canvas-webgl-cross-platform-consistency.md).
|
||||
|
||||
---
|
||||
|
||||
*Written while maintaining [invisible_playwright](https://github.com/oss-invisible/playwright),
|
||||
*Written while maintaining [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
|
||||
a Firefox patched at the C++ level driven by stock Playwright. The server-OS mismatch in
|
||||
this page is a mistake I shipped before I built the thing that fixes it.*
|
||||
Loaded 100 of 956 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user