mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 00:02:31 +00:00
* fix: address pr-bug-scan validated finding from #6335 Replaced unguarded crypto.randomUUID() with the established createBrowserUuid() fallback in both markup shape-id call sites. * fix(review): cover markup crypto fallback call sites with regression tests PR #8804 replaced two unguarded crypto.randomUUID() calls with createBrowserUuid(), matching the convention established in #5471, but shipped without extending that PR's regression-test pattern to the new call sites. Add hook-level tests for useMarkupPointerHandlers.onPointerDown and useMarkupEditor.commitPendingText under a simulated non-secure-context crypto global. Co-authored-by: Orca <help@stably.ai> * fix(review): consolidate annotation bridge token onto createBrowserUuid BrowserPane had its own inline crypto.randomUUID guard with a Date.now()+Math.random() fallback, duplicating the getRandomValues-based fallback already centralized in createBrowserUuid() and used at every other call site in the renderer. Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai> Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Co-authored-by: Orca <help@stably.ai>