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)
Core
XML
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file)
1.12 KB,
patch
|
timdream
:
review+
|
Details | Diff | Splinter Review |
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]
Assignee | ||
Comment 1•7 years ago
|
||
And when we leak, we leak the world.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → bugs
Assignee | ||
Comment 2•7 years ago
|
||
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)
Updated•7 years ago
|
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
Updated•7 years ago
|
Priority: -- → P2
Comment 4•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•