mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Use JS_EnumerateResolvedStandardClasses for bfcache transparency (292903, r+sr=bryner/jst).
This commit is contained in:
parent
2e61f5d7aa
commit
78112d199d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user