-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Failed to execute 'matches' on 'Element': 'body *:not(style,script)' is not a valid selector. #6618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same problem, is any update? |
Does this mean it doesn't not reproduce on other devices? |
@bruno-garcia All the error are appearing on Android 10 and above... Particularly on these devices browsers :
here is the list of all the errors: https://sentry.io/organizations/umai/issues/3824145610/events/?project=5264087&referrer=issue-stream |
Hmm, I guess this happens because the browser does not support the selector Maybe it works if we rewrite it as new Replay({
maskAllText: false,
maskTextSelector: 'body *:not(style), body *:not(script)'
}) |
I agree with you. selector list argument support in low version of android is not good. still some android device stay in 4.4 kernel |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/react (replay)
SDK Version
7.27.0
Framework Version
React 16.14.0
Link to Sentry event
https://sentry.io/organizations/umai/issues/3824145610/events/2b4e1809b6b3476bbedc4b7534cede98/?project=5264087#breadcrumbs
Steps to Reproduce
I upgraded sentry to
7.27.0
and addedReplay
integrations. which started causing this issue.Moreover, it appears that events for this error are happening for Android device.
Expected Result
Should not throw the error on using sentry replay. Furthermore, my application is traditional app which is using sentry for exception handling.
Here are the list of all the event happening for this issue on our application:
https://sentry.io/organizations/umai/issues/3824145610/events/30be290df3874c4bbdfa9b0aaff0030b/events/?project=5264087&referrer=replay-console%2F
Actual Result
breaks on line:
… ules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js in needMaskingText at line 264:16
breaks on line :
(node.matches(maskTextSelector))
The text was updated successfully, but these errors were encountered: