Bug 791823: Creating system message for pairing requires js request; r=mrbkap

This commit is contained in:
Kyle Machulis 2012-09-17 15:54:12 -07:00
parent c5574afd30
commit 688cf74570

View File

@ -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!");