Bug 106876
| Summary: | HTML5 Body OnLoad event is not firing for application | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | ank.cpp |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | CC: | ap, eric.carlson, karlcow, roger_fong |
| Priority: | P2 | Keywords: | NeedsReduction |
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
ank.cpp
Hi,
I'm working on Webkit for win32 port.
For my application using HTML5 Video tag for videos, Body onLoad event is not firing.
The problem doesn't occur when I'm not providing any SRC value.
Error:
<video> onload = onLoad()
src = "E:/xyz.mp4"
No Error:
<video> onload = onLoad()
src =
I have debugged and found the problem also.
I modified in FrameLoader.cpp , for function void FrameLoader::checkCompleted()
commented the check:
if (m_frame->document()->isDelayingLoadEvent())
return;
also for fucntion void FrameLoader::checkCallImplicitClose()
commented the check:
|| m_frame->document()->isDelayingLoadEvent())
After doing above modification event started firing correctly.
Googled and found that the above code is added for "Bug 44013 - HTMLMediaElement should delay document load event".
Previously evnet was firing quite fine.
I'm a newbie in webkit , please let me know if someone has the solution.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Lucas Forschler
Mass move bugs into the DOM component.
Karl Dubost
Without a test case this is hard to know if there is a bug or if other browsers are behaving differently.