Skip to content

[Session Replay] Add ability to mask or suppress touch input over sensitive views and WebViews #8462

Closed

Description

@bengineerdavis

Problem Statement

When Session Replay is enabled, raw touch coordinates (taps and swipes) are recorded globally across the screen, even when the user is interacting with visually masked elements like password fields, custom keypads, or sensitive WebViews.

This creates a PII and security vulnerability. We currently have an enterprise customer using a work-around to avoid being blocked from shipping their app because observers can reconstruct user PINs and passwords simply by watching where the tap indicators land over a visually redacted WebView.

Today, sentry-java provides no mechanism to suppress touch recording over visually masked view boundaries, nor does it offer a programmatic API (like pauseTouchTracking()) to temporarily disable gesture capture during sensitive user flows without completely shutting down the replay engine.

Related Issues

Solution Brainstorm

No response

Are you willing to submit a PR?

No response

Activity

  1. linear-code commented on Jul 17, 2026

    @linear-code
  2. christophaigner commented on Oct 23, 2026

    @christophaigner
    Member

    A quick update here: Manual Session Replay controls shipped in 9.27.0. You can call SentrySDK.replay.pause() before showing sensitive content and SentrySDK.replay.resume() afterward to continue the same replay. Pausing excludes screenshots and touch events during that interval.

  3. added a commit that references this issue on Nov 18, 2026
    25e5bb6
  4. github-actions commented on Nov 26, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #9587, which was included in the 9.36.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions