[Webkit-unassigned] [Bug 63202] New: webkitEnterFullscreen should not require user gesture if mediaPlaybackRequiresUserAction is false
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 22 16:32:23 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63202
Summary: webkitEnterFullscreen should not require user gesture
if mediaPlaybackRequiresUserAction is false
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Media Elements
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: adamjernst at gmail.com
Calling .webkitEnterFullscreen() will raise INVALID_STATE_ERR except from a user-initiated gesture. If document()->settings()->mediaPlaybackRequiresUserAction() is false, I believe webkitEnterFullscreen should be allowed without a user gesture.
The machinery behind the gesture requirement for webkitEnterFullscreen is roughly the same as that behind the load() and play() restrictions requiring a user-initiated gesture. The mediaPlaybackRequiresUserAction property was added for the express purpose of letting users disable these restrictions (which we do in our iOS app's UIWebView).
mediaPlaybackRequiresUserAction is mapped into a corresponding "BehaviorRestrictionFlag" on HTMLMediaElement. (See WebCore sources/html/HTMLMediaElement.h.) This is checked in play() and load().
Adapting webkitEnterFullscreen accordingly would be a relatively small change: a new BehaviorRestrictionFlag set accordingly and updating HTMLVideoElement::webkitEnterFullscreen to check it.
--
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