Closed Bug 774708 Opened 10 years ago Closed 10 years ago

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

Categories

(Core :: DOM: Device Interfaces, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: marshall, Assigned: marshall)

References

Details

Attachments

(1 file)

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
Attachment #642993 - Flags: review?(kyle)
Attachment #642993 - Flags: review?(kyle) → review+
https://hg.mozilla.org/mozilla-central/rev/e5b62d2de123
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.