Autoplay: Allow audio playback without user gesture when explicitly allowed [chromium/src : main]

0 views
Skip to first unread message

Evan Liu (Gerrit)

unread,
Mar 30, 2026, 3:07:13 PM (3 days ago) Mar 30
to Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org
Attention needed from Dale Curtis

Evan Liu voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Dale Curtis
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: Ic379a022fb0d619c8778afd936cc179238b34f0d
Gerrit-Change-Number: 7708623
Gerrit-PatchSet: 5
Gerrit-Owner: Evan Liu <ev...@google.com>
Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
Gerrit-Reviewer: Evan Liu <ev...@google.com>
Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
Gerrit-Comment-Date: Mon, 30 Mar 2026 19:07:05 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Dale Curtis (Gerrit)

unread,
Mar 30, 2026, 4:08:43 PM (3 days ago) Mar 30
to Evan Liu, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org
Attention needed from Evan Liu

Dale Curtis added 3 comments

File chrome/test/data/media/audio_autoplay.html
Line 1, Patchset 5 (Latest):<!DOCTYPE html>
Dale Curtis . unresolved

Add a brief comment on what this is testing

File chrome/test/data/media/muted_video_autoplay.html
Line 1, Patchset 5 (Latest):<!DOCTYPE html>
Dale Curtis . unresolved

Ditto

File third_party/blink/renderer/core/html/media/autoplay_policy.cc
Open in Gerrit

Related details

Attention is currently required from:
  • Evan Liu
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: Ic379a022fb0d619c8778afd936cc179238b34f0d
    Gerrit-Change-Number: 7708623
    Gerrit-PatchSet: 5
    Gerrit-Owner: Evan Liu <ev...@google.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Evan Liu <ev...@google.com>
    Gerrit-Attention: Evan Liu <ev...@google.com>
    Gerrit-Comment-Date: Mon, 30 Mar 2026 20:08:34 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Evan Liu (Gerrit)

    unread,
    Apr 1, 2026, 8:06:03 PM (10 hours ago) Apr 1
    to Hongchan Choi, AyeAye, Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org
    Attention needed from Dale Curtis

    Evan Liu voted and added 3 comments

    Votes added by Evan Liu

    Commit-Queue+1

    3 comments

    File chrome/test/data/media/audio_autoplay.html
    Line 1, Patchset 5:<!DOCTYPE html>
    Dale Curtis . resolved

    Add a brief comment on what this is testing

    Evan Liu

    Done

    File chrome/test/data/media/muted_video_autoplay.html
    Line 1, Patchset 5:<!DOCTYPE html>
    Dale Curtis . resolved

    Ditto

    Evan Liu

    Done

    File third_party/blink/renderer/core/html/media/autoplay_policy.cc
    Line 75, Patchset 5 (Parent): if (DocumentHasUserExceptionFlag(document))
    Dale Curtis . resolved
    Evan Liu

    Oh good catch! The speech synthesis usage is fine since falls back to `IsDocumentAllowedToPlay()` immediately afterwards which contains the same check that was just moved. The AudioContext usage needs to be updated to accommodate the prerendering edge case.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dale Curtis
    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: Ic379a022fb0d619c8778afd936cc179238b34f0d
      Gerrit-Change-Number: 7708623
      Gerrit-PatchSet: 11
      Gerrit-Owner: Evan Liu <ev...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-Reviewer: Evan Liu <ev...@google.com>
      Gerrit-CC: Hongchan Choi <hong...@chromium.org>
      Gerrit-CC: Michael Wilson <mjwi...@chromium.org>
      Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Apr 2026 00:05:53 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dale Curtis (Gerrit)

      unread,
      Apr 1, 2026, 8:19:33 PM (10 hours ago) Apr 1
      to Evan Liu, Hongchan Choi, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org
      Attention needed from Evan Liu and Hongchan Choi

      Dale Curtis added 1 comment

      File third_party/blink/renderer/modules/webaudio/audio_context.cc
      Line 634, Patchset 11 (Latest): }
      Dale Curtis . unresolved

      Does this need an else to avoid the switch below?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Evan Liu
      • Hongchan Choi
      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: Ic379a022fb0d619c8778afd936cc179238b34f0d
        Gerrit-Change-Number: 7708623
        Gerrit-PatchSet: 11
        Gerrit-Owner: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Hongchan Choi <hong...@chromium.org>
        Gerrit-Attention: Evan Liu <ev...@google.com>
        Gerrit-Attention: Hongchan Choi <hong...@chromium.org>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 00:19:15 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Evan Liu (Gerrit)

        unread,
        Apr 1, 2026, 8:33:53 PM (10 hours ago) Apr 1
        to Hongchan Choi, AyeAye, Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org
        Attention needed from Dale Curtis and Hongchan Choi

        Evan Liu added 1 comment

        File third_party/blink/renderer/modules/webaudio/audio_context.cc
        Dale Curtis . unresolved

        Does this need an else to avoid the switch below?

        Evan Liu

        I believe the lack of an `else` statement here is required to fix b/498258317. Perhaps Hongchan can confirm.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dale Curtis
        • Hongchan Choi
        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: Ic379a022fb0d619c8778afd936cc179238b34f0d
        Gerrit-Change-Number: 7708623
        Gerrit-PatchSet: 12
        Gerrit-Owner: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Hongchan Choi <hong...@chromium.org>
        Gerrit-CC: Michael Wilson <mjwi...@chromium.org>
        Gerrit-Attention: Hongchan Choi <hong...@chromium.org>
        Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 00:33:42 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages