-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Cannot read property 'sdp' of undefined in Brave #701
Comments
Well, if browser breaks standard APIs, I don't think library should do anything about it. |
You're correct that it's weird and nonstandard, and perhaps they shouldn't be doing it but part of the reason you use a library is to paper over the cracks in differences between implementations. I note there are already workarounds for other bad browser behaviour.
The error occurs during the process of negotiating a connection. In order to make that detection you'd have to start negotiating a connection outside of simple-peer which means you're deep in WebRTC plumbing which sort of negates the point of using simple-peer in the first place. |
Has anyone filed an issue with brave? I understand the intention to limit the ip gathering but this solution is quite... harmful |
It seems to only happen when on an IP domain (e.g. |
This appears to be related to Brave blocking browser fingerprinting, but the promise returned from RTCPeerConnection.createOffer can resolve to
undefined
(and not throw) resulting in the following error:If you disable Shields in Brave it works as expected.
I'm not sure what
simple-peer
can do about that, other than guard onoffer
being undefined, treat it as a failure case and throw an appropriate error.Similar issue: webrtcHacks/adapter#1028
The text was updated successfully, but these errors were encountered: