Closed Bug 906272 Opened 12 years ago Closed 12 years ago

Something is not right with the cycle collection of nsScreen

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

nsScreen.h has this: 107 NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsScreen, 108 nsDOMEventTargetHelper) ...but then doesn't declare anything else related to the cycle collector, like Traverse or Unlink methods, nor does it QI correctly to its undefined participant. I'm not sure what the right thing to do is here. It has an nsRefPtr<FullScreenEventListener>, which is a locally defined subclass of nsIDOMEventListener. Does the CC need to be told about that field? If yes, CC definitions need to be added. If not, the CC declaration can be removed.
(In reply to Andrew McCreight [:mccr8] from comment #0) > Does the CC need to be told about that field? FullScreenEventListener doesn't hold refs to anything so no, it doesn't look like it does.
Assignee: nobody → continuation
Attached patch remove itSplinter Review
Attachment #792259 - Flags: review?(khuey)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: