Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.

This commit is contained in:
Ms2ger
2012-04-14 17:52:34 +02:00
parent 5ca749fdb6
commit 54f1f6b78d
115 changed files with 1001 additions and 595 deletions

View File

@@ -1348,10 +1348,10 @@ _getstringidentifier(const NPUTF8* name)
if (!stack)
return NULL;
JSContext* cx = stack->GetSafeJSContext();
if (!cx) {
JSContext *cx = nsnull;
stack->GetSafeJSContext(&cx);
if (!cx)
return NULL;
}
JSAutoRequest ar(cx);
return doGetIdentifier(cx, name);
@@ -1369,10 +1369,10 @@ _getstringidentifiers(const NPUTF8** names, int32_t nameCount,
if (!stack)
return;
JSContext* cx = stack->GetSafeJSContext();
if (!cx) {
JSContext *cx = nsnull;
stack->GetSafeJSContext(&cx);
if (!cx)
return;
}
JSAutoRequest ar(cx);