[web-platform-tests] Pull Request: setup onnegotiationneeded before checking it

wpt-pr-bot has just labeled a pull request from nils-ohlmeier for https://github.com/w3c/web-platform-tests as "wg-webrtc":

== setup onnegotiationneeded before checking it ==
It look like @soareschen had a little misconception here: browsers do not store events for ever until the JS application adds a callback function. If there is no callback function registered at time of the event the event goes to void.

The other problem this fixes is that if you just call CreateOffer() without attaching any track/stream and without any options it results in the browser refusing to anything with an empty offer.

The current tests are causing intermittent test failures in Firefox Ci system, see https://bugzilla.mozilla.org/show_bug.cgi?id=1386143

The last test "negotiationneeded event should fire only after signaling state go back to stable" in here is still causing failures on Firefox although it should pass. I gave up trying to fix it.

See https://github.com/w3c/web-platform-tests/pull/7001

Received on Thursday, 24 August 2017 23:18:17 UTC