Relax media playback restrictions if the allowsMediaDocumentInlinePlayback property is set.
Created attachment 257374 [details] Patch
Created attachment 257383 [details] Patch
Comment on attachment 257383 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257383&action=review > Source/WebCore/html/MediaElementSession.cpp:124 > + Page* page = element.document().page(); > + if (element.document().isMediaDocument() && !element.document().ownerElement() && page && page->allowsMediaDocumentInlinePlayback()) > + return true; Helper function for this? The code is repeated three times. I would put element.document() into a local variable since we use it three times.
Committed r187262: <http://trac.webkit.org/changeset/187262>