Closed Bug 1661302 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 25248 - [Sheriff] Revert "[Perfect Negotiation] Surface session descriptions at the right time."

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 25248 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/25248
Details from upstream follow.

Amr Aboelkher <amraboelkher@google.com> wrote:

[Sheriff] Revert "[Perfect Negotiation] Surface session descriptions at the right time."

This reverts commit 3bc91ccc927f8eb887a84a1e59f34c88518ce2ab.

Reason for revert: Failure of WebKit Linux ASAN build, and that's the suspect for root cause. See https://ci.chromium.org/p/chromium/builders/ci/WebKit%20Linux%20ASAN/17329

Original change's description:

[Perfect Negotiation] Surface session descriptions at the right time.

This fixes another timing related issue that blocks Perfect Negotiation.

Before this CL, current/pending local/remote description attributes do
blocking-invokes on the webrtc thread, fetching the most up-to-date
states. This can prematurely expose the result of "in-parallel"
operations that have not surfaced yet, such as:

  • setLocalDescription
  • setRemoteDescription
  • addIceCandidate

This CL fixes that by copying the SDP states when any of these
operations complete on the WebRTC thread and carry them over in the
PostTask to the main thread. Here, we store these snapshots in
"internal slots" (variables living on the main thread). With this CL,
reading SDP attributes from RTCPeerConnection is non-blocking and
spec-compliant.

WPT test coverage added for the exact timing of SLD/SRD and other test
expectations are updated. addIceCandidate updating the SDP is already
covered by old WPTs.

Bug: chromium:1110347
Change-Id: Id41ec354465525c6cedf631fe2209fe097148f60
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2323359
Commit-Queue: Henrik Boström \<hbos@chromium.org>
Reviewed-by: Harald Alvestrand \<hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801798}

TBR=hta@chromium.org,hbos@chromium.org

Change-Id: I4af12fd1430773ea3d134cfc37b9c5e736f20ed0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:1110347
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2377715
Reviewed-by: Amr Aboelkher \<amraboelkher@google.com>
Commit-Queue: Amr Aboelkher \<amraboelkher@google.com>
Cr-Commit-Position: refs/heads/master@{#801822}

PR 25248 applied with additional changes from upstream: 0d794eb31a9920dd63065a1c4de2d14132b986f5
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b87bfa50cdbe [wpt PR 25248] - [Sheriff] Revert "[Perfect Negotiation] Surface session descriptions at the right time.", a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.