mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Bug 791823: Creating system message for pairing requires js request; r=mrbkap
This commit is contained in:
parent
c5574afd30
commit
688cf74570
@ -734,7 +734,8 @@ BluetoothService::Notify(const BluetoothSignal& aData)
|
||||
JSContext* cx = nsContentUtils::GetSafeJSContext();
|
||||
NS_ASSERTION(!::JS_IsExceptionPending(cx),
|
||||
"Shouldn't get here when an exception is pending!");
|
||||
|
||||
|
||||
JSAutoRequest jsar(cx);
|
||||
JSObject* obj = JS_NewObject(cx, NULL, NULL, NULL);
|
||||
if (!obj) {
|
||||
NS_WARNING("Failed to new JSObject for system message!");
|
||||
|
Loading…
Reference in New Issue
Block a user