Closed Bug 1652042 Opened 4 years ago Closed 4 years ago

mediaelement.play() stays pending forever in new window

Categories

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

78 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1611748

People

(Reporter: tharin.desilva1, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

Steps to reproduce:

Hi there,

We're having trouble playing a video on a new window, in Firefox.

We noticed that this started happening from the 2019-09-26 nightly build onwards. It seems that when .play() is called after the mediaelement is added to the newly opened window, it triggers this behaviour.

UA: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0

Steps:

  1. visit https://jsfiddle.net/Lcne05tg/1/
  2. open the browser console
  3. click "Click me" button

Actual results:

The .play() promise would stay pending forever. Right clicking the video element and clicking play does nothing. Maximising the window causes it to behave as expected.

Expected results:

The .play() promise should either succeed or fail.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.