capiumbrowser 1.3.4__tar.gz → 1.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {capiumbrowser-1.3.4/capiumbrowser.egg-info → capiumbrowser-1.3.5}/PKG-INFO +3 -3
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/README.md +2 -2
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/_version.py +1 -1
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/browser.py +25 -1
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/channels.json +7 -7
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/config.py +17 -7
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5/capiumbrowser.egg-info}/PKG-INFO +3 -3
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/pyproject.toml +1 -1
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_config_args.py +4 -3
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/LICENSE +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/MANIFEST.in +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/__init__.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/__main__.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/_driver.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/android-phones.json +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/browser-brands.json +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/browser_async.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/desktop.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/errors.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/human/__init__.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/human/behavior.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/ios-phones.json +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/licensing/__init__.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/licensing/client.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/licensing/download.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/licensing/readiness.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/mobile.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/network/__init__.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser/network/proxy.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser.egg-info/SOURCES.txt +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser.egg-info/dependency_links.txt +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser.egg-info/entry_points.txt +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser.egg-info/requires.txt +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/capiumbrowser.egg-info/top_level.txt +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/setup.cfg +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_channels_manifest.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_desktop_brands.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_download_contract.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_geoip_flags.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_ios_profiles.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_launch_viewport.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_license_readiness.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_mobile_profiles.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_proxy.py +0 -0
- {capiumbrowser-1.3.4 → capiumbrowser-1.3.5}/tests/test_version_tables_consistent.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capiumbrowser
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.5
|
|
4
4
|
Summary: Drop-in stealth browser SDK on top of Playwright (Capium Chromium).
|
|
5
5
|
Author: Capzy
|
|
6
6
|
License: Capzy capiumbrowser SDK License
|
|
@@ -558,7 +558,7 @@ launch(seed=200123, args=[
|
|
|
558
558
|
| `--fingerprint-hardware-concurrency=<n>` | `navigator.hardwareConcurrency` (CPU cores). |
|
|
559
559
|
| `--fingerprint-screen-width=<n>` / `--fingerprint-screen-height=<n>` | `screen.width` / `screen.height`. |
|
|
560
560
|
| `--fingerprint-device-scale-factor=<f>` | `devicePixelRatio`. |
|
|
561
|
-
| `--fingerprint-storage-quota=<GB>` | `navigator.storage.estimate().quota` in **gigabytes** (also affects incognito-from-quota checks). Auto-set
|
|
561
|
+
| `--fingerprint-storage-quota=<GB>` | `navigator.storage.estimate().quota` in **gigabytes** (also affects incognito-from-quota checks). Auto-set to 10 GB by the SDK (stock-Chrome-coherent) so the real host/container disk never leaks — including on Windows, where no wrapper runs. |
|
|
562
562
|
|
|
563
563
|
**Rendering & noise**
|
|
564
564
|
|
|
@@ -766,7 +766,7 @@ launches **headed**, which reads cleaner than headless.
|
|
|
766
766
|
The SDK auto-detects your host and downloads the matching tag; macOS Intel and Windows ARM are **not**
|
|
767
767
|
published and raise a clear error.
|
|
768
768
|
<!-- capium:release-line -->
|
|
769
|
-
The **1.3.
|
|
769
|
+
The **1.3.5** release ships Chromium **156.0.8078.48** on Windows x64, macOS arm64 and **156.0.8078.47** on Linux x64 (packaging revision **6**). Browser downloads require a valid license. Linux arm64 remains declared but unpublished.
|
|
770
770
|
<!-- /capium:release-line -->
|
|
771
771
|
|
|
772
772
|
---
|
|
@@ -495,7 +495,7 @@ launch(seed=200123, args=[
|
|
|
495
495
|
| `--fingerprint-hardware-concurrency=<n>` | `navigator.hardwareConcurrency` (CPU cores). |
|
|
496
496
|
| `--fingerprint-screen-width=<n>` / `--fingerprint-screen-height=<n>` | `screen.width` / `screen.height`. |
|
|
497
497
|
| `--fingerprint-device-scale-factor=<f>` | `devicePixelRatio`. |
|
|
498
|
-
| `--fingerprint-storage-quota=<GB>` | `navigator.storage.estimate().quota` in **gigabytes** (also affects incognito-from-quota checks). Auto-set
|
|
498
|
+
| `--fingerprint-storage-quota=<GB>` | `navigator.storage.estimate().quota` in **gigabytes** (also affects incognito-from-quota checks). Auto-set to 10 GB by the SDK (stock-Chrome-coherent) so the real host/container disk never leaks — including on Windows, where no wrapper runs. |
|
|
499
499
|
|
|
500
500
|
**Rendering & noise**
|
|
501
501
|
|
|
@@ -703,7 +703,7 @@ launches **headed**, which reads cleaner than headless.
|
|
|
703
703
|
The SDK auto-detects your host and downloads the matching tag; macOS Intel and Windows ARM are **not**
|
|
704
704
|
published and raise a clear error.
|
|
705
705
|
<!-- capium:release-line -->
|
|
706
|
-
The **1.3.
|
|
706
|
+
The **1.3.5** release ships Chromium **156.0.8078.48** on Windows x64, macOS arm64 and **156.0.8078.47** on Linux x64 (packaging revision **6**). Browser downloads require a valid license. Linux arm64 remains declared but unpublished.
|
|
707
707
|
<!-- /capium:release-line -->
|
|
708
708
|
|
|
709
709
|
---
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import os
|
|
18
18
|
import platform as _platform
|
|
19
19
|
|
|
20
|
-
__version__ = "1.3.
|
|
20
|
+
__version__ = "1.3.5"
|
|
21
21
|
|
|
22
22
|
# Used only if channels.json can't be read (corrupt/removed install). ensure_binary() raises a
|
|
23
23
|
# clear error long before the "unsupported platform" case matters; this keeps lookups total.
|
|
@@ -119,6 +119,24 @@ def _has_screen_override(extra):
|
|
|
119
119
|
return any(isinstance(a, str) and a.startswith(keys) for a in extra)
|
|
120
120
|
|
|
121
121
|
|
|
122
|
+
def _accept_language_chain(locale):
|
|
123
|
+
"""Return a coherent Accept-Language value for a persona locale.
|
|
124
|
+
|
|
125
|
+
A real localized Chrome exposes the bare-language fallback after a region
|
|
126
|
+
tag -- navigator.languages == ["de-DE", "de"] -- so a lone region tag is a
|
|
127
|
+
fingerprint coherence tell. Expand a single "xx-YY" into "xx-YY,xx". A value
|
|
128
|
+
that is already a list (contains a comma) is passed through unchanged.
|
|
129
|
+
"""
|
|
130
|
+
if not locale or "," in locale:
|
|
131
|
+
return locale
|
|
132
|
+
tag = locale.strip()
|
|
133
|
+
if "-" in tag:
|
|
134
|
+
primary = tag.split("-", 1)[0]
|
|
135
|
+
if primary and primary != tag:
|
|
136
|
+
return "%s,%s" % (tag, primary)
|
|
137
|
+
return tag
|
|
138
|
+
|
|
139
|
+
|
|
122
140
|
def _build_args(seed, platform, stealth_args, timezone, locale, extension_paths, extra,
|
|
123
141
|
headless=False, mobile_device=None, browser_brand=None):
|
|
124
142
|
args = []
|
|
@@ -128,11 +146,17 @@ def _build_args(seed, platform, stealth_args, timezone, locale, extension_paths,
|
|
|
128
146
|
# the caller has not provided screen/window flags.
|
|
129
147
|
if headless and platform not in ("android", "ios") and not _has_screen_override(extra):
|
|
130
148
|
args += config.get_headless_default_args()
|
|
149
|
+
# Pin NEW headless explicitly. Chromium removed legacy headless in M128, so
|
|
150
|
+
# the 156 engine only ever runs new headless; spelling out --headless=new
|
|
151
|
+
# keeps the launch self-documenting and robust to driver defaults. Skip when
|
|
152
|
+
# the caller already chose a --headless mode in their own args.
|
|
153
|
+
if headless and not any(str(a).startswith("--headless") for a in (extra or [])):
|
|
154
|
+
args.append("--headless=new")
|
|
131
155
|
if timezone:
|
|
132
156
|
args.append("--timezone=%s" % timezone) # capium in-binary tz spoof
|
|
133
157
|
if locale:
|
|
134
158
|
args.append("--lang=%s" % locale)
|
|
135
|
-
args.append("--accept-lang=%s" % locale)
|
|
159
|
+
args.append("--accept-lang=%s" % _accept_language_chain(locale))
|
|
136
160
|
if extension_paths:
|
|
137
161
|
paths = extension_paths if isinstance(extension_paths, (list, tuple)) else [extension_paths]
|
|
138
162
|
joined = ",".join(paths)
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_comment": "SINGLE SOURCE OF TRUTH for the current stable Capium browser build per OS/arch. Each OS reaches stable independently -- edit one entry without touching the others. This file ships inside the wheel (the SDK reads it to pick each host's stable build) AND is published to the download server by the release pipeline. `version` is the reported Chromium version (what the browser reports to the customer, names the R2 folder); `engine_version` is the actual built Chromium engine (box_package verifies the binary against it) -- it differs from `version` when a platform reports a spoofed patch (Windows/macOS report .48 on the .47 engine). `revision` is our packaging counter -- the served R2 folder is chromium-v<version>.<revision>/, ALWAYS dotted-suffixed starting at 1. A Chromium version bump resets revision to 1. `published: false` means the tag is declared but no artifact exists yet.",
|
|
3
3
|
"schema": 1,
|
|
4
|
-
"updated": "2026-
|
|
4
|
+
"updated": "2026-11-01",
|
|
5
5
|
"channels": {
|
|
6
6
|
"stable": {
|
|
7
7
|
"windows-x64": {
|
|
8
8
|
"version": "156.0.8078.48",
|
|
9
9
|
"engine_version": "156.0.8078.47",
|
|
10
|
-
"revision":
|
|
11
|
-
"sha256": "
|
|
10
|
+
"revision": 6,
|
|
11
|
+
"sha256": "a1b0767ec751293c24ebced5a7db201ae6e3d25192b4b4863fd5d29b24ceb170",
|
|
12
12
|
"published": true,
|
|
13
13
|
"license_status_protocol": 1
|
|
14
14
|
},
|
|
15
15
|
"macos-arm64": {
|
|
16
16
|
"version": "156.0.8078.48",
|
|
17
17
|
"engine_version": "156.0.8078.47",
|
|
18
|
-
"revision":
|
|
19
|
-
"sha256": "
|
|
18
|
+
"revision": 6,
|
|
19
|
+
"sha256": "15e9aceb8b7b45bb10a78a78ea0ea5dc62aa5b7f6f6fd3646b7f7087f25af0fd",
|
|
20
20
|
"published": true,
|
|
21
21
|
"license_status_protocol": 1
|
|
22
22
|
},
|
|
23
23
|
"linux-x64": {
|
|
24
24
|
"version": "156.0.8078.47",
|
|
25
25
|
"engine_version": "156.0.8078.47",
|
|
26
|
-
"revision":
|
|
27
|
-
"sha256": "
|
|
26
|
+
"revision": 6,
|
|
27
|
+
"sha256": "e1a5291180289c4adf51395660544e11ab709816dfdf6597fb92eec5ef82d29a",
|
|
28
28
|
"published": true,
|
|
29
29
|
"license_status_protocol": 1
|
|
30
30
|
},
|
|
@@ -21,7 +21,17 @@ import shutil
|
|
|
21
21
|
# The historical 153 package lacked its ICD manifest;
|
|
22
22
|
# the 155 packager includes it. Validate drawing in
|
|
23
23
|
# the deployed environment for either backend.
|
|
24
|
-
|
|
24
|
+
# --disable-popup-blocking / --disable-ipc-flooding-protection : Playwright/
|
|
25
|
+
# Puppeteer inject these, but a normal user
|
|
26
|
+
# session leaves popup blocking and IPC flood
|
|
27
|
+
# protection ON. Bot detectors (rebrowser) probe
|
|
28
|
+
# for both, so strip them and keep real defaults.
|
|
29
|
+
IGNORE_DEFAULT_ARGS = [
|
|
30
|
+
"--enable-automation",
|
|
31
|
+
"--enable-unsafe-swiftshader",
|
|
32
|
+
"--disable-popup-blocking",
|
|
33
|
+
"--disable-ipc-flooding-protection",
|
|
34
|
+
]
|
|
25
35
|
|
|
26
36
|
|
|
27
37
|
# The 155 engine selects a seeded screen within these default bounds. The headless
|
|
@@ -123,12 +133,12 @@ def get_default_stealth_args(seed=None, platform="windows", screen=None, mobile_
|
|
|
123
133
|
if platform:
|
|
124
134
|
args.append("--fingerprint-platform=%s" % platform)
|
|
125
135
|
# Storage quota: navigator.storage.estimate().quota otherwise reports the real
|
|
126
|
-
# host disk
|
|
127
|
-
#
|
|
128
|
-
#
|
|
129
|
-
#
|
|
130
|
-
# wrapper sees this flag (HAVE_QUOTA=1) and defers to it
|
|
131
|
-
args.append("--fingerprint-storage-quota
|
|
136
|
+
# host disk, which both leaks disk size and lets every profile on one machine be
|
|
137
|
+
# linked (same disk -> same quota), and on Windows it is UNSPOOFED because no bash
|
|
138
|
+
# wrapper runs there. Pin a flat 10 GB -- the value stock Chrome reports (verified
|
|
139
|
+
# on real hardware), and a quota real profiles on a shared disk would agree on.
|
|
140
|
+
# On Linux/macOS the wrapper sees this flag (HAVE_QUOTA=1) and defers to it.
|
|
141
|
+
args.append("--fingerprint-storage-quota=10")
|
|
132
142
|
args += [
|
|
133
143
|
# Allow third-party cookies (reCAPTCHA/login flows need them). capium blocks 3p cookies
|
|
134
144
|
# by DEFAULT (fpc sets CookieControlsMode=kBlockThirdParty); --fingerprint-allow-3p-cookies
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capiumbrowser
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.5
|
|
4
4
|
Summary: Drop-in stealth browser SDK on top of Playwright (Capium Chromium).
|
|
5
5
|
Author: Capzy
|
|
6
6
|
License: Capzy capiumbrowser SDK License
|
|
@@ -558,7 +558,7 @@ launch(seed=200123, args=[
|
|
|
558
558
|
| `--fingerprint-hardware-concurrency=<n>` | `navigator.hardwareConcurrency` (CPU cores). |
|
|
559
559
|
| `--fingerprint-screen-width=<n>` / `--fingerprint-screen-height=<n>` | `screen.width` / `screen.height`. |
|
|
560
560
|
| `--fingerprint-device-scale-factor=<f>` | `devicePixelRatio`. |
|
|
561
|
-
| `--fingerprint-storage-quota=<GB>` | `navigator.storage.estimate().quota` in **gigabytes** (also affects incognito-from-quota checks). Auto-set
|
|
561
|
+
| `--fingerprint-storage-quota=<GB>` | `navigator.storage.estimate().quota` in **gigabytes** (also affects incognito-from-quota checks). Auto-set to 10 GB by the SDK (stock-Chrome-coherent) so the real host/container disk never leaks — including on Windows, where no wrapper runs. |
|
|
562
562
|
|
|
563
563
|
**Rendering & noise**
|
|
564
564
|
|
|
@@ -766,7 +766,7 @@ launches **headed**, which reads cleaner than headless.
|
|
|
766
766
|
The SDK auto-detects your host and downloads the matching tag; macOS Intel and Windows ARM are **not**
|
|
767
767
|
published and raise a clear error.
|
|
768
768
|
<!-- capium:release-line -->
|
|
769
|
-
The **1.3.
|
|
769
|
+
The **1.3.5** release ships Chromium **156.0.8078.48** on Windows x64, macOS arm64 and **156.0.8078.47** on Linux x64 (packaging revision **6**). Browser downloads require a valid license. Linux arm64 remains declared but unpublished.
|
|
770
770
|
<!-- /capium:release-line -->
|
|
771
771
|
|
|
772
772
|
---
|
|
@@ -15,11 +15,12 @@ def test_seed_and_platform_flags():
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
def test_storage_quota_formula():
|
|
18
|
-
#
|
|
18
|
+
# Flat 10 GB on every desktop persona (stock-Chrome-coherent; profiles on one disk
|
|
19
|
+
# share a quota), regardless of seed.
|
|
19
20
|
a1 = config.get_default_stealth_args(seed=12345, platform="linux", screen=None)
|
|
20
|
-
assert "--fingerprint-storage-quota=
|
|
21
|
+
assert "--fingerprint-storage-quota=10" in a1
|
|
21
22
|
a2 = config.get_default_stealth_args(seed=1000, platform="linux", screen=None)
|
|
22
|
-
assert "--fingerprint-storage-quota=
|
|
23
|
+
assert "--fingerprint-storage-quota=10" in a2
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
def test_windows_gets_font_metrics_others_do_not():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|