[Webkit-unassigned] [Bug 33604] iframe.contentWindow doesn't fire DOMContentLoaded (implement DOMFrameContentLoaded?)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 13 17:10:24 PDT 2012


arno. <arno at renevier.net> changed:

           What    |Removed                     |Added
 Attachment #158148|                            |review?
               Flag|                            |

--- Comment #5 from arno. <arno at renevier.net>  2012-08-13 17:10:53 PST ---
Created an attachment (id=158148)
 --> (https://bugs.webkit.org/attachment.cgi?id=158148&action=review)
patch proposal

Currently, Firefox and Opera both implement DOMFrameContentLoaded events.

When a frame has been loaded, opera dispatches an event on the owner iframe. This event then bubbles up to the window.

Firefox dispatch an event on the document on the owner iframe. It bubbles to the window. target of that element is the iframe whose content has loaded. If the owner document is itself contained in a frame, a event is dispatched to the parent document. event target is still the frame when content has loaded (and so on to the top of the parent document chain)

In this patch, I implement opera's behaviour, first because it was the simplest way, and also because I don't really see advantage of ascending the event two or more frames upper. But I can try to implement firefox's behaviour if that's useful.

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