Changeset 203473 in webkit
- Timestamp:
- Jul 20, 2016 3:56:08 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r203471 r203473 1 2016-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 1 16 2016-07-20 Myles C. Maxfield <mmaxfield@apple.com> 2 17 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r203464 r203473 3157 3157 3158 3158 if (ScriptController::processingUserGestureForMedia()) 3159 removeBehaviorsRestrictionsAfterFirstUserGesture( );3159 removeBehaviorsRestrictionsAfterFirstUserGesture(MediaElementSession::RequireUserGestureToControlControlsManager); 3160 3160 3161 3161 pauseInternal();
Note: See TracChangeset
for help on using the changeset viewer.