Closed Bug 738022 Opened 12 years ago Closed 12 years ago

gonk gps - test GpsInterface size before using

Categories

(Core :: DOM: Geolocation, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: dougt, Assigned: dougt)

Details

Attachments

(1 file)

Changes:

Tests the resulting interface structure's size with what was compiled. I am seeing mismatches on the S2 which cause crashes.

Sets mStarted when the provide has started up.

Moves the code that dlopen's from the provider's constructor to Startup().
Attached patch patch v.1Splinter Review
Attachment #608076 - Flags: review?(josh)
Comment on attachment 608076 [details] [diff] [review]
patch v.1

Review of attachment 608076 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/system/gonk/GonkGPSGeolocationProvider.cpp
@@ +187,5 @@
>  {
>    if (!mStarted)
>      return NS_OK;
>  
> +  NS_ENSURE_TRUE(mGpsInterface, NS_OK);

Just add this check to the one above.
Attachment #608076 - Flags: review?(josh) → review+
https://hg.mozilla.org/mozilla-central/rev/d5e83e501b01
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: