[Webkit-unassigned] [Bug 223791] embed element with the src attribute set prevents WebKitTestRunner from exiting
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 21 03:13:50 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=223791
--- Comment #3 from Carlos Garcia Campos <cgarcia at igalia.com> ---
The problem is that the load never finishes, so WTR keeps waiting for the final message from injected bundle that happens when the page is loaded. When the src attribute is changed, HTMLPlugInImageElement::updateImageLoaderWithNewURLSoon() is called. That calls HTMLPlugInImageElement::scheduleUpdateForAfterStyleResolution() that increases the document load event delay count and queues a style post resolution callback. The document load event delay count is decreased in HTMLPlugInImageElement::updateAfterStyleResolution), called by the style post resolution callback. But the callback is never called because the embed element is not in tree, and it's never added, keeping the document load event delay unbalanced. I think we should not call scheduleUpdateForAfterStyleResolution() when the element is not in render tree, since we know Node::invalidateStyle() will return early and style post resolution callbacks will not be called. If the element is added to the tree eventually, scheduleUpdateForAfterStyleResolution() will be called by didRecalcStyle, so the image will be loaded.
--
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/20210421/4e4a9f7b/attachment.htm>
More information about the webkit-unassigned
mailing list