Skip to content
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

Fix datachannel test breaking Modernizr on PS4 #2599

Merged
merged 1 commit into from
Sep 4, 2020
Merged

Fix datachannel test breaking Modernizr on PS4 #2599

merged 1 commit into from
Sep 4, 2020

Conversation

guilhermesimoes
Copy link
Contributor

@guilhermesimoes guilhermesimoes commented Sep 4, 2020

On PS4 the following happens:

new webkitRTCPeerConnection(null)
TypeError: RTCPeerConnection argument must be a valid Dictionary

new webkitRTCPeerConnection({})
TypeError: Error creating RTCPeerConnection

Screenshot:
Screenshot 2020-09-04 at 15 06 59

Duplicate of #2221, but that PR has been open for 2 years and has conflicts.

@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #2599 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2599   +/-   ##
=======================================
  Coverage   95.15%   95.15%           
=======================================
  Files           5        5           
  Lines         165      165           
=======================================
  Hits          157      157           
  Misses          8        8           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee2cc21...d9c51ea. Read the comment docs.

try {
var peerConnection = new PeerConnectionConstructor({});
return 'createDataChannel' in peerConnection;
} catch (e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it errors shouldnt it return false then since the test fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because this is inside a loop. We don't want to return false if the first iteration fails, we want to try them all.

@rejas rejas merged commit 461321e into Modernizr:master Sep 4, 2020
@rejas
Copy link
Member

rejas commented Sep 4, 2020

So, is this something that you need soonish or can it wait for an unknown amount of time until v4 is released?

@Markel
Copy link
Contributor

Markel commented Sep 4, 2020

So, is this something that you need soonish or can it wait for an unknown amount of time until v4 is released?

As of some hope I already implemented the changes to the v4 PR 346f0c7. But yeah, the v4 version release date is pretty much unknown

@guilhermesimoes
Copy link
Contributor Author

Ah, no, worries, I created a custom build with my fix. Cheers 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants