Bug 21728
Summary: | svg/custom/use-instanceRoot-as-event-target.xhtml leaks an event listener and associated elements | ||
---|---|---|---|
Product: | WebKit | Reporter: | mitz |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | zimmermann |
Priority: | P2 | Keywords: | HasReduction, LayoutTestFailure |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
mitz
svg/custom/use-instanceRoot-as-event-target.xhtml reports the following:
LEAK: 1 EventListener
LEAK: 2 WebCoreSVGElementInstance
LEAK: 918 WebCoreNode
LEAK: 1 CachedResource
LEAK: 174 StructureID
LEAK: 292 JSC::Node
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
mitz
Here is a reduction (bugzilla won't accept it as an attachment right now):
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100px" height="100px">
<defs>
<rect id="target" />
</defs>
<use id="test" xlink:href="url(#target)"/>
<script>
document.getElementById("test").instanceRoot.addEventListener("mouseover", function() {}, false);
</script>
</svg>
Nikolas Zimmermann
Mitz, could you retest in ToT? I can't reproduce it, but like to hear your opinion before closing.
Nikolas Zimmermann
Can't reproduce it. Closing.