Closed
Bug 908031
Opened 12 years ago
Closed 12 years ago
Remove nsGeolocation::PendingRequest
Categories
(Core :: DOM: Geolocation, defect)
Core
DOM: Geolocation
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: kanru, Assigned: mjh563)
Details
(Whiteboard: [mentor=jdm][lang=c++])
Attachments
(1 file, 1 obsolete file)
|
5.30 KB,
patch
|
jdm
:
review+
|
Details | Diff | Splinter Review |
We could use nsGeolocationRequest directly and use nsGeolocationRequest::IsWatch to find out the type of the request.
Comment 2•12 years ago
|
||
Hi,
I am willing to work on this bug. So, please I request you to assign me this bug.
Thanks in Advance,
Regards,
A.Anup.
Updated•12 years ago
|
Assignee: nobody → allamsetty.anup
Updated•12 years ago
|
Assignee: allamsetty.anup → nobody
Here's my attempted fix for this bug. Hope I've understood it correctly...
I'm not sure about this line though, I have a feeling it's not right:
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mPendingRequests[i])
I'm not at all familiar with how cycle collection works, but since mPendingRequests is now the same type as mPendingCallbacks and mWatchingCallbacks (ie. nsTArray<nsRefPtr<nsGeolocationRequest> >), I guess the cycle collection for mPendingRequests should be done in the same way?
Comment 4•12 years ago
|
||
Comment on attachment 801193 [details] [diff] [review]
patch v1
Review of attachment 801193 [details] [diff] [review]:
-----------------------------------------------------------------
This looks great, and your hunch is right. The cycle collection traversal is still be correct as written, but it would be more maintainable to let it deal with the array like the others rather than manually iterating through it.
Attachment #801193 -
Flags: feedback?(josh) → feedback+
Updated patch to fix the cycle collection macros. Ms2ger suggested on IRC to use NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_4, so that's what I've done.
Attachment #801193 -
Attachment is obsolete: true
Attachment #801276 -
Flags: review?(josh)
Comment 6•12 years ago
|
||
Comment on attachment 801276 [details] [diff] [review]
updated patch
Mmm, lovely. Thanks!
Attachment #801276 -
Flags: review?(josh) → review+
Updated•12 years ago
|
Keywords: checkin-needed
Comment 7•12 years ago
|
||
Keywords: checkin-needed
Comment 8•12 years ago
|
||
Status: ASSIGNED → 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.
Description
•