<video> element delays document load event for ~ 3 seconds
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jun 2013 15:16:02 +0000 (15:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jun 2013 15:16:02 +0000 (15:16 +0000)
commit8c2debb51c3a867d4577ebb04bcb381f649e9b9f
treef966cd14ef070277392b371b0fb513316ac7fdec
parent9147fb2f54190a7e348518e096d27b60bc70b1cd
<video> element delays document load event for ~ 3 seconds
https://bugs.webkit.org/show_bug.cgi?id=90272

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-06-18
Reviewed by Eric Carlson.

Source/WebCore:

Test: media/media-preload-no-delay-loadevent.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::prepareForLoad):
No need to delay document load event here  when preload="none"

LayoutTests:

* media/media-preload-no-delay-loadevent-expected.txt: Added.
* media/media-preload-no-delay-loadevent.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/media-preload-no-delay-loadevent-expected.txt [new file with mode: 0644]
LayoutTests/media/media-preload-no-delay-loadevent.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp