Closed Bug 1813914 Opened 1 year ago Closed 1 year ago

Wrong result for `getAutoplayPolicy("mediaelement")` when using it on the click-to-play policy

Categories

(Core :: Audio/Video: Playback, defect, P3)

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

STR.

  1. set media.autoplay.blocking_policy=2
  2. open https://alastor0325.github.io/htmltests/autoplay_tests/iframe_a1_a2_a3.html
  3. click the arbitrary place on the page, but not on those elements

Expected.
4. getAutoplayPolicy("mediaelement") still returns disallowed

Actual
4. getAutoplayPolicy("mediaelement") returns allowed

Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e14477ce5634
part1 : add test for click-to-play policy. r=padenot
https://hg.mozilla.org/integration/autoland/rev/b1136548dfb3
part2 : split 'IsWindowAllowedToPlay' into two types of checks for the future usage. r=padenot
https://hg.mozilla.org/integration/autoland/rev/9d7979f180dc
part3 : don't check gesture activation for document when the policy is click-to-play. r=padenot
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Regressions: 1815420
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: