[Webkit-unassigned] [Bug 79167] Expose a setting to exempt media playback from user gesture requirement after a user gesture is initiated on loading/playing a media

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 23 22:59:55 PST 2012


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





--- Comment #18 from Adam Barth <abarth at webkit.org>  2012-02-23 22:59:55 PST ---
(From update of attachment 128583)
View in context: https://bugs.webkit.org/attachment.cgi?id=128583&action=review

> Source/WebCore/html/HTMLMediaElement.cpp:4057
> +void HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture()
> +{
> +    m_restrictions = NoRestrictions;
> +}

I'm trying to understand whether we're removing too many restrictions here.  I need to re-read the bug thread.

> Source/WebCore/html/HTMLMediaElement.h:479
> +    // Remove behavior restrictions after user requested load/play

I would skip this comment.  It's pretty redundant with the name of the method.

> LayoutTests/media/video-play-require-user-gesture.html:10
> +            if (window.internals) 
> +	        window.internals.setMediaPlaybackRequiresUserGesture(document, true);

Looks like there's some problem with you indent here.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list