Commit 56268a2
fix(fetch): make navigator.webdriver value an explicit config choice
Addresses Law 1 concern: the webdriver patch value was hardcoded to
`undefined`, which is an implicit behavior choice that fails Rebrowser
while passing other detectors.
Introduces WebdriverValue enum (False | Undefined) on BrowserFetchConfig:
- False (default): matches real non-automated Chrome behavior
- Undefined: property appears deleted, passes classic detectors
Default changed from `undefined` to `false`. This is now an explicit,
auditable config input — not hidden detection-driven logic.
Live test results after fix:
- Rebrowser: 10/10 PASS (was 9/10, webdriver now passes)
- Sannysoft: 55/56 PASS (PluginArray prototype, unchanged)
- All 5 stealth tests green
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a408f5f commit 56268a2
2 files changed
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
36 | 54 | | |
37 | 55 | | |
38 | 56 | | |
| |||
46 | 64 | | |
47 | 65 | | |
48 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
49 | 70 | | |
50 | 71 | | |
51 | 72 | | |
| |||
57 | 78 | | |
58 | 79 | | |
59 | 80 | | |
| 81 | + | |
60 | 82 | | |
61 | 83 | | |
62 | 84 | | |
| |||
575 | 597 | | |
576 | 598 | | |
577 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
578 | 606 | | |
579 | 607 | | |
580 | 608 | | |
| |||
583 | 611 | | |
584 | 612 | | |
585 | 613 | | |
586 | | - | |
| 614 | + | |
| 615 | + | |
587 | 616 | | |
588 | | - | |
| 617 | + | |
589 | 618 | | |
590 | 619 | | |
591 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | | - | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
0 commit comments