diff options
| author | Tianren Dong <tianrendong.dtr@gmail.com> | 2026-05-13 02:11:03 -0400 |
|---|---|---|
| committer | Tianren Dong <tianrendong.dtr@gmail.com> | 2026-05-13 02:11:03 -0400 |
| commit | dedf4be1b677284f1215de59fb8f7ab90e9646c8 (patch) | |
| tree | e935e6b4e72dfcea768e5982f859d8c316d84eee /scripts | |
| parent | eb15e9fbc1463bb8d377ab588a3ef99a16777700 (diff) | |
pi-chrome 0.12.1: fix 07/13/21/27/28 anti-automation regressions
- 07 pointer-properties: pass force: 0.5 on every CDP mousePressed so
PointerEvent.pressure reports 0.5 for trusted clicks (was 0,
inconsistent with real mouse behaviour).
- 13 focus-order: after a CDP-driven click on a focusable target,
re-focus with focusVisible: false so :focus-visible matches pointer
focus semantics (CDP press leaves :focus-visible=true otherwise).
- 21 keyboard-modifiers: chrome.debugger.attach occasionally rejects
with 'Cannot access a chrome-extension:// URL of different
extension' immediately after navigation. attachDebugger now waits
180ms, verifies the tab URL isn't privileged, and retries once.
- 27 scroll-momentum + 28 intersection-visibility: replace gentle
~1.25%/step linear taper with a ramp-up (~15%) + geometric decay
(~12% drop/step). Sizes n adaptively so peak event stays ≲22px so
small visibility targets get low-ratio IO samples while a clear
momentum tail remains for decay-pattern detectors.
- trustedDrag mousePressed also gets force: 0.5 (consistency).
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
