Closed Bug 1484040 Opened 7 years ago Closed 7 years ago

Running testing under dom/tests/mochitest/dom-level2-core/ leak if shadow DOM is enabled in testing profile

Categories

(Core :: XML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

Attachments

(1 file)

It is enough to have just the following in mochitest.ini to see the leak. If nsContentUtils::IsShadowDOMEnabled() check in XMLPrettyPrinter is disabled, there is no leak. [DEFAULT] support-files = DOMTestCase.js exclusions.js files/hc_staff.html files/hc_staff.svg files/hc_staff.xhtml files/hc_staff.xml files/internalSubset01.js files/nodtdstaff.svg files/nodtdstaff.xml files/staff.dtd files/staff.svg files/staff.xml files/staff2.dtd files/staff2.svg files/staff2.xml files/staffNS.dtd files/staffNS.svg files/staffNS.xml files/svgtest.js files/svgunit.js files/xhtml-lat1.ent files/xhtml-special.ent files/xhtml-symbol.ent files/xhtml1-frameset.dtd files/xhtml1-strict.dtd files/xhtml1-transitional.dtd [test_setNamedItemNS02.html] [test_setNamedItemNS03.html]
And when we leak, we leak the world.
Assignee: nobody → bugs
Better to actually unbind the child elements of shadow root properly. See similar code at the end of Element::UnbindFromTree
Attachment #9001787 - Flags: review?(timdream)
Attachment #9001787 - Flags: review?(timdream) → review+
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/17adf3f924cc unbind shadow DOM content when uninstalling shadow DOM based XML Pretty Printer, r=timdream
Blocks: 1471947
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: