Add memory of last SDP offer/answer created [chromium/src : master]

1 view
Skip to first unread message

Harald Alvestrand (Gerrit)

unread,
Mar 16, 2018, 9:57:25 AM3/16/18
to blink-revie...@chromium.org, blink-...@chromium.org, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

Quick change. There's still a problem with checking for unmodified SDP before checking for state, which results in the wrong error in one case.

View Change

    To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
    Gerrit-Change-Number: 966441
    Gerrit-PatchSet: 1
    Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
    Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
    Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-Comment-Date: Fri, 16 Mar 2018 13:57:19 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Blink WPT Bot (Gerrit)

    unread,
    Mar 16, 2018, 9:59:18 AM3/16/18
    to Harald Alvestrand, blink-revie...@chromium.org, blink-...@chromium.org, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

    Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/w3c/web-platform-tests/pull/10075.

    If this CL lands and Travis CI upstream is green, we will auto-merge the PR.

    Note: Please check the Travis CI status (at the bottom of the PR) before landing this CL and only land this CL if the status is green. Otherwise a human needs to step in and resolve it manually. (This may be automated in the future, see https://crbug.com/711447)

    WPT Export docs:
    https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md#Automatic-export-process

    View Change

      To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
      Gerrit-Change-Number: 966441
      Gerrit-PatchSet: 1
      Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
      Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
      Gerrit-CC: Commit Bot <commi...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-Comment-Date: Fri, 16 Mar 2018 13:59:14 +0000

      Blink WPT Bot (Gerrit)

      unread,
      Mar 16, 2018, 2:41:43 PM3/16/18
      to Harald Alvestrand, blink-revie...@chromium.org, blink-...@chromium.org, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

      Successfully updated WPT GitHub pull request with new revision "Note generated SDP in both codepaths": https://github.com/w3c/web-platform-tests/pull/10075

      View Change

        To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
        Gerrit-Change-Number: 966441
        Gerrit-PatchSet: 2
        Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
        Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
        Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-Comment-Date: Fri, 16 Mar 2018 18:41:39 +0000

        Harald Alvestrand (Gerrit)

        unread,
        Mar 16, 2018, 3:34:05 PM3/16/18
        to blink-revie...@chromium.org, blink-...@chromium.org, Blink WPT Bot, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

        Harald Alvestrand removed a vote from this change.

        View Change

        Removed Commit-Queue+1 by Harald Alvestrand <h...@chromium.org>

        To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
        Gerrit-Change-Number: 966441
        Gerrit-PatchSet: 2
        Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
        Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
        Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-MessageType: deleteVote

        Blink WPT Bot (Gerrit)

        unread,
        Mar 16, 2018, 3:41:13 PM3/16/18
        to Harald Alvestrand, blink-revie...@chromium.org, blink-...@chromium.org, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

        Successfully updated WPT GitHub pull request with new revision "Added state checking before SDP checking": https://github.com/w3c/web-platform-tests/pull/10075

        View Change

          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
          Gerrit-Change-Number: 966441
          Gerrit-PatchSet: 3
          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
          Gerrit-CC: Commit Bot <commi...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-Comment-Date: Fri, 16 Mar 2018 19:41:11 +0000

          Harald Alvestrand (Gerrit)

          unread,
          Mar 17, 2018, 2:33:30 AM3/17/18
          to Henrik Boström, blink-revie...@chromium.org, blink-...@chromium.org, Blink WPT Bot, chromium...@chromium.org, Commit Bot, Kentaro Hara

          Harald Alvestrand uploaded patch set #4 to this change.

          View Change

          Add memory of last SDP offer/answer created

          This adds internal slots "LastOffer" and "LastAnswer", and uses
          those to check that SetLocalDescription uses an unchanged SDP offer/answer.

          Bug: chromium:823036
          Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
          ---
          M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-answer-expected.txt
          M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer-expected.txt
          M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer.html
          M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-pranswer-expected.txt
          M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
          M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
          M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.cpp
          M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.h
          M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestImpl.cpp
          M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestPromiseImpl.cpp
          10 files changed, 77 insertions(+), 18 deletions(-)

          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
          Gerrit-Change-Number: 966441
          Gerrit-PatchSet: 4
          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
          Gerrit-CC: Commit Bot <commi...@chromium.org>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-MessageType: newpatchset

          Blink WPT Bot (Gerrit)

          unread,
          Mar 17, 2018, 2:39:39 AM3/17/18
          to Harald Alvestrand, blink-revie...@chromium.org, blink-...@chromium.org, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

          Successfully updated WPT GitHub pull request with new revision "Edit commit message": https://github.com/w3c/web-platform-tests/pull/10075

          View Change

            To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: chromium/src
            Gerrit-Branch: master
            Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
            Gerrit-Change-Number: 966441
            Gerrit-PatchSet: 4
            Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
            Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
            Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
            Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
            Gerrit-CC: Commit Bot <commi...@chromium.org>
            Gerrit-CC: Kentaro Hara <har...@chromium.org>
            Gerrit-Comment-Date: Sat, 17 Mar 2018 06:39:37 +0000

            Blink WPT Bot (Gerrit)

            unread,
            Mar 17, 2018, 2:23:52 PM3/17/18
            to Harald Alvestrand, blink-revie...@chromium.org, blink-...@chromium.org, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

            Successfully updated WPT GitHub pull request with new revision "Added checks to callback-style setLocal": https://github.com/w3c/web-platform-tests/pull/10075

            View Change

              To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
              Gerrit-Change-Number: 966441
              Gerrit-PatchSet: 5
              Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
              Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
              Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
              Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
              Gerrit-CC: Commit Bot <commi...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-Comment-Date: Sat, 17 Mar 2018 18:23:43 +0000

              Harald Alvestrand (Gerrit)

              unread,
              Mar 17, 2018, 4:17:25 PM3/17/18
              to Henrik Boström, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Blink WPT Bot, Darin Fisher, chromium...@chromium.org, Commit Bot, Kentaro Hara, Aaron Boodman

              Harald Alvestrand uploaded patch set #7 to this change.

              View Change

              Add memory of last SDP offer/answer created

              This adds internal slots "LastOffer" and "LastAnswer", and uses
              those to check that SetLocalDescription uses an unchanged SDP offer/answer.

              Because modification of SDP is suspected to be used in a number of places,
              this change does not reject the modified SDP, but merely counts the usage.


              Bug: chromium:823036
              Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
              ---
              M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-answer-expected.txt
              M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer-expected.txt
              M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer.html
              M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-pranswer-expected.txt
              M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
              M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
              M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.cpp
              M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.h
              M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestImpl.cpp
              M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestPromiseImpl.cpp
              M third_party/WebKit/public/platform/web_feature.mojom
              M tools/metrics/histograms/enums.xml
              12 files changed, 105 insertions(+), 23 deletions(-)

              To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
              Gerrit-Change-Number: 966441
              Gerrit-PatchSet: 7
              Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
              Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
              Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
              Gerrit-CC: Commit Bot <commi...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: Kentaro Hara <har...@chromium.org>
              Gerrit-MessageType: newpatchset

              Blink WPT Bot (Gerrit)

              unread,
              Mar 17, 2018, 4:18:03 PM3/17/18
              to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

              Successfully updated WPT GitHub pull request with new revision "Switched from failure to counter for SDP mods": https://github.com/w3c/web-platform-tests/pull/10075

              View Change

                To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: chromium/src
                Gerrit-Branch: master
                Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                Gerrit-Change-Number: 966441
                Gerrit-PatchSet: 7
                Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                Gerrit-CC: Commit Bot <commi...@chromium.org>
                Gerrit-CC: Darin Fisher <da...@chromium.org>
                Gerrit-CC: Kentaro Hara <har...@chromium.org>
                Gerrit-Comment-Date: Sat, 17 Mar 2018 20:17:55 +0000

                Blink WPT Bot (Gerrit)

                unread,
                Mar 17, 2018, 4:26:42 PM3/17/18
                to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org, Kentaro Hara

                Successfully updated WPT GitHub pull request with new revision "Edit commit message": https://github.com/w3c/web-platform-tests/pull/10075

                View Change

                  To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-Project: chromium/src
                  Gerrit-Branch: master
                  Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                  Gerrit-Change-Number: 966441
                  Gerrit-PatchSet: 7
                  Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                  Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                  Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                  Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                  Gerrit-CC: Kentaro Hara <har...@chromium.org>
                  Gerrit-Comment-Date: Sat, 17 Mar 2018 20:26:41 +0000

                  Harald Alvestrand (Gerrit)

                  unread,
                  Mar 17, 2018, 4:33:07 PM3/17/18
                  to Kentaro Hara, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström

                  Harald Alvestrand would like Kentaro Hara to review this change.

                  View Change

                  Add memory of last SDP offer/answer created

                  This adds internal slots "LastOffer" and "LastAnswer", and uses
                  those to check that SetLocalDescription uses an unchanged SDP offer/answer.

                  Because modification of SDP is suspected to be used in a number of places,
                  this change does not reject the modified SDP, but merely counts the usage.

                  Bug: chromium:823036
                  Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                  ---
                  M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-answer-expected.txt
                  M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer-expected.txt
                  M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer.html
                  M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-pranswer-expected.txt
                  M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
                  M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
                  M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.cpp
                  M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.h
                  M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestImpl.cpp
                  M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestPromiseImpl.cpp
                  M third_party/WebKit/public/platform/web_feature.mojom
                  M tools/metrics/histograms/enums.xml
                  12 files changed, 105 insertions(+), 23 deletions(-)


                  To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-Project: chromium/src
                  Gerrit-Branch: master
                  Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                  Gerrit-Change-Number: 966441
                  Gerrit-PatchSet: 8
                  Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                  Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                  Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                  Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                  Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                  Gerrit-MessageType: newchange

                  Harald Alvestrand (Gerrit)

                  unread,
                  Mar 17, 2018, 4:33:08 PM3/17/18
                  to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Kentaro Hara, Aaron Boodman, Darin Fisher, Blink WPT Bot, Henrik Boström, Commit Bot, chromium...@chromium.org

                  Adding haraken for histograms

                  View Change

                    To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-Project: chromium/src
                    Gerrit-Branch: master
                    Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                    Gerrit-Change-Number: 966441
                    Gerrit-PatchSet: 8
                    Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                    Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                    Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                    Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                    Gerrit-Comment-Date: Sat, 17 Mar 2018 20:33:05 +0000

                    Blink WPT Bot (Gerrit)

                    unread,
                    Mar 17, 2018, 4:35:03 PM3/17/18
                    to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Kentaro Hara, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org

                    Successfully updated WPT GitHub pull request with new revision "Rebase": https://github.com/w3c/web-platform-tests/pull/10075

                    View Change

                      To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: chromium/src
                      Gerrit-Branch: master
                      Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                      Gerrit-Change-Number: 966441
                      Gerrit-PatchSet: 8
                      Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                      Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                      Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                      Gerrit-CC: Commit Bot <commi...@chromium.org>
                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                      Gerrit-Comment-Date: Sat, 17 Mar 2018 20:35:01 +0000

                      Harald Alvestrand (Gerrit)

                      unread,
                      Mar 18, 2018, 5:06:38 AM3/18/18
                      to Henrik Boström, Kentaro Hara, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Blink WPT Bot, Darin Fisher, chromium...@chromium.org, Commit Bot, Aaron Boodman

                      Harald Alvestrand uploaded patch set #10 to this change.

                      View Change

                      Add memory of last SDP offer/answer created

                      This adds internal slots "LastOffer" and "LastAnswer", and uses
                      those to check that SetLocalDescription uses an unchanged SDP offer/answer.

                      Because modification of SDP is suspected to be used in a number of places,
                      this change only rejects SDP with modified fingerprints (which would fail
                      anyway), but merely counts the usage for other modifications.


                      Bug: chromium:823036
                      Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                      ---
                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-answer-expected.txt
                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer-expected.txt
                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer.html
                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-pranswer-expected.txt
                      M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
                      M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.cpp
                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.h
                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestImpl.cpp
                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestPromiseImpl.cpp
                      M third_party/WebKit/public/platform/web_feature.mojom
                      M tools/metrics/histograms/enums.xml
                      12 files changed, 128 insertions(+), 23 deletions(-)

                      To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: chromium/src
                      Gerrit-Branch: master
                      Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                      Gerrit-Change-Number: 966441
                      Gerrit-PatchSet: 10
                      Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                      Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                      Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                      Gerrit-CC: Commit Bot <commi...@chromium.org>
                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                      Gerrit-MessageType: newpatchset

                      Blink WPT Bot (Gerrit)

                      unread,
                      Mar 18, 2018, 5:11:08 AM3/18/18
                      to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Kentaro Hara, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org

                      Successfully updated WPT GitHub pull request with new revision "Edit commit message": https://github.com/w3c/web-platform-tests/pull/10075

                      View Change

                        To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                        Gerrit-Project: chromium/src
                        Gerrit-Branch: master
                        Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                        Gerrit-Change-Number: 966441
                        Gerrit-PatchSet: 10
                        Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                        Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                        Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                        Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                        Gerrit-CC: Aaron Boodman <a...@chromium.org>
                        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                        Gerrit-CC: Commit Bot <commi...@chromium.org>
                        Gerrit-CC: Darin Fisher <da...@chromium.org>
                        Gerrit-Comment-Date: Sun, 18 Mar 2018 09:11:06 +0000

                        Harald Alvestrand (Gerrit)

                        unread,
                        Mar 18, 2018, 6:30:36 AM3/18/18
                        to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Blink WPT Bot, Henrik Boström, Commit Bot, chromium...@chromium.org

                        Adding Tommi for content/test/data/media

                        View Change

                          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                          Gerrit-Project: chromium/src
                          Gerrit-Branch: master
                          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                          Gerrit-Change-Number: 966441
                          Gerrit-PatchSet: 11
                          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                          Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                          Gerrit-Reviewer: Tommi <to...@chromium.org>
                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                          Gerrit-Comment-Date: Sun, 18 Mar 2018 10:30:33 +0000

                          Blink WPT Bot (Gerrit)

                          unread,
                          Mar 18, 2018, 6:34:00 AM3/18/18
                          to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org

                          Successfully updated WPT GitHub pull request with new revision "Fix a test that checked message text": https://github.com/w3c/web-platform-tests/pull/10075

                          View Change

                            To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                            Gerrit-Project: chromium/src
                            Gerrit-Branch: master
                            Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                            Gerrit-Change-Number: 966441
                            Gerrit-PatchSet: 11
                            Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                            Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                            Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                            Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                            Gerrit-Reviewer: Tommi <to...@chromium.org>
                            Gerrit-CC: Aaron Boodman <a...@chromium.org>
                            Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                            Gerrit-CC: Commit Bot <commi...@chromium.org>
                            Gerrit-CC: Darin Fisher <da...@chromium.org>
                            Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                            Gerrit-Comment-Date: Sun, 18 Mar 2018 10:33:57 +0000

                            Tommi (Gerrit)

                            unread,
                            Mar 18, 2018, 6:35:58 AM3/18/18
                            to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Blink WPT Bot, Henrik Boström, Commit Bot, chromium...@chromium.org

                            lgtm (more of a rubberstamp).

                            Do we have a sense for if this will make a big splash with web apps or minimal/no impact?

                            Patch set 11:Code-Review +1

                            View Change

                              To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                              Gerrit-Project: chromium/src
                              Gerrit-Branch: master
                              Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                              Gerrit-Change-Number: 966441
                              Gerrit-PatchSet: 11
                              Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                              Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                              Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                              Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                              Gerrit-Reviewer: Tommi <to...@chromium.org>
                              Gerrit-CC: Aaron Boodman <a...@chromium.org>
                              Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                              Gerrit-CC: Commit Bot <commi...@chromium.org>
                              Gerrit-CC: Darin Fisher <da...@chromium.org>
                              Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                              Gerrit-Comment-Date: Sun, 18 Mar 2018 10:35:55 +0000
                              Gerrit-HasComments: No
                              Gerrit-Has-Labels: Yes
                              Gerrit-MessageType: comment

                              Harald Alvestrand (Gerrit)

                              unread,
                              Mar 18, 2018, 6:44:48 AM3/18/18
                              to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Blink WPT Bot, Henrik Boström, Commit Bot, chromium...@chromium.org

                              This version of the CL (where we only count SDP modifications) will have minimal impact. The things that will fail (fingerprint modification on DTLS connections) already failed, because this error was caught at the WebRTC layer.
                              (The main practical reason for changing this was to get the fingerprints out of the error messages generated by WPT - those fingerprints caused the tests to be listed as "not conforming to expectations" on every run, which harmed the ability to catch other errors.)

                              When we tighten the check to be according to spec, with no modifications allowed, this will have a big impact, I think; the counter installed here will be able to tell us just how big.

                              View Change

                                To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                Gerrit-Project: chromium/src
                                Gerrit-Branch: master
                                Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                Gerrit-Change-Number: 966441
                                Gerrit-PatchSet: 11
                                Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                Gerrit-Reviewer: Tommi <to...@chromium.org>
                                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                Gerrit-CC: Commit Bot <commi...@chromium.org>
                                Gerrit-CC: Darin Fisher <da...@chromium.org>
                                Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                Gerrit-Comment-Date: Sun, 18 Mar 2018 10:44:45 +0000

                                Blink WPT Bot (Gerrit)

                                unread,
                                Mar 18, 2018, 8:44:52 AM3/18/18
                                to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org

                                Successfully updated WPT GitHub pull request with new revision "Don't check SDP changes when no SDP generated": https://github.com/w3c/web-platform-tests/pull/10075

                                View Change

                                  To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                  Gerrit-Project: chromium/src
                                  Gerrit-Branch: master
                                  Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                  Gerrit-Change-Number: 966441
                                  Gerrit-PatchSet: 12
                                  Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                  Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                  Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                  Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                  Gerrit-Reviewer: Tommi <to...@chromium.org>
                                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                  Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                                  Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                  Gerrit-Comment-Date: Sun, 18 Mar 2018 12:44:49 +0000

                                  Blink WPT Bot (Gerrit)

                                  unread,
                                  Mar 18, 2018, 10:13:17 AM3/18/18
                                  to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org

                                  Successfully updated WPT GitHub pull request with new revision "Changed handling for non-DTLS offer/answers": https://github.com/w3c/web-platform-tests/pull/10075

                                  View Change

                                    To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: chromium/src
                                    Gerrit-Branch: master
                                    Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                    Gerrit-Change-Number: 966441
                                    Gerrit-PatchSet: 13
                                    Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                    Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                    Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                    Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                    Gerrit-Reviewer: Tommi <to...@chromium.org>
                                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                                    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                    Gerrit-Comment-Date: Sun, 18 Mar 2018 14:13:16 +0000

                                    Blink WPT Bot (Gerrit)

                                    unread,
                                    Mar 18, 2018, 10:50:52 AM3/18/18
                                    to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Henrik Boström, Commit Bot, chromium...@chromium.org

                                    Successfully updated WPT GitHub pull request with new revision "Error code modified again": https://github.com/w3c/web-platform-tests/pull/10075

                                    View Change

                                      To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                      Gerrit-Project: chromium/src
                                      Gerrit-Branch: master
                                      Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                      Gerrit-Change-Number: 966441
                                      Gerrit-PatchSet: 14
                                      Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                      Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                      Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                      Gerrit-Reviewer: Tommi <to...@chromium.org>
                                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                      Gerrit-CC: Commit Bot <commi...@chromium.org>
                                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                                      Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                      Gerrit-Comment-Date: Sun, 18 Mar 2018 14:50:50 +0000

                                      Harald Alvestrand (Gerrit)

                                      unread,
                                      Mar 18, 2018, 2:37:53 PM3/18/18
                                      to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Kentaro Hara, Aaron Boodman, Darin Fisher, Blink WPT Bot, Henrik Boström, Commit Bot, chromium...@chromium.org

                                      Now it seems to be ready for general review.

                                      View Change

                                        To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                        Gerrit-Project: chromium/src
                                        Gerrit-Branch: master
                                        Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                        Gerrit-Change-Number: 966441
                                        Gerrit-PatchSet: 14
                                        Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                        Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                        Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                        Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                        Gerrit-Reviewer: Tommi <to...@chromium.org>
                                        Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                        Gerrit-CC: Commit Bot <commi...@chromium.org>
                                        Gerrit-CC: Darin Fisher <da...@chromium.org>
                                        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                        Gerrit-Comment-Date: Sun, 18 Mar 2018 18:37:50 +0000

                                        Kentaro Hara (Gerrit)

                                        unread,
                                        Mar 19, 2018, 4:31:08 AM3/19/18
                                        to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Henrik Boström, Commit Bot, chromium...@chromium.org

                                        LGTM

                                        Patch set 14:Code-Review +1

                                        View Change

                                          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                          Gerrit-Project: chromium/src
                                          Gerrit-Branch: master
                                          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                          Gerrit-Change-Number: 966441
                                          Gerrit-PatchSet: 14
                                          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                          Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                          Gerrit-Reviewer: Tommi <to...@chromium.org>
                                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                                          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                          Gerrit-Comment-Date: Mon, 19 Mar 2018 08:31:06 +0000

                                          Henrik Boström (Gerrit)

                                          unread,
                                          Mar 19, 2018, 7:02:31 AM3/19/18
                                          to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                          View Change

                                          1 comment:

                                          • File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:

                                            • Patch Set #14, Line 793: // TODO(https://crbug.com/823036): Return failure for all modification.

                                              Shouldn't this be implemented in third_party/webrtc? We don't want to multiple layers to give their own assessments of the SDP and hope they agree with each other. Unless there is good reason for putting this logic here.

                                              Having multiple implementations of SDP validation is a problem. This can also be a problem since it occurs on different threads, sometimes the states are not up-to-date since operations have been queued on the thread task queues. SLD/SRD are asynchronous so we can't rely on any state that can be modified by the result of SLD operation (e.g. signalingState) without being ensured that any pending operation has completed.

                                              These problems might only cause edge-case problems, and if the SDP is incorrectly forwarded to the lower layer the SDP could be rejected by the lower layer later anyway and fail. But that's the thing, if we have to handle all errors by the lower layer anyway, then the lower layer should surface the error, and adding logic here is both redundant and error-prone.

                                              • Is this supposed to be the right approach going forward or a quick fix to cover the majority of cases and get use counters in?

                                          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                          Gerrit-Project: chromium/src
                                          Gerrit-Branch: master
                                          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                          Gerrit-Change-Number: 966441
                                          Gerrit-PatchSet: 14
                                          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                          Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                          Gerrit-Reviewer: Tommi <to...@chromium.org>
                                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                                          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                          Gerrit-Comment-Date: Mon, 19 Mar 2018 11:02:28 +0000
                                          Gerrit-HasComments: Yes
                                          Gerrit-Has-Labels: No
                                          Gerrit-MessageType: comment

                                          Henrik Boström (Gerrit)

                                          unread,
                                          Mar 19, 2018, 7:08:31 AM3/19/18
                                          to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                          View Change

                                          1 comment:

                                          • File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:

                                            • Patch Set #14, Line 819: ScriptPromise RTCPeerConnection::setLocalDescription(

                                              If you call SLD twice in a row, both will test against "last_offer_" being the default value, because by the time the second SLD is called we have not yet surfaced the result of the first SLD from the webrtc signaling thread:

                                              setLocalDescription("first offer");
                                              setLocalDescription("second offer");

                                              However, on the webrtc signaling thread, by the time the second SLD occurs, the "last_offer_" will be "first offer", not the default.

                                              The layers are out-of-sync.

                                          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                          Gerrit-Project: chromium/src
                                          Gerrit-Branch: master
                                          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                          Gerrit-Change-Number: 966441
                                          Gerrit-PatchSet: 14
                                          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                          Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                          Gerrit-Reviewer: Tommi <to...@chromium.org>
                                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                                          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                          Gerrit-Comment-Date: Mon, 19 Mar 2018 11:08:28 +0000

                                          Henrik Boström (Gerrit)

                                          unread,
                                          Mar 19, 2018, 7:12:45 AM3/19/18
                                          to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                          View Change

                                          1 comment:

                                            • If you call SLD twice in a row, both will test against "last_offer_" being the default value, becaus […]

                                              You might blame the user for calling two async operations in a row without await/then but in any case the resulting implementation will be observably different from the spec assuming "in parallel" is not racing with other "in parallel" operations. If this is undefined spec behavior then perhaps it does not matter, but because our implementation is well-defined, if it truly does not make a difference I want to hear an argument for that and include "SLD twice in a row" test coverage.

                                          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                          Gerrit-Project: chromium/src
                                          Gerrit-Branch: master
                                          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                          Gerrit-Change-Number: 966441
                                          Gerrit-PatchSet: 14
                                          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                          Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                          Gerrit-Reviewer: Tommi <to...@chromium.org>
                                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                                          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                          Gerrit-Comment-Date: Mon, 19 Mar 2018 11:12:42 +0000
                                          Gerrit-HasComments: Yes
                                          Gerrit-Has-Labels: No
                                          Comment-In-Reply-To: Henrik Boström <hb...@chromium.org>
                                          Gerrit-MessageType: comment

                                          Harald Alvestrand (Gerrit)

                                          unread,
                                          Mar 19, 2018, 8:54:56 AM3/19/18
                                          to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                          Comments on comments, no code changes.

                                          View Change

                                          2 comments:

                                          • File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:

                                            • Patch Set #14, Line 793: // TODO(https://crbug.com/823036): Return failure for all modification.

                                              Shouldn't this be implemented in third_party/webrtc? We don't want to multiple layers to give their […]

                                              Well, it isn't done now in Webrtc..... and perhaps they don't want to. There are reasons to do SDP munging, and the C++ API may be used by other clients too.

                                              the opposite argument is that the particular restrictions in the W3C spec should be enforced as close to the API as possible. given the complexity of the SDP handling in the lower layers, enforcing the simple things where things are simple seems like a good approach.

                                              I would not argue for parsing the SDP in the upper layers (the hackaround I'm doing here is because fingerprint modification is easy to detect and never a valid thing to do, so it will catch some erroneous usages of the API).

                                              Checking the fingerprint is a temporary hack that will make tests pass and lets me get the counters in.

                                            • You might blame the user for calling two async operations in a row without await/then but in any cas […]

                                              There's actually a test in the WPT that calls SLD twice in a row. It's legal, and it works. (The test fails because it looks for the resulting SDP in a place where we don't expose it yet, but that's another bug to fix).

                                              CreateOffer() => first
                                              CreateOffer() => <unresolved>
                                              SetLocalDescription(first)
                                              CO resolves => second
                                              SLD resolves => checks against second???

                                              that's a good question.
                                              Setting [[LastOffer]] is in the "fire a task" part of CreateOffer, but the way SetLocalDescription is written, there is first a setting that might fail or succeed, and then one fires a task that tries to figure out what happened - which will then be queued after the result of the second CreateOffer, even if the failure was relative to the result of the first CreateOffer.

                                              This is a spec bug, I think.

                                          To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                          Gerrit-Project: chromium/src
                                          Gerrit-Branch: master
                                          Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                          Gerrit-Change-Number: 966441
                                          Gerrit-PatchSet: 14
                                          Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                          Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                          Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                          Gerrit-Reviewer: Tommi <to...@chromium.org>
                                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                                          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                          Gerrit-Comment-Date: Mon, 19 Mar 2018 12:54:53 +0000

                                          Harald Alvestrand (Gerrit)

                                          unread,
                                          Mar 19, 2018, 12:26:21 PM3/19/18
                                          to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                          Adding to a refreshed memory:

                                          CreateOffer and SetLocalDescription are enqueued on the connection's operations queue.
                                          So we're guaranteed that one is completed before the next one is started.

                                          But it means that doing the checking in the initial synchronous part is not obviously the Right Thing; if we have

                                          CreateOffer() => old offer
                                          CreateOffer() => unresolved
                                          SetLocalDescription(old offer)
                                          => new offer

                                          then setLocalDescription(old offer) will go on the operations queue, and it should only be done after the second CreateOffer() completes - which is not what this CL will achieve.

                                          Oh well. Back to the drawing board.

                                          View Change

                                            To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                            Gerrit-Project: chromium/src
                                            Gerrit-Branch: master
                                            Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                            Gerrit-Change-Number: 966441
                                            Gerrit-PatchSet: 14
                                            Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                            Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                            Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                            Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                            Gerrit-Reviewer: Tommi <to...@chromium.org>
                                            Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                            Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                            Gerrit-CC: Commit Bot <commi...@chromium.org>
                                            Gerrit-CC: Darin Fisher <da...@chromium.org>
                                            Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                            Gerrit-Comment-Date: Mon, 19 Mar 2018 16:26:17 +0000

                                            Blink WPT Bot (Gerrit)

                                            unread,
                                            Mar 22, 2018, 8:12:03 AM3/22/18
                                            to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Commit Bot, chromium...@chromium.org

                                            Successfully updated WPT GitHub pull request with new revision "Error code modified again": https://github.com/w3c/web-platform-tests/pull/10075

                                            View Change

                                              To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                              Gerrit-Project: chromium/src
                                              Gerrit-Branch: master
                                              Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                              Gerrit-Change-Number: 966441
                                              Gerrit-PatchSet: 15
                                              Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                              Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                              Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                              Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                              Gerrit-Reviewer: Tommi <to...@chromium.org>
                                              Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                              Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                              Gerrit-CC: Commit Bot <commi...@chromium.org>
                                              Gerrit-CC: Darin Fisher <da...@chromium.org>
                                              Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                              Gerrit-Comment-Date: Thu, 22 Mar 2018 12:11:58 +0000

                                              Henrik Boström (Gerrit)

                                              unread,
                                              Mar 22, 2018, 11:17:49 AM3/22/18
                                              to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                              LGTM % comments. Please note there are problems with this design where different layers disagree on the state of the last offer, but considering they are only apparent in edge case problems (racy API usages) I think this is fine for now.

                                              CC deadbeef FYI, see comment.

                                              Patch set 15:Code-Review +1

                                              View Change

                                              4 comments:

                                                • Well, it isn't done now in Webrtc..... and perhaps they don't want to. […]

                                                  Acknowledge.

                                                  Bigger picture: The "webrtc-pc in blink / JSEP in webrtc" split sounds appealing to me, but do note that this is not how our codebase looks today, and doing some parts of the operation in one place on one thread and other parts of the operation in another place on a different thread is error-prone and has caused bugs in the past and this. If we want to push for this logic split going forward we should coordinate with deadbeef@ et. al. so everyone is on the same page. CC deadbeef.

                                                  This CL: This generally works, but not in edge cases, see below.

                                                • There's actually a test in the WPT that calls SLD twice in a row. It's legal, and it works. […]

                                                  Spec bug or not, I think it's an implementation bug to compare the "last offer" to one value when checking whether or not to perform the operation, and then when we actually perform the operation the "last offer" is something different.

                                                  let offer1 = await pc.createOffer();
                                                  pc.createOffer().then(offer2 => { ... });
                                                  pc.setLocalDescription(offer1);

                                                  Because of the Chrome's threading model, this will...

                                                  MAIN THREAD
                                                  Task execution cycle #1:
                                                  1. Create the first offer and await it, last_offer_ = offer1;
                                                  Task execution cycle #2:
                                                  2. Queue a task to preform createOffer() in signaling thread.
                                                  3. setLocalDescription() in blink
                                                  a. Test argument against last_offer_.
                                                  "Last offer" is ALWAYS offer1 on this thread.
                                                  b. Queue a task to preform setLocalDescription() in signaling thread
                                                  (which will occur when "last offer" is offer2, see below).
                                                  Task execution cycle #3 (assuming signaling thread is done):
                                                  4. last_offer_ = offer2, resolve createOffer() promise.
                                                  5. Resolve SLD promise.
                                                  SIGNALING THREAD
                                                  1. Create offer1, queue a task to resolve the promise on main thread (the one we await).
                                                  2. Create offer2, queue a task to resolve the promise on main thread.
                                                  3. setLocalDescription() in webrtc
                                                  a. "Last offer" is ALWAYS offer2 on this thread.
                                                  b. Queue a task to resolve the promise on the main thread.

                                                  "Last offer" is not the same for blink queuing the operation and webrtc performing the operation whenever you do not await a promise. That is, even if the spec is not racy we are comparing apples and oranges.

                                                  ---

                                                  There is no way to check this correctly without either waiting for all pending operations to finish or perform checkSdpForStateErrors() on the signaling thread.

                                                  If we want to do this in Chrome and not third_party/webrtc we would have to increase the complexity of the content layer (put this in rtc_peer_connection_handler.cc - which goes against "removing content layer") or give blink access to the webrtc signaling thread directly, in either case this involves refactoring.

                                                  I think doing this correctly is not worth the work effort at the moment, but we need to think about stuff like this in our design. And you should probably put a couple of TODOs or file a bug about it.

                                              • File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:

                                                • Patch Set #15, Line 455: return false;

                                                  This will pass if the old_sdp has a fingerprint but new_sdp doesn't. This should only return false if old_fingerprint_pos is also == kNotFound.

                                                • Patch Set #15, Line 467: new_fingerprint_pos) == kNotFound;

                                                  nit: Prefer to get the new_fingerprint_end and do new_sdp.Substring() too and and compare fingerprints by equality.
                                                  Not sure we care but otherwise it would return false if the fingerprint string is sneaked in somewhere not as a fingerprint (e.g. a track ID = fingerprint).

                                              To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                              Gerrit-Project: chromium/src
                                              Gerrit-Branch: master
                                              Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                              Gerrit-Change-Number: 966441
                                              Gerrit-PatchSet: 15
                                              Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                              Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                              Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                              Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                              Gerrit-Reviewer: Tommi <to...@chromium.org>
                                              Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                              Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                              Gerrit-CC: Commit Bot <commi...@chromium.org>
                                              Gerrit-CC: Darin Fisher <da...@chromium.org>
                                              Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                              Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                              Gerrit-Comment-Date: Thu, 22 Mar 2018 15:17:46 +0000
                                              Gerrit-HasComments: Yes
                                              Gerrit-Has-Labels: Yes
                                              Comment-In-Reply-To: Harald Alvestrand <h...@chromium.org>

                                              Henrik Boström (Gerrit)

                                              unread,
                                              Mar 22, 2018, 11:36:58 AM3/22/18
                                              to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                              Discussion to be had: Should third_party/webrtc be everyting webrtc-pc + JSEP or just JSEP, with webrtc-pc stuff migrated into blink?

                                              View Change

                                                To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                Gerrit-Project: chromium/src
                                                Gerrit-Branch: master
                                                Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                Gerrit-Change-Number: 966441
                                                Gerrit-PatchSet: 15
                                                Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                Gerrit-CC: Commit Bot <commi...@chromium.org>
                                                Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                Gerrit-Comment-Date: Thu, 22 Mar 2018 15:36:55 +0000

                                                Harald Alvestrand (Gerrit)

                                                unread,
                                                Mar 22, 2018, 12:41:56 PM3/22/18
                                                to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                                Thanks! Now submitting.

                                                View Change

                                                3 comments:

                                                  • This will pass if the old_sdp has a fingerprint but new_sdp doesn't. […]

                                                    That was my original design, but it turns out that SDP mangling is used by entities using SDES keys - they strip out the a=fingerprint and replace it with a=crypto (if they don't construct the SDP from whole cloth - I also had to allow the case where createOffer was not called at all).

                                                  • Patch Set #15, Line 467: old_fingerprint_end - old_fingerprint_pos) !=

                                                    nit: Prefer to get the new_fingerprint_end and do new_sdp. […]

                                                    Good point. Will fix.

                                                To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                Gerrit-Project: chromium/src
                                                Gerrit-Branch: master
                                                Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                Gerrit-Change-Number: 966441
                                                Gerrit-PatchSet: 16
                                                Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                Gerrit-CC: Commit Bot <commi...@chromium.org>
                                                Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                Gerrit-Comment-Date: Thu, 22 Mar 2018 16:41:53 +0000
                                                Gerrit-HasComments: Yes
                                                Gerrit-Has-Labels: No
                                                Comment-In-Reply-To: Henrik Boström <hb...@chromium.org>
                                                Comment-In-Reply-To: Harald Alvestrand <h...@chromium.org>
                                                Gerrit-MessageType: comment

                                                Harald Alvestrand (Gerrit)

                                                unread,
                                                Mar 22, 2018, 12:43:03 PM3/22/18
                                                to asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, Commit Bot, chromium...@chromium.org

                                                Patch set 16:Commit-Queue +2

                                                View Change

                                                  To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                  Gerrit-Project: chromium/src
                                                  Gerrit-Branch: master
                                                  Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                  Gerrit-Change-Number: 966441
                                                  Gerrit-PatchSet: 16
                                                  Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                  Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                  Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                  Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                  Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                  Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                                                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                  Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                  Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                  Gerrit-Comment-Date: Thu, 22 Mar 2018 16:42:57 +0000

                                                  Commit Bot (Gerrit)

                                                  unread,
                                                  Mar 22, 2018, 12:43:09 PM3/22/18
                                                  to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, chromium...@chromium.org

                                                  CQ is trying the patch.

                                                  Note: The patchset sent to CQ was uploaded after this CL was approved.
                                                  "Stricter fingerprint check" https://chromium-review.googlesource.com/c/966441/16

                                                  Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/966441/16

                                                  Bot data: {"action": "start", "triggered_at": "2018-03-22T16:42:57.0Z", "cq_cfg_revision": "5b6c43e4d6b0297aa92e118e785d640c42297271", "revision": "d7120326f7502cf655bba87c6dcc077b59683e1b"}

                                                  View Change

                                                    To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                    Gerrit-Project: chromium/src
                                                    Gerrit-Branch: master
                                                    Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                    Gerrit-Change-Number: 966441
                                                    Gerrit-PatchSet: 16
                                                    Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                    Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                    Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                    Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                    Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                                                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                    Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                    Gerrit-Comment-Date: Thu, 22 Mar 2018 16:43:08 +0000

                                                    Blink WPT Bot (Gerrit)

                                                    unread,
                                                    Mar 22, 2018, 12:43:24 PM3/22/18
                                                    to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Commit Bot, chromium...@chromium.org

                                                    Successfully updated WPT GitHub pull request with new revision "Stricter fingerprint check": https://github.com/w3c/web-platform-tests/pull/10075

                                                    View Change

                                                      To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                      Gerrit-Project: chromium/src
                                                      Gerrit-Branch: master
                                                      Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                      Gerrit-Change-Number: 966441
                                                      Gerrit-PatchSet: 16
                                                      Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                      Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                      Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                      Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                      Gerrit-CC: Commit Bot <commi...@chromium.org>
                                                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                      Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                      Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                      Gerrit-Comment-Date: Thu, 22 Mar 2018 16:43:22 +0000

                                                      Commit Bot (Gerrit)

                                                      unread,
                                                      Mar 22, 2018, 2:51:18 PM3/22/18
                                                      to Harald Alvestrand, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, chromium...@chromium.org

                                                      Commit Bot merged this change.

                                                      View Change

                                                      Approvals: Tommi: Looks good to me Kentaro Hara: Looks good to me Henrik Boström: Looks good to me Harald Alvestrand: Commit
                                                      Add memory of last SDP offer/answer created

                                                      This adds internal slots "LastOffer" and "LastAnswer", and uses
                                                      those to check that SetLocalDescription uses an unchanged SDP offer/answer.

                                                      Because modification of SDP is suspected to be used in a number of places,
                                                      this change only rejects SDP with modified fingerprints (which would fail
                                                      anyway), but merely counts the usage for other modifications.

                                                      Bug: chromium:823036
                                                      Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                      Reviewed-on: https://chromium-review.googlesource.com/966441
                                                      Commit-Queue: Harald Alvestrand <h...@chromium.org>
                                                      Reviewed-by: Henrik Boström <hb...@chromium.org>
                                                      Reviewed-by: Kentaro Hara <har...@chromium.org>
                                                      Reviewed-by: Tommi <to...@chromium.org>
                                                      Cr-Commit-Position: refs/heads/master@{#545175}
                                                      ---
                                                      M content/test/data/media/peerconnection-call.html

                                                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-answer-expected.txt
                                                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer-expected.txt
                                                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-offer.html
                                                      M third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription-pranswer-expected.txt
                                                      M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
                                                      M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
                                                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.cpp
                                                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.h
                                                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestImpl.cpp
                                                      M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestPromiseImpl.cpp
                                                      M third_party/WebKit/public/platform/web_feature.mojom
                                                      M tools/metrics/histograms/enums.xml
                                                      13 files changed, 141 insertions(+), 27 deletions(-)


                                                      To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                      Gerrit-Project: chromium/src
                                                      Gerrit-Branch: master
                                                      Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                      Gerrit-Change-Number: 966441
                                                      Gerrit-PatchSet: 17
                                                      Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                      Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
                                                      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                      Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                      Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                      Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                      Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                      Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                      Gerrit-MessageType: merged

                                                      Blink WPT Bot (Gerrit)

                                                      unread,
                                                      Mar 22, 2018, 3:10:13 PM3/22/18
                                                      to Harald Alvestrand, Commit Bot, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Henrik Boström, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, chromium...@chromium.org

                                                      The WPT PR for this CL has been merged upstream! https://github.com/w3c/web-platform-tests/pull/10075

                                                      View Change

                                                        To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                        Gerrit-Project: chromium/src
                                                        Gerrit-Branch: master
                                                        Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                        Gerrit-Change-Number: 966441
                                                        Gerrit-PatchSet: 17
                                                        Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                        Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
                                                        Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                        Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                        Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                        Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                        Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                        Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                        Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                        Gerrit-Comment-Date: Thu, 22 Mar 2018 19:10:11 +0000

                                                        Henrik Boström (Gerrit)

                                                        unread,
                                                        Mar 23, 2018, 5:41:21 AM3/23/18
                                                        to Harald Alvestrand, Commit Bot, asvitki...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, Taylor Brandstetter, Kentaro Hara, Tommi, John Abd-El-Malek, Aaron Boodman, Darin Fisher, Blink WPT Bot, chromium...@chromium.org

                                                        View Change

                                                        1 comment:

                                                          • I don't think this is right, because I haven't found a memory of "last offer" that is remembered on […]

                                                            Per-spec it might be racy, per-implementation it might not be racy. Most async operations are implemented synchronously on the signaling thread and are executed in the order posted. setLocalDescription is this way. getStats is an exception. Maybe createOffer is too due to certificate generation? Not sure.

                                                            Whether or not there is a "last offer" variable on the signaling thread, you are evaluating whether or not to perform an operation based on the state of a "last offer" that will not be the last offer when the operation is executed. This is like deciding whether or not to start your car now based on if it was green 10 seconds ago (or am I missing something?).

                                                        To view, visit change 966441. To unsubscribe, or for help writing mail filters, visit settings.

                                                        Gerrit-Project: chromium/src
                                                        Gerrit-Branch: master
                                                        Gerrit-Change-Id: I0c978d5ff3e63b0afab3ec02334c57a5aaa94cdd
                                                        Gerrit-Change-Number: 966441
                                                        Gerrit-PatchSet: 17
                                                        Gerrit-Owner: Harald Alvestrand <h...@chromium.org>
                                                        Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
                                                        Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                                                        Gerrit-Reviewer: Henrik Boström <hb...@chromium.org>
                                                        Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
                                                        Gerrit-Reviewer: Tommi <to...@chromium.org>
                                                        Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                                        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
                                                        Gerrit-CC: Darin Fisher <da...@chromium.org>
                                                        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
                                                        Gerrit-CC: Taylor Brandstetter <dead...@chromium.org>
                                                        Gerrit-Comment-Date: Fri, 23 Mar 2018 09:41:18 +0000
                                                        Gerrit-HasComments: Yes
                                                        Gerrit-Has-Labels: No
                                                        Reply all
                                                        Reply to author
                                                        Forward
                                                        0 new messages