Files
orca/mobile/app
Jinwoo-H 754332b322 fix(mobile-web): gate the native alert on a recent user gesture
native.alert raised an OS-authority modal on demand, with only a 4-token bucket
between a compromised page and a sustained stream of system-looking dialogs.
It now requires a recent gesture.

The gesture is witnessed, not spent: page-side callers open a confirm dialog and
then run the gated action it confirms, and consuming here would deny that action.
A denied alert degrades to the page's own modal through the existing fallback,
so error surfacing after a slow async failure still reaches the user.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-01 17:23:20 -04:00
..