getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.89k stars 4.17k forks source link

User Feedback - Add screenshot capability to Crash Report Modal #72404

Open bruno-garcia opened 4 months ago

bruno-garcia commented 4 months ago

Request from Twitter

Today we allow attaching a screenshot when using the User Feedback Widget: image

Allow adding screenshots to feedback captured via the Crash Report Modal

getsantry[bot] commented 4 months ago

Routing to @getsentry/product-owners-user-feedback for triage ⏲️

smeubank commented 4 months ago

@andreiborza and @mydea speak of the feature and @bruno-garcia will write an issue :D

andreiborza commented 4 months ago

I'm not sure this can easily be added given that the crash report modal renders on the server and is embedded via an iframe on the client. I don't know how the screenshot capability is implemented, but I wouldn't be surprised if the iframe has no access to the parent page.

Edit: A workaround could be to do these via window messaging, similarly to how onClose works. It's ugly but should work.