[CE] Correct logic of DefaultEventHandler in HTMLUserMediaElement [chromium/src : main]

0 views
Skip to first unread message

Thomas Nguyen (Gerrit)

unread,
Apr 13, 2026, 2:47:02 PMApr 13
to Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
Attention needed from Joey Arhar and Ravjit Uppal

Thomas Nguyen added 1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Thomas Nguyen . resolved

Hi Joey, Ravjit, could you please take a look at this?

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
  • Ravjit Uppal
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
Gerrit-Change-Number: 7734929
Gerrit-PatchSet: 6
Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Mon, 13 Apr 2026 18:46:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Thomas Nguyen (Gerrit)

unread,
Apr 13, 2026, 2:49:09 PMApr 13
to Anders Hartvoll Ruud, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
Attention needed from Anders Hartvoll Ruud, Joey Arhar and Ravjit Uppal

Thomas Nguyen added 1 comment

Patchset-level comments
Thomas Nguyen . resolved

Need one more reviewer for third_party/blink/web_tests/VirtualTestSuites, Anders could you please take a looK?

Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
  • Joey Arhar
  • Ravjit Uppal
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
Gerrit-Change-Number: 7734929
Gerrit-PatchSet: 6
Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Mon, 13 Apr 2026 18:48:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Apr 13, 2026, 5:24:17 PMApr 13
to Thomas Nguyen, Anders Hartvoll Ruud, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
Attention needed from Anders Hartvoll Ruud, Ravjit Uppal and Thomas Nguyen

Joey Arhar added 2 comments

File third_party/blink/renderer/modules/mediastream/user_media_request_provider_impl.cc
Line 37, Patchset 6 (Latest): HTMLUserMediaElementMediaStream::From(*element_).SetMediaStream(stream);
element_->DispatchEvent(*Event::Create(event_type_names::kStream));
}
Joey Arhar . unresolved

These lines should have less indentation

File third_party/blink/web_tests/VirtualTestSuites
Joey Arhar . unresolved

It isn't obvious to me why this patch adds a virtual test suite. Want to add a paragraph to the commit message explaining why it is added in this patch as opposed to an earlier one which actually added these flags?

Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
  • Ravjit Uppal
  • Thomas Nguyen
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
    Gerrit-Change-Number: 7734929
    Gerrit-PatchSet: 6
    Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Comment-Date: Mon, 13 Apr 2026 21:24:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Nguyen (Gerrit)

    unread,
    Apr 14, 2026, 3:13:21 AMApr 14
    to Anders Hartvoll Ruud, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Anders Hartvoll Ruud, Joey Arhar and Ravjit Uppal

    Thomas Nguyen added 2 comments

    File third_party/blink/renderer/modules/mediastream/user_media_request_provider_impl.cc
    Line 37, Patchset 6 (Latest): HTMLUserMediaElementMediaStream::From(*element_).SetMediaStream(stream);
    element_->DispatchEvent(*Event::Create(event_type_names::kStream));
    }
    Joey Arhar . unresolved

    These lines should have less indentation

    Thomas Nguyen

    Oh, thanks for catching this. I don't know why `git cl format` did not work and the presubmit did not warn about this.

    File third_party/blink/web_tests/VirtualTestSuites
    Joey Arhar . unresolved

    It isn't obvious to me why this patch adds a virtual test suite. Want to add a paragraph to the commit message explaining why it is added in this patch as opposed to an earlier one which actually added these flags?

    Thomas Nguyen

    This is to add `BypassPepcSecurityForTesting` args to the tests. Basically we are mirroring the logic of <geolocation> element (HTMLGeolocationElement), however, the test in <usermedia> contains a "click test" which is disabled by security measures.

    I will add a comment about that.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anders Hartvoll Ruud
    • Joey Arhar
    • Ravjit Uppal
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
    Gerrit-Change-Number: 7734929
    Gerrit-PatchSet: 6
    Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Comment-Date: Tue, 14 Apr 2026 07:13:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Nguyen (Gerrit)

    unread,
    Apr 14, 2026, 3:55:34 AMApr 14
    to Anders Hartvoll Ruud, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Joey Arhar, Ravjit Uppal and Thomas Nguyen

    Thomas Nguyen removed Anders Hartvoll Ruud from this change

    Deleted Reviewers:
    • Anders Hartvoll Ruud
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    • Ravjit Uppal
    • Thomas Nguyen
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: deleteReviewer
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
    Gerrit-Change-Number: 7734929
    Gerrit-PatchSet: 6
    Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Nguyen (Gerrit)

    unread,
    Apr 14, 2026, 3:56:28 AMApr 14
    to Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Joey Arhar and Ravjit Uppal

    Thomas Nguyen added 1 comment

    Patchset-level comments
    Thomas Nguyen . resolved

    I need to fix the test again. So, remove reviewers and I will add you back

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    • Ravjit Uppal
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
    Gerrit-Change-Number: 7734929
    Gerrit-PatchSet: 6
    Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Tue, 14 Apr 2026 07:56:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Nguyen (Gerrit)

    unread,
    Apr 14, 2026, 4:51:44 PMApr 14
    to Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Joey Arhar and Ravjit Uppal

    Thomas Nguyen added 2 comments

    File third_party/blink/renderer/modules/mediastream/user_media_request_provider_impl.cc
    Line 37, Patchset 6 (Latest): HTMLUserMediaElementMediaStream::From(*element_).SetMediaStream(stream);
    element_->DispatchEvent(*Event::Create(event_type_names::kStream));
    }
    Joey Arhar . resolved

    These lines should have less indentation

    Thomas Nguyen

    Oh, thanks for catching this. I don't know why `git cl format` did not work and the presubmit did not warn about this.

    Thomas Nguyen

    Done

    File third_party/blink/web_tests/VirtualTestSuites
    Joey Arhar . unresolved

    It isn't obvious to me why this patch adds a virtual test suite. Want to add a paragraph to the commit message explaining why it is added in this patch as opposed to an earlier one which actually added these flags?

    Thomas Nguyen

    This is to add `BypassPepcSecurityForTesting` args to the tests. Basically we are mirroring the logic of <geolocation> element (HTMLGeolocationElement), however, the test in <usermedia> contains a "click test" which is disabled by security measures.

    I will add a comment about that.

    Thomas Nguyen

    Added comment and moved to the right place.

    Gerrit-Comment-Date: Tue, 14 Apr 2026 20:51:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Thomas Nguyen <tun...@chromium.org>
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Nguyen (Gerrit)

    unread,
    Apr 14, 2026, 4:51:45 PMApr 14
    to Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Joey Arhar and Ravjit Uppal

    Thomas Nguyen added 1 comment

    File third_party/blink/web_tests/VirtualTestSuites
    File-level comment, Patchset 6:
    Joey Arhar . resolved

    It isn't obvious to me why this patch adds a virtual test suite. Want to add a paragraph to the commit message explaining why it is added in this patch as opposed to an earlier one which actually added these flags?

    Thomas Nguyen

    This is to add `BypassPepcSecurityForTesting` args to the tests. Basically we are mirroring the logic of <geolocation> element (HTMLGeolocationElement), however, the test in <usermedia> contains a "click test" which is disabled by security measures.

    I will add a comment about that.

    Thomas Nguyen

    Added comment and moved to the right place.

    Thomas Nguyen

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    • Ravjit Uppal
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
      Gerrit-Change-Number: 7734929
      Gerrit-PatchSet: 6
      Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
      Gerrit-Attention: Joey Arhar <jar...@chromium.org>
      Gerrit-Comment-Date: Tue, 14 Apr 2026 20:51:32 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Joey Arhar (Gerrit)

      unread,
      Apr 14, 2026, 5:01:33 PMApr 14
      to Thomas Nguyen, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
      Attention needed from Ravjit Uppal and Thomas Nguyen

      Joey Arhar added 1 comment

      File third_party/blink/web_tests/VirtualTestSuites
      File-level comment, Patchset 6:
      Joey Arhar . unresolved

      It isn't obvious to me why this patch adds a virtual test suite. Want to add a paragraph to the commit message explaining why it is added in this patch as opposed to an earlier one which actually added these flags?

      Thomas Nguyen

      This is to add `BypassPepcSecurityForTesting` args to the tests. Basically we are mirroring the logic of <geolocation> element (HTMLGeolocationElement), however, the test in <usermedia> contains a "click test" which is disabled by security measures.

      I will add a comment about that.

      Thomas Nguyen

      Added comment and moved to the right place.

      Thomas Nguyen

      Done

      Joey Arhar

      So is the virtual test suite supposed to be there forever? Could we instead check whether we are running in a web test to bypass the security check?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Ravjit Uppal
      • Thomas Nguyen
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
        Gerrit-Change-Number: 7734929
        Gerrit-PatchSet: 8
        Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
        Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
        Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
        Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
        Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
        Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
        Gerrit-Comment-Date: Tue, 14 Apr 2026 21:01:23 +0000
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Thomas Nguyen (Gerrit)

        unread,
        Apr 15, 2026, 4:01:34 AMApr 15
        to Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
        Attention needed from Joey Arhar and Ravjit Uppal

        Thomas Nguyen added 1 comment

        File third_party/blink/web_tests/VirtualTestSuites
        File-level comment, Patchset 6:
        Joey Arhar . resolved

        It isn't obvious to me why this patch adds a virtual test suite. Want to add a paragraph to the commit message explaining why it is added in this patch as opposed to an earlier one which actually added these flags?

        Thomas Nguyen

        This is to add `BypassPepcSecurityForTesting` args to the tests. Basically we are mirroring the logic of <geolocation> element (HTMLGeolocationElement), however, the test in <usermedia> contains a "click test" which is disabled by security measures.

        I will add a comment about that.

        Thomas Nguyen

        Added comment and moved to the right place.

        Thomas Nguyen

        Done

        Joey Arhar

        So is the virtual test suite supposed to be there forever? Could we instead check whether we are running in a web test to bypass the security check?

        Thomas Nguyen

        We’ll keep the click tests as they are.

        and yes, we can check in the native code by allowing WPT-driven clicks (`IsRunningWebTest`. I’m slightly worried about future tests that might need to block synthetic clicks, but since there’s nothing like that in the WPT right now, let's keep it simple. If we need to, we can always bring back the virtual test suites later.

        Updated.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Joey Arhar
        • Ravjit Uppal
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
          Gerrit-Change-Number: 7734929
          Gerrit-PatchSet: 9
          Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
          Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
          Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
          Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
          Gerrit-Attention: Joey Arhar <jar...@chromium.org>
          Gerrit-Comment-Date: Wed, 15 Apr 2026 08:01:14 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Joey Arhar (Gerrit)

          unread,
          Apr 15, 2026, 2:05:21 PMApr 15
          to Thomas Nguyen, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
          Attention needed from Ravjit Uppal and Thomas Nguyen

          Joey Arhar added 1 comment

          File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/usermedia/usermedia-constraints-descriptors.tentative.html
          Line 31, Patchset 13 (Latest): await new Promise(resolve => t.step_timeout(resolve, 600));
          Joey Arhar . unresolved

          What exactly is this waiting for? Does it not work if you put 0 instead of 600 in the timeout? Or maybe 0 with a rAF?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Ravjit Uppal
          • Thomas Nguyen
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
            Gerrit-Change-Number: 7734929
            Gerrit-PatchSet: 13
            Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
            Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
            Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
            Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
            Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
            Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
            Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
            Gerrit-Comment-Date: Wed, 15 Apr 2026 18:05:08 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Thomas Nguyen (Gerrit)

            unread,
            Apr 15, 2026, 2:56:28 PMApr 15
            to Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
            Attention needed from Joey Arhar and Ravjit Uppal

            Thomas Nguyen added 1 comment

            File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/usermedia/usermedia-constraints-descriptors.tentative.html
            Line 31, Patchset 13 (Latest): await new Promise(resolve => t.step_timeout(resolve, 600));
            Joey Arhar . unresolved

            What exactly is this waiting for? Does it not work if you put 0 instead of 600 in the timeout? Or maybe 0 with a rAF?

            Thomas Nguyen

            In the first 500ms after being added to DOM and rendered on a page, the element is unclickable. So at least it should be 501ms.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Joey Arhar
            • Ravjit Uppal
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
            Gerrit-Change-Number: 7734929
            Gerrit-PatchSet: 13
            Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
            Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
            Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
            Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
            Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
            Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
            Gerrit-Attention: Joey Arhar <jar...@chromium.org>
            Gerrit-Comment-Date: Wed, 15 Apr 2026 18:56:07 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Ravjit Uppal (Gerrit)

            unread,
            Apr 16, 2026, 9:12:09 AM (14 days ago) Apr 16
            to Thomas Nguyen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
            Attention needed from Joey Arhar and Thomas Nguyen

            Ravjit Uppal voted Code-Review+1

            Code-Review+1
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Joey Arhar
            • Thomas Nguyen
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
              Gerrit-Change-Number: 7734929
              Gerrit-PatchSet: 13
              Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
              Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
              Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
              Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Attention: Joey Arhar <jar...@chromium.org>
              Gerrit-Comment-Date: Thu, 16 Apr 2026 13:11:53 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Joey Arhar (Gerrit)

              unread,
              Apr 16, 2026, 12:24:20 PM (14 days ago) Apr 16
              to Thomas Nguyen, Ravjit Uppal, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
              Attention needed from Ravjit Uppal and Thomas Nguyen

              Joey Arhar voted and added 1 comment

              Votes added by Joey Arhar

              Code-Review+1

              1 comment

              File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/usermedia/usermedia-constraints-descriptors.tentative.html
              Line 31, Patchset 13: await new Promise(resolve => t.step_timeout(resolve, 600));
              Joey Arhar . resolved

              What exactly is this waiting for? Does it not work if you put 0 instead of 600 in the timeout? Or maybe 0 with a rAF?

              Thomas Nguyen

              In the first 500ms after being added to DOM and rendered on a page, the element is unclickable. So at least it should be 501ms.

              Joey Arhar

              Acknowledged

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Ravjit Uppal
              • Thomas Nguyen
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
              Gerrit-Change-Number: 7734929
              Gerrit-PatchSet: 15
              Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
              Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
              Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
              Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Comment-Date: Thu, 16 Apr 2026 16:24:10 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Blink W3C Test Autoroller (Gerrit)

              unread,
              Apr 16, 2026, 12:47:20 PM (14 days ago) Apr 16
              to Thomas Nguyen, Ravjit Uppal, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
              Attention needed from Ravjit Uppal and Thomas Nguyen

              Message from Blink W3C Test Autoroller

              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/web-platform-tests/wpt/pull/59276.

              When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.

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

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Ravjit Uppal
              • Thomas Nguyen
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
              Gerrit-Change-Number: 7734929
              Gerrit-PatchSet: 15
              Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
              Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
              Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
              Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
              Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Comment-Date: Thu, 16 Apr 2026 16:47:10 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: No
              satisfied_requirement
              open
              diffy

              Thomas Nguyen (Gerrit)

              unread,
              Apr 16, 2026, 1:55:39 PM (14 days ago) Apr 16
              to Blink W3C Test Autoroller, Ravjit Uppal, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org
              Attention needed from Ravjit Uppal

              Thomas Nguyen voted Commit-Queue+2

              Commit-Queue+2
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Ravjit Uppal
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
              Gerrit-Change-Number: 7734929
              Gerrit-PatchSet: 16
              Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
              Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
              Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
              Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
              Gerrit-Attention: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Comment-Date: Thu, 16 Apr 2026 17:55:24 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Chromium LUCI CQ (Gerrit)

              unread,
              Apr 16, 2026, 4:14:46 PM (14 days ago) Apr 16
              to Thomas Nguyen, Blink W3C Test Autoroller, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org

              Chromium LUCI CQ submitted the change with unreviewed changes

              Unreviewed changes

              15 is the latest approved patch-set.
              The change was submitted with unreviewed changes in the following files:

              ```
              The name of the file: third_party/blink/web_tests/external/wpt/html/semantics/permission-element/usermedia/set-constraints-combinations.tentative.html
              Insertions: 2, Deletions: 2.

              @@ -82,10 +82,10 @@
              await new Promise(r => t.step_timeout(r, 600));

              if (should_trigger) {
              - await test_driver.bless("click", () => usermedia.click());
              + await test_driver.click(usermedia);
              await stream_promise;
              } else {
              - await test_driver.bless("click", () => usermedia.click());
              + await test_driver.click(usermedia);
              // Wait a bit to ensure no stream event is fired
              await new Promise(r => t.step_timeout(r, 200));
              }
              ```

              Change information

              Commit message:
              [CE] Correct logic of DefaultEventHandler in HTMLUserMediaElement

              Ensure that HTMLUserMediaElement does not initiate multiple concurrent
              media stream requests. Previously, rapid user activations could trigger
              overlapping requests before the initial one had completed.

              Additionally, the activation logic was updated to use the base
              capability element's activation handler, ensuring that permission
              checks and media requests are correctly synchronized with user events.

              Fixed: 500303904
              Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
              Reviewed-by: Joey Arhar <jar...@chromium.org>
              Commit-Queue: Thomas Nguyen <tun...@chromium.org>
              Cr-Commit-Position: refs/heads/main@{#1616082}
              Files:
              • M chrome/browser/permissions/permission_element_browsertest.cc
              • M chrome/browser/ui/views/permissions/embedded_permission_prompt_interactive_uitest.cc
              • M third_party/blink/renderer/core/html/html_capability_element_base.cc
              • M third_party/blink/renderer/core/html/html_user_media_element.cc
              • M third_party/blink/renderer/core/html/html_user_media_element.h
              • M third_party/blink/renderer/core/html/html_user_media_element_test.cc
              • M third_party/blink/renderer/modules/mediastream/user_media_request_provider_impl.cc
              • M third_party/blink/web_tests/external/wpt/html/semantics/permission-element/usermedia/set-constraints-combinations.tentative.html
              • M third_party/blink/web_tests/external/wpt/html/semantics/permission-element/usermedia/usermedia-constraints-descriptors.tentative.html
              • M third_party/blink/web_tests/external/wpt/html/semantics/permission-element/usermedia/usermedia-no-constraints.tentative.html
              Change size: L
              Delta: 10 files changed, 122 insertions(+), 155 deletions(-)
              Branch: refs/heads/main
              Submit Requirements:
              • requirement satisfiedCode-Review: +1 by Joey Arhar
              Open in Gerrit
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: merged
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
              Gerrit-Change-Number: 7734929
              Gerrit-PatchSet: 18
              Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
              Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
              Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
              open
              diffy
              satisfied_requirement

              Blink W3C Test Autoroller (Gerrit)

              unread,
              Apr 16, 2026, 10:42:13 PM (13 days ago) Apr 16
              to Thomas Nguyen, Chromium LUCI CQ, Ravjit Uppal, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, srirama chandra sekhar, blink-revie...@chromium.org, permissio...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, tommyw+w...@chromium.org

              Message from Blink W3C Test Autoroller

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

              Open in Gerrit

              Related details

              Attention set is empty
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
              Gerrit-Change-Number: 7734929
              Gerrit-PatchSet: 18
              Gerrit-Owner: Thomas Nguyen <tun...@chromium.org>
              Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
              Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
              Gerrit-Reviewer: Ravjit Uppal <rav...@chromium.org>
              Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
              Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
              Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
              Gerrit-Comment-Date: Fri, 17 Apr 2026 02:42:03 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: No
              satisfied_requirement
              open
              diffy
              Reply all
              Reply to author
              Forward
              0 new messages