Repository navigation
fix(ios): Honor Sentry.Mask in error screenshots - #6974
Merged
Merged
Conversation
Register RNSentryReplayMask as a masked view class for screenshots so <Sentry.Mask> is masked in JS error screenshots, the same as in Session Replay. The native SDK only lets hybrid SDKs set the mask container class on the replay photographer, not the screenshot one. Fixes #6970 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 7218536. Configure here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📲 Install BuildsAndroid
|
antonis
marked this pull request as ready for review
October 30, 2026 07:25
antonis
requested review from
alwx and
buenaflor
and removed request for
a team
October 30, 2026 07:25
alwx
approved these changes
Oct 30, 2026
3 tasks done
This was referenced Nov 24, 2026
antonis
added a commit
that referenced
this pull request
Nov 26, 2026
* chore(tooling): Add verify-pr skill for on-device PR verification Adds a local skill that verifies a PR end to end on an Android emulator: build the sample without and with the change, drive it with Maestro, find both runs' events in sentry-sdks through the Sentry MCP, and write a draft before/after report. The sample tags events with verify.pr, verify.commit and verify.run_id when launched with matching launch arguments, and does nothing otherwise. It also enables logs in sentry.options.json, so native Android matches the JS enableLogs setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(tooling): Write verify-pr scenarios per run, not into the skill Scenarios were one-off per PR and nothing runs them, so a shared folder would grow and rot. Move the #7087 flow to flows/examples/ as the worked example and regression check, write each run's flow next to its report, and promote to flows/steps/ only when a second run needs it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(tooling): Add iOS simulator support to the verify-pr skill From verifying #7087 and #6974 on the iOS simulator: Pods setup and the files pod install rewrites, the iOS init path, Maestro differences (no `back`, tab icons and the Playground tab need ids), reading screenshot attachments back from Sentry, and a two-color probe for masking checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(tooling): Fold iOS acceptance-run findings into verify-pr Save the revert as a patch file, compare dist/ against packages/core/src, define verify.commit for both sides, reinstall Pods every iOS run, shut down booted devices, and keep attachment URLs out of reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(sample): Add a screenshot masking probe to the Playground tab A two-color view inside the existing <Sentry.Mask> demo, plus a button that captures an exception with the demo on screen. The view is neither text nor an image, so only <Sentry.Mask> can hide it in the event's screenshot; a masked probe is one flat color. Used to verify #6974. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(tooling): Add a pre-build gate and open-PR handling to verify-pr From running the skill on open PRs (#7042, #7030): a "Not verifiable this way" verdict decided before any build (build-only claims, triggers a simulator can't produce, native APIs missing from the pinned SDK, low disk), guidance for feature PRs and open PRs, checks for node_modules, run tagging and spec codegen, release builds by default, and evidence for replay recording content and JS-thread blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📢 Type of change
📜 Description
This PR adds
RNSentryReplayMasktooptions.screenshot.maskedViewClassesinRNSentryStart. The whole wrapper is masked, which covers its children the same way the replay mask container does. AnymaskedViewClassesthe user passes are kept.💡 Motivation and Context
Fixes #6970
💚 How did you test it?
RNSentryStartTestscases📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps