kshitijk4poor
37a1c75716
fix(browser): hardening — dead code, caching, scroll perf, security, thread safety
Salvaged from PR #7276 (hardening-only subset; excluded 6 new tools
and unrelated scope additions from the contributor's commit).
- Remove dead DEFAULT_SESSION_TIMEOUT and unregistered browser_close schema
- Fix _camofox_eval wrong call signatures (_ensure_tab, _post args)
- Cache _find_agent_browser, _get_command_timeout, _discover_homebrew_node_dirs
- Replace 5x subprocess scroll loop with single pixel-arg call
- URL-decode before secret exfiltration check (bypass prevention)
- Protect _recording_sessions with _cleanup_lock (thread safety)
- Return failure on empty stdout instead of silent success
- Structure-aware _truncate_snapshot (cut at line boundaries)
Follow-up improvements over contributor's original:
- Move _EMPTY_OK_COMMANDS to module-level frozenset (avoid per-call allocation)
- Fix list+tuple concat in _run_browser_command PATH construction
- Update test_browser_homebrew_paths.py for tuple returns and cache fixtures
Co-authored-by: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com>
Closes #7168, closes #7171, closes #7172, closes #7173
2026-04-10 13:05:44 -07:00
..
2026-04-10 03:45:36 -07:00
2026-04-10 13:05:01 -07:00
2026-04-10 05:19:26 -07:00
2026-04-10 03:20:05 -07:00
2026-04-10 05:54:56 -07:00
2026-04-07 17:28:37 -07:00
2026-03-14 14:27:20 +03:00
2026-04-10 05:54:56 -07:00
2026-04-10 12:51:19 -07:00
2026-04-05 12:34:11 -07:00
2026-03-24 07:30:25 -07:00
2026-04-08 23:54:15 -07:00
2026-04-10 13:05:01 -07:00
2026-04-09 14:28:35 -07:00
2026-04-10 13:05:44 -07:00
2025-10-01 23:29:25 +00:00
2026-04-09 13:17:06 -07:00
2026-03-17 02:53:33 -07:00
2026-03-13 23:59:12 -07:00
2026-04-07 17:59:42 -07:00
2026-04-09 11:27:41 -07:00
2026-03-15 21:59:53 -07:00
2026-04-10 05:53:10 -07:00
2026-04-10 03:48:42 +05:30
2026-04-09 02:41:56 -07:00
2026-04-02 15:33:51 -07:00
2026-03-29 15:47:19 -07:00
2026-03-24 08:19:23 -07:00
2026-04-07 17:59:42 -07:00
2026-03-20 15:41:06 -04:00
2026-04-05 23:31:29 -07:00
2026-04-07 22:23:28 -07:00
2026-03-30 17:34:43 -07:00
2026-04-02 09:21:37 -07:00
2026-04-08 00:41:36 -07:00
2026-03-19 15:16:35 +01:00
2026-04-10 03:44:43 -07:00
2026-02-26 13:54:20 +03:00
2026-03-09 23:27:19 -07:00
2026-03-30 13:16:16 -07:00
2026-03-30 20:36:56 -07:00
2026-03-30 13:28:10 +09:00