Giter Club home page Giter Club logo

Comments (3)

alastor0325 avatar alastor0325 commented on July 1, 2024

In our design, doorhanger will dismiss when
(1) user press escape
(2) user interacts with doorhanger
(3) user ignores doorhanger and directly play audible video from the page
(4) user navigates to other different document.

In this case, Twitch uses in-document navigation, which is a technique to use same document for presenting different URL. Therefore, the doorhanger won't dismiss unless any of above condition happens.

from autoplay-shield-study.

Softvision-AndreeaCupsa avatar Softvision-AndreeaCupsa commented on July 1, 2024

Because the doorhanger is not dismissed when navigating on the same domain, I have found the following scenario:

[Steps to reproduce]:

  1. Open the Firefox browser with the profile from the prerequisites.
  2. Navigate to https://twitch.tv.
  3. Click on one of the feature games thumbnail, then click on another video.
  4. Observe the left of the address bar area and the video from the page.

[Actual results]:

  • The video automatically starts playing and the doorhanger is dismissed.

Further navigation on the same domain during the same session will no longer trigger the doorhanger and videos will automatically start to play without the user having taken any action on the doorhanger.

Which should be the correct behavior in this situation?

from autoplay-shield-study.

alastor0325 avatar alastor0325 commented on July 1, 2024

Yes, it's correct behavior. You have activated the document (by clicking), so the site has already been allowed to autoplay afterward. When the audible video starts playing, the doorhanger will dismiss.

from autoplay-shield-study.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.