The default bug view has changed. See this FAQ.

[b2g-bluetooth] Bluetooth event handler registration crashes gecko in the emulator when Bluetooth isn't initialized

RESOLVED FIXED in mozilla17

Status

()

Core
DOM: Device Interfaces
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: marshall_law, Assigned: marshall_law)

Tracking

Trunk
mozilla17
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
The emulator doesn't have Bluetooth support, so initialization will (correctly) gracefully fails in that situation.

The crashes occur when RegisterBluetoothEventHandler / UnregisterBluetoothEventHandler try to access the static map |sBluetoothEventObserverTable| even though it hasn't been initialized yet. These calls look to be coming from BluetoothManager::Create
(Assignee)

Comment 1

5 years ago
Created attachment 642993 [details] [diff] [review]
observer map crash fix - v1
Attachment #642993 - Flags: review?(kyle)

Updated

5 years ago
Attachment #642993 - Flags: review?(kyle) → review+
http://hg.mozilla.org/integration/mozilla-inbound/rev/e5b62d2de123
Target Milestone: --- → mozilla17
https://hg.mozilla.org/mozilla-central/rev/e5b62d2de123
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.