Commit 3570113
authored
fix(cf): add slow fallback token poll for managed/invisible widgets (#117)
Managed/invisible Turnstile widgets (e.g. Ahrefs) auto-solve after
30-60s but the fast 20ms hook poll stops once hooks are installed.
The render() callback handles most cases, but managed widgets can
solve after the fast poll exits — leaving only auto_navigation
(page navigates) to resolve, causing 50-60s ghost traces in
cf.resolutionRace.
Add a 1s getResponse() fallback poll (90s lifetime) that catches
tokens from widgets solved after the fast poll stops. This should
eliminate the remaining ghost traces not fixed by PR #116's bridge
event buffering.1 parent befb49d commit 3570113
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
137 | 156 | | |
0 commit comments