[Webkit-unassigned] [Bug 188499] Setting a frame src after appending it to the DOM makes the frame's load event be fired twice

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 20 12:28:02 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=188499

--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org> ---
On interesting, When an iframe is inserted into a document, it loads about:blank which in turn fires a load event. What makes WebKit and Blink's behavior different from the spec is that we synchronously fire a load event in this case.

See https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element

When an iframe element is inserted into a document that has a browsing context, the user agent must create a new browsing context, set the element's nested browsing context to the newly-created browsing context, and then process the iframe attributes for the "first time".

https://html.spec.whatwg.org/multipage/iframe-embed-object.html#process-the-iframe-attributes

Otherwise, if the element has no src attribute specified, and the user agent is processing the iframe's attributes for the "first time"
Queue a task to run the iframe load event steps.
The task source for this task is the DOM manipulation task source.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180820/8f0c9b86/attachment.html>


More information about the webkit-unassigned mailing list