Bug 233307 - [GTK] media autoplay deny does not always work
Summary: [GTK] media autoplay deny does not always work
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-18 00:04 PST by Milan Crha
Modified: 2023-05-20 18:09 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Crha 2021-11-18 00:04:05 PST
Moving thins from a downstream bug report:
https://gitlab.gnome.org/GNOME/epiphany/-/issues/1639

I've epiphany-41.0-1.fc35.x86_64 and webkit2gtk3-2.34.1-2.fc35.x86_64. I do not know better pages, thus at least these. When I open https://finance.yahoo.com , then the lock icon menu in the address bar has "Deny" for everything, including Media Autoplay. However, when I Ctrl+click on an article link, which contains a video, then the video is started automatically. I see in the lock icon menu that the media autoplay is still disabled. When I open the link by writing the URL into the address bar, then the autoplay is not started, as expected. 

I thought the open in a new tab has its impact on this, but then I realized a simple non-Ctrl Click also ignores the media autoplay deny.
Comment 1 antoyo 2023-05-20 18:09:13 PDT
From what I can see, a video will autoplay if it was already loaded in a previous page.

For instance, this website is good to test this: https://videojs.github.io/autoplay-tests/

On this video (https://videojs.github.io/autoplay-tests/plain/attr/autoplay.html), for instance, the first time it will not play automatically, but realoading the page (might) autoplay it.