зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1131796. Don't parent the DOM proxy expando object to the proxy. r=peterv
This commit is contained in:
Родитель
3aff974cb2
Коммит
08dda68138
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче