No bug - Fix merge conflict on a CLOSED TREE

This commit is contained in:
Bill McCloskey 2014-01-16 18:17:02 -08:00
parent 430958c398
commit 86f8c70978

View File

@ -923,7 +923,7 @@ nsFrameMessageManager::ReceiveMessage(nsISupports* aTarget,
// The parameter for the listener function.
JS::Rooted<JSObject*> param(cx,
JS_NewObject(cx, nullptr, nullptr, nullptr));
JS_NewObject(cx, nullptr, JS::NullPtr(), JS::NullPtr()));
NS_ENSURE_TRUE(param, NS_ERROR_OUT_OF_MEMORY);
JS::Rooted<JS::Value> targetv(cx);
@ -939,7 +939,7 @@ nsFrameMessageManager::ReceiveMessage(nsISupports* aTarget,
}
if (!cpows) {
cpows = JS_NewObject(cx, nullptr, nullptr, nullptr);
cpows = JS_NewObject(cx, nullptr, JS::NullPtr(), JS::NullPtr());
if (!cpows) {
return NS_ERROR_UNEXPECTED;
}
@ -976,7 +976,7 @@ nsFrameMessageManager::ReceiveMessage(nsISupports* aTarget,
// message.principal = { appId: <id>, origin: <origin>, isInBrowserElement: <something> }
else {
JS::Rooted<JSObject*> principalObj(cx,
JS_NewObject(cx, nullptr, nullptr, nullptr));
JS_NewObject(cx, nullptr, JS::NullPtr(), JS::NullPtr()));
uint32_t appId;
nsresult rv = aPrincipal->GetAppId(&appId);