Bug 1131796. Don't parent the DOM proxy expando object to the proxy. r=peterv

This commit is contained in:
Boris Zbarsky 2015-02-13 14:34:53 -05:00
Родитель 3aff974cb2
Коммит 08dda68138
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -112,9 +112,8 @@ DOMProxyHandler::EnsureExpandoObject(JSContext* cx, JS::Handle<JSObject*> obj)
expandoAndGeneration = nullptr;
}
JS::Rooted<JSObject*> parent(cx, js::GetObjectParent(obj));
JS::Rooted<JSObject*> expando(cx,
JS_NewObjectWithGivenProto(cx, nullptr, JS::NullPtr(), parent));
JS_NewObjectWithGivenProto(cx, nullptr, JS::NullPtr()));
if (!expando) {
return nullptr;
}