User scripts injected at start are not run for plugin and media documents
authorbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Aug 2010 20:20:16 +0000 (20:20 +0000)
committerbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Aug 2010 20:20:16 +0000 (20:20 +0000)
commit2828d0e38096e135f8c6fbc55a459713dc2efd41
tree51bf09747dc3b5bcae538492be5c662e693b696e
parent26b3f213b6cb6f0e35b2efa86520a72e5636e84c
User scripts injected at start are not run for plugin and media documents
<https://bugs.webkit.org/show_bug.cgi?id=44711>
<rdar://problem/8359288>

Reviewed by Adam Roben.

http://trac.webkit.org/changeset/61271 made scripts injected at start run on ImageDocuments,
but didn't implement this behavior for MediaDocuments and PluginDocuments.

* loader/MediaDocument.cpp:
(WebCore::MediaDocumentParser::createDocumentStructure): Make sure we fire dispatchDocumentElementAvailable.
* loader/PluginDocument.cpp:
(WebCore::PluginDocumentParser::createDocumentStructure): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/loader/MediaDocument.cpp
WebCore/loader/PluginDocument.cpp