Closed
Bug 877191
Opened 11 years ago
Closed 11 years ago
Gonk does not compile with later m-c on 4.6 compiler
Categories
(Firefox OS Graveyard :: GonkIntegration, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: romaxa, Assigned: romaxa)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
mwu
:
review+
|
Details | Diff | Splinter Review |
Some changes are missing for gonk port.
../../../gecko/widget/gonk/nsIdleServiceGonk.h:39:16: error: could not convert 'idleService' from 'nsIdleServiceGonk*' to 'already_AddRefed<nsIdleServiceGonk>'
http://hg.mozilla.org/mozilla-central/rev/321ab55f16ba#l6.12
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #755398 -
Flags: review?(mwu)
Comment 2•11 years ago
|
||
Comment on attachment 755398 [details] [diff] [review]
Fix for recent ref pointers update, build fix for gonk
Review of attachment 755398 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/GonkGPSGeolocationProvider.cpp
@@ +48,4 @@
> nsIRILDataCallback,
> nsISettingsServiceCallback)
>
> +nsRefPtr<GonkGPSGeolocationProvider> GonkGPSGeolocationProvider::sSingleton;
Hmm I think you introduced a behavior change so that sSingleton is never NULL'd out. It looks like this code relies on the caller of GetSingleton to drop its reference to free sSingleton, but nsRefPtr would cause it to never go away.
I think we'll just want to add a nsRefPtr in GetSingleton instead so the behavior isn't changed.
BTW there's StaticRefPtr for declaring a refptr in a static global context.
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #755398 -
Attachment is obsolete: true
Attachment #755398 -
Flags: review?(mwu)
Attachment #755711 -
Flags: review?(mwu)
Comment 4•11 years ago
|
||
Comment on attachment 755711 [details] [diff] [review]
Fix for recent ref pointers update, build fix for gonk
Review of attachment 755711 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/GonkGPSGeolocationProvider.cpp
@@ +40,4 @@
> using namespace mozilla;
>
> static const int kDefaultPeriod = 1000; // ms
> +/* static */ StaticRefPtr<GonkGPSGeolocationProvider> GonkGPSGeolocationProvider::sSingleton;
I meant to not use any refptr. The previous behavior allowed us to free this object whenever no one was using it, but this holds on to it forever.
Assignee | ||
Comment 5•11 years ago
|
||
Ah ok, sorry, misread previous message
Attachment #755711 -
Attachment is obsolete: true
Attachment #755711 -
Flags: review?(mwu)
Attachment #755734 -
Flags: review?(mwu)
Comment 6•11 years ago
|
||
Comment on attachment 755734 [details] [diff] [review]
Fix for recent ref pointers update, build fix for gonk
Looks good, thanks!
Attachment #755734 -
Flags: review?(mwu) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Assignee: nobody → romaxa
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•