Changeset 203473 in webkit


Ignore:
Timestamp:
Jul 20, 2016 3:56:08 PM (8 years ago)
Author:
Wenson Hsieh
Message:

Pausing autoplayed media should not remove all restrictions for that media element
https://bugs.webkit.org/show_bug.cgi?id=159988

Reviewed by Jon Lee.

Localizes the removal of behavior restrictions introduced in r203464 upon pausing an
autoplaying video to just affect the hiding or showing of the media controller. This
prevents pages from using Javascript to start playing autoplaying videos that have
been paused by the user.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::pause):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r203471 r203473  
     12016-07-20  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Pausing autoplayed media should not remove all restrictions for that media element
     4        https://bugs.webkit.org/show_bug.cgi?id=159988
     5
     6        Reviewed by Jon Lee.
     7
     8        Localizes the removal of behavior restrictions introduced in r203464 upon pausing an
     9        autoplaying video to just affect the hiding or showing of the media controller. This
     10        prevents pages from using Javascript to start playing autoplaying videos that have
     11        been paused by the user.
     12
     13        * html/HTMLMediaElement.cpp:
     14        (WebCore::HTMLMediaElement::pause):
     15
    1162016-07-20  Myles C. Maxfield  <mmaxfield@apple.com>
    217
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r203464 r203473  
    31573157
    31583158    if (ScriptController::processingUserGestureForMedia())
    3159         removeBehaviorsRestrictionsAfterFirstUserGesture();
     3159        removeBehaviorsRestrictionsAfterFirstUserGesture(MediaElementSession::RequireUserGestureToControlControlsManager);
    31603160
    31613161    pauseInternal();
Note: See TracChangeset for help on using the changeset viewer.