Closed Bug 1167389 Opened 10 years ago Closed 10 years ago

Make FileList::mParent a smart pointer, and declare it to the cycle collector

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: nika, Assigned: nika)

Details

Attachments

(1 file, 3 obsolete files)

Attachment #8609008 - Flags: review?(jst)
Attachment #8609008 - Flags: review?(jst) → review?(ehsan)
Comment on attachment 8609008 [details] [diff] [review] Mark FileList::mParent as MOZ_UNSAFE_REF Review of attachment 8609008 [details] [diff] [review]: ----------------------------------------------------------------- We should be able to make this a strong ref and declare it to the cycle collector. See Blob::mParent for a very similar case.
Attachment #8609008 - Flags: review?(ehsan) → review-
I declared it to the cycle collector, let's see if it acts leaky on try (I think it should be OK based on looking at it's consumers). try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3f79fcb14051
Attachment #8609008 - Attachment is obsolete: true
Attachment #8629517 - Flags: review?(ehsan)
Attachment #8629517 - Attachment is obsolete: true
Attachment #8629517 - Flags: review?(ehsan)
Attachment #8629532 - Flags: review?(ehsan)
Attachment #8629532 - Flags: review?(ehsan) → review+
Assignee: nobody → michael
Keywords: checkin-needed
Summary: Mark FileList::mParent as MOZ_UNSAFE_REF → Make FileList::mParent a smart pointer, and declare it to the cycle collector
Hi, this patch failed to apply: adding 1167389 to series file renamed 1167389 -> Bug-1167389---Make-FileListmParent-a-smart-pointer.patch applying Bug-1167389---Make-FileListmParent-a-smart-pointer.patch patching file dom/base/File.cpp Hunk #1 FAILED at 1217 1 out of 1 hunks FAILED -- saving rejects to file dom/base/File.cpp.rej patching file dom/base/File.h Hunk #1 succeeded at 986 with fuzz 2 (offset 159 lines). patch failed, unable to continue (try -v) patch failed, rejects left in working directory errors during apply, please fix and refresh Bug-1167389---Make-FileListmParent-a-smart-pointer.patch could you take a look, thanks!
Flags: needinfo?(michael)
Keywords: checkin-needed
Flags: needinfo?(michael)
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: