Closed
Bug 814738
Opened 13 years ago
Closed 13 years ago
Modernize traversal of nsTObserverArrays
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
6.19 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
These classes explicitly iterate over nsTObserverArrays:
nsAccessiblePivot (mObservers)
nsEventListenerManager (mListeners)
nsGlobalWindow (mIdleObservers)
As part of this, the ImplCycleCollectionTraverse for nsTObserverArray<T> needs to be converted to nsAutoTObserverArray<T, N>.
I have a patch floating around for this, mangled in with some other changes. I found these by renaming nsAutoTObserverArray::ElementAt to something else, then looking for compile errors.
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #684776 -
Flags: review?(bugs)
Comment 2•13 years ago
|
||
Comment on attachment 684776 [details] [diff] [review]
clean it up
Make sure to push this to try.
Do we not need templates for nsTObserverArray? Only for the Auto* ?
Assuming this gets answered, r+
(I couldn't find cycle collected nsTObserverArrays, only Auto*)
Attachment #684776 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
Yeah, I did a Linux64 debug try run, and it was fine.
https://tbpl.mozilla.org/?tree=Try&rev=0f0e2dbb1b4e
I guess we just didn't have any nsTObserverArrays being CC-traversed. That would explain why a previous patch I had that broke the observe template for them still compiled.
| Assignee | ||
Comment 4•13 years ago
|
||
Thanks for the review.
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0e7e7d26f56
Comment 5•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•