Closed
Bug 1001469
Opened 11 years ago
Closed 7 years ago
Re-enable cycle collector optimization for nodes in the shadow tree
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: mccr8, Assigned: smaug)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
4.14 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
Currently, we can't optimize nodes in the shadow tree out of the graph based on whether they are in document, because they can return true for being in document even if they are not owned by the document.
Comment 1•7 years ago
|
||
Andrew, looks like this got fixed. Can we fix this now? That flag is definitely not needed anymore in problematicFlags, but should the CC optimization be using GetComposedDoc instead? That should allow to really apply the optimization to shadow trees.
Blocks: shadowdom-initial-release
Flags: needinfo?(continuation)
Comment 2•7 years ago
|
||
my first "got fixed" is about the "nodes in shadow trees report to be in the document".
Reporter | ||
Comment 3•7 years ago
|
||
I don't know. Hopefully Olli does.
Flags: needinfo?(continuation) → needinfo?(bugs)
Assignee | ||
Updated•7 years ago
|
No longer blocks: shadowdom-initial-release
Flags: needinfo?(bugs)
Assignee | ||
Comment 4•7 years ago
|
||
Using IsInComposedDoc should be fine these days, I think
Assignee | ||
Comment 5•7 years ago
|
||
We may want to change OwnedOnlyByTheDOMTree to make optimizations more effective.
Assignee | ||
Comment 6•7 years ago
|
||
these days host element owns the ShadowRoot
https://searchfox.org/mozilla-central/rev/3f17a234769d25fca5144ebb8abc8e1cb3c56c16/dom/base/FragmentOrElement.h#210
and ShadowRoot owns the host
https://searchfox.org/mozilla-central/rev/3f17a234769d25fca5144ebb8abc8e1cb3c56c16/dom/base/DocumentFragment.h#107
Assignee | ||
Comment 7•7 years ago
|
||
As explained in the previous comment, Shadow Root is handled sort of like another child node, so this should be fine. But let's see what tryserver thinks.
(manually running wpt shadow DOM tests didn't reveal leaks.)
remote: View your change here:
remote: https://hg.mozilla.org/try/rev/349c4959dad0cca1f14a6423e1cb4c2624b7256a
remote:
remote: Follow the progress of your build on Treeherder:
remote: https://treeherder.mozilla.org/#/jobs?repo=try&revision=349c4959dad0cca1f14a6423e1cb4c2624b7256a
remote: recorded changegroup in replication log in 0.113s
Assignee: nobody → bugs
Attachment #8974955 -
Flags: review?(continuation)
Reporter | ||
Updated•7 years ago
|
Attachment #8974955 -
Flags: review?(continuation) → review+
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/99e338bc3709
Re-enable cycle collector optimization for nodes in the shadow tree, r=mccr8
Comment 9•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•