[Webkit-unassigned] [Bug 118788] [GTK] WebKitDOM objects leaking

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 13 04:50:02 PST 2015


--- Comment #5 from Milan Crha <mcrha at redhat.com> ---
Created attachment 246517
  --> https://bugs.webkit.org/attachment.cgi?id=246517&action=review

Test application (first line shows how to compile & run it), which makes it easier to reproduce the leaks. Similar code (update_styles()) is used in Evolution and called to quite few times on various occasions.

The thing is that objects like WebKitDOMCSSRuleList (returned from webkit_dom_css_style_sheet_get_css_rules()) and WebKitDOMCSSRule (returned from webkit_dom_css_rule_list_item()) are not freed on frame reload, but a new objects are returned anyway.

The reason is that DOMObjectCache::clearByFrame() is called with a valid frame, but these objkects (and many other DOM objects) are stored in the cache with NULL data->frame.

My opinion: It won't work to always remove objects which has data->frame == NULL in the cache on any frame cleanup, because that would influence (invalidate) GObject-s from other web views (if there are more instances).

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/20150213/c7c5a0c9/attachment-0002.html>

More information about the webkit-unassigned mailing list