[Webkit-unassigned] [Bug 45188] New: Setting innerHTML to a video element does not respect autoplay

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 3 11:54:38 PDT 2010


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

           Summary: Setting innerHTML to a video element does not respect
                    autoplay
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Media Elements
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vrk at google.com


Created an attachment (id=66527)
 --> (https://bugs.webkit.org/attachment.cgi?id=66527)
autoplay testcase

When you write JavaScript to inject a video into the page by setting the innerHTML of the element that will contain the video, the video does not autoplay even if the tag is set. 

This was the only scenario I could find where autoplay did not work; if one writes the video tag in HTML it works fine, if one creates the video node in JS using the DOM and injects it in the page with appendChild, it works fine, or if there is an existing video element in the DOM to which you add the autoplay attribute and a src, it also works fine.

I think this is the change list that broke it:
http://trac.webkit.org/changeset/65170/trunk/WebCore/html/HTMLMediaElement.cpp

But I'm not familiar enough with the code to know why exactly it's doing this.

-- 
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