зеркало из https://github.com/mozilla/gecko-dev.git
Bug 868784 - Fix rooting hazards in nsCrypto.cpp; r=till
This commit is contained in:
Родитель
344d02533a
Коммит
c67cc0b051
|
@ -1856,7 +1856,7 @@ nsCrypto::GenerateCRMFRequest(nsIDOMCRMFObject** aReturn)
|
|||
nrv = ncc->GetJSContext(&cx);
|
||||
NS_ENSURE_SUCCESS(nrv, nrv);
|
||||
|
||||
JSObject* script_obj = nullptr;
|
||||
JS::RootedObject script_obj(cx);
|
||||
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
|
||||
|
||||
JSAutoRequest ar(cx);
|
||||
|
@ -1921,7 +1921,7 @@ nsCrypto::GenerateCRMFRequest(nsIDOMCRMFObject** aReturn)
|
|||
NS_GET_IID(nsIDOMCrypto), getter_AddRefs(holder));
|
||||
NS_ENSURE_SUCCESS(nrv, nrv);
|
||||
|
||||
nrv = holder->GetJSObject(&script_obj);
|
||||
nrv = holder->GetJSObject(script_obj.address());
|
||||
NS_ENSURE_SUCCESS(nrv, nrv);
|
||||
|
||||
//Put up some UI warning that someone is trying to
|
||||
|
|
Загрузка…
Ссылка в новой задаче