зеркало из https://github.com/mozilla/pjs.git
#45692:r=edburns,a=brendan. Backing out latest change.
This commit is contained in:
Родитель
9d9324314d
Коммит
20ddff8a16
|
@ -502,25 +502,19 @@ JVM_GetJSSecurityContext()
|
|||
JVMSecurityStack *securityStackTop = NULL;
|
||||
JSContext *cx = context->js_context;
|
||||
|
||||
if (cx == NULL) {
|
||||
//TODO: Get to the new context from DOM.
|
||||
//pJSCX = LM_GetCrippledContext();
|
||||
}
|
||||
|
||||
if(securityStack != NULL) {
|
||||
securityStackTop = securityStack->prev;
|
||||
JSStackFrame *fp = NULL;
|
||||
securityStackTop->pJSToJavaFrame = JS_FrameIterator(cx, &fp);
|
||||
}
|
||||
|
||||
if (cx != NULL) {
|
||||
nsCSecurityContext *securityContext = new nsCSecurityContext(cx);
|
||||
if (NULL != securityContext) {
|
||||
securityContext->AddRef();
|
||||
return securityContext;
|
||||
}
|
||||
nsCSecurityContext *securityContext = new nsCSecurityContext(cx);
|
||||
if (securityContext == nsnull) {
|
||||
return nsnull;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
NS_ADDREF(securityContext);
|
||||
return securityContext;
|
||||
}
|
||||
|
||||
PR_END_EXTERN_C
|
||||
|
|
Загрузка…
Ссылка в новой задаче