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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla42
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
Details
Attachments
(1 file, 3 obsolete files)
| Assignee | ||
Comment 1•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8609008 -
Flags: review?(jst)
| Assignee | ||
Updated•10 years ago
|
Attachment #8609008 -
Flags: review?(jst) → review?(ehsan)
Comment 2•10 years ago
|
||
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-
| Assignee | ||
Comment 3•10 years ago
|
||
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)
| Assignee | ||
Comment 4•10 years ago
|
||
Fixed some destructor problems...
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=403e40ab6a51
Attachment #8629517 -
Attachment is obsolete: true
Attachment #8629517 -
Flags: review?(ehsan)
Attachment #8629532 -
Flags: review?(ehsan)
Updated•10 years ago
|
Attachment #8629532 -
Flags: review?(ehsan) → review+
| Assignee | ||
Updated•10 years ago
|
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
Comment 5•10 years ago
|
||
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
| Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(michael)
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
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
•