Use JS_EnumerateResolvedStandardClasses for bfcache transparency (292903, r+sr=bryner/jst).

This commit is contained in:
brendan%mozilla.org 2005-06-16 22:14:43 +00:00
parent 2e61f5d7aa
commit 78112d199d

View File

@ -5976,11 +5976,14 @@ CopyJSProperties(JSContext *cx, JSObject *aSource, JSObject *aDest)
// Enumerate all of the properties on aSource and install them on aDest.
JSIdArray *props = ::JS_Enumerate(cx, aSource);
if (props) {
props = ::JS_EnumerateResolvedStandardClasses(cx, aSource, props);
}
if (!props) {
#ifdef DEBUG_PAGE_CACHE
printf("[no properties]\n");
printf("failed to enumerate JS properties\n");
#endif
return NS_OK;
return NS_ERROR_FAILURE;
}
#ifdef DEBUG_PAGE_CACHE