diff --git a/webrtc/simplecall.html b/webrtc/simplecall.https.html
similarity index 95%
rename from webrtc/simplecall.html
rename to webrtc/simplecall.https.html
index f27c7ff1e85a16..4d948ee34e37b8 100644
--- a/webrtc/simplecall.html
+++ b/webrtc/simplecall.https.html
@@ -86,11 +86,15 @@
var onIceCandidateToFirst = test.step_func(function(event) {
// If event.candidate is null = no more candidates.
- gSecondConnection.addIceCandidate(event.candidate);
+ if (event.candidate) {
+ gSecondConnection.addIceCandidate(event.candidate);
+ }
});
var onIceCandidateToSecond = test.step_func(function(event) {
- gFirstConnection.addIceCandidate(event.candidate);
+ if (event.candidate) {
+ gFirstConnection.addIceCandidate(event.candidate);
+ }
});
var onRemoteTrack = test.step_func(function(event) {