Closed
Bug 1167590
Opened 11 years ago
Closed 11 years ago
Mark imgRequestProxy::mListener as MOZ_UNSAFE_REF
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla41
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file, 2 obsolete files)
|
1.07 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
Updated•11 years ago
|
Whiteboard: [gfx-noted]
| Assignee | ||
Updated•11 years ago
|
Attachment #8609364 -
Flags: review?(netzen)
Comment 2•11 years ago
|
||
Comment on attachment 8609364 [details] [diff] [review]
Mark imgRequestProxy::mListener as MOZ_UNSAFE_REF
Seth would probably be a better reviewer for imagelib things.
Attachment #8609364 -
Flags: review?(netzen) → review?(seth)
Updated•11 years ago
|
Assignee: nobody → michael
Comment 3•11 years ago
|
||
Comment on attachment 8609364 [details] [diff] [review]
Mark imgRequestProxy::mListener as MOZ_UNSAFE_REF
Review of attachment 8609364 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for the slow review; I've been unavailable to varying degrees for the past two weeks.
::: image/src/imgRequestProxy.h
@@ +203,5 @@
>
> // mListener is only promised to be a weak ref (see imgILoader.idl),
> // but we actually keep a strong ref to it until we've seen our
> // first OnStopRequest.
> + imgINotificationObserver* MOZ_UNSAFE_REF("Callers of methods setting mListener "
I'm not sure that "Callers of methods setting mListener" is quite the right way to phrase this. Just say something like "Observers must call Cancel() or CancelAndForgetObserver() before they are destroyed."
Attachment #8609364 -
Flags: review?(seth) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
No problem. Updated patch with changed phrasing.
Attachment #8609364 -
Attachment is obsolete: true
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Hi,
this failed to apply:
applying Bug-1167590---Mark-imgRequestProxymListener-as-MOZ.patch
unable to find 'image/src/imgRequestProxy.h' for patching
1 out of 1 hunks FAILED -- saving rejects to file image/src/imgRequestProxy.h.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working directory
errors during apply, please fix and refresh Bug-1167590---Mark-imgRequestProxymListener-as-MOZ.patch
Flags: needinfo?(michael)
Keywords: checkin-needed
| Assignee | ||
Comment 6•11 years ago
|
||
Should apply cleanly on mozilla-central now.
Attachment #8621690 -
Attachment is obsolete: true
| Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(michael)
Keywords: checkin-needed
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•