Bug 506491 - Download Manager opens 'Blank' - intermittent - Error: gStr.timeUnits is undefined and download is null. r=brendan.

--HG--
extra : rebase_source : 22338610bff62f5aefca99a07f4f54621d18a680
This commit is contained in:
Jason Orendorff 2009-08-20 12:25:09 -05:00
parent 5394a5cb17
commit e6d7430c05

View File

@ -2787,6 +2787,11 @@ js_XDRBlockObject(JSXDRState *xdr, JSObject **objp)
}
}
if (xdr->mode == JSXDR_DECODE) {
/* Do as the parser does and make this block scope shareable. */
OBJ_SCOPE(obj)->object = NULL;
}
JS_POP_TEMP_ROOT(cx, &tvr);
return ok;
}