Media controls run scripts inHTMLMediaElement::insertedInto
<rdar://problem/28935401>
Created attachment 293819 [details] patch
Created attachment 293823 [details] patch
Created attachment 293860 [details] patch
https://trac.webkit.org/r208370
*** Bug 164774 has been marked as a duplicate of this bug. ***