[Webkit-unassigned] [Bug 219399] New: [GTK][WPE] Invalid play promise rejection in HTMLMediaElement

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 1 08:23:04 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=219399

            Bug ID: 219399
           Summary: [GTK][WPE] Invalid play promise rejection in
                    HTMLMediaElement
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wojtas.arkadiusz at gmail.com

The HTMLMediaElement rejects play promise when the webpage's playback call sequence is:

1) create a video element
2) call video.play()
3) sets the src attribute

That sequence in WPEWebkit is not handled correctly. Setting the src attribute results in play promise rejection. I have compared that with chromium and it handles that situation in a different way.

The algorithm is described here:
https://html.spec.whatwg.org/multipage/media.html#media-element-load-algorithm

In the chromium the HTMLMediaElement cancels events, resolve promises that are scheduled to be resolved and rejects play promises that are scheduled to be rejected (Step 3 and 4). The rest of the play promises are not touched (unless step 6 takes place).

In webkit's step 3: all events and promises are rejected. It is done by cancelPendingEventsAndCallbacks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201201/37148364/attachment-0001.htm>


More information about the webkit-unassigned mailing list