зеркало из https://github.com/mozilla/gecko-dev.git
Bug 776328 - Only create holders for WNs. r=mrbkap
This commit is contained in:
Родитель
91d30ade4e
Коммит
4788839f6c
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var div = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
|
||||
Components.lookupMethod(div.childNodes, "xx");
|
||||
}
|
||||
|
||||
</script>
|
||||
<body onload="boom();"></body>
|
|
@ -43,4 +43,5 @@ load 761831.html
|
|||
asserts(0-1) load 752038.html # We may hit bug 645229 here.
|
||||
asserts(1) load 753162.html # We hit bug 675518 or bug 680086 here.
|
||||
load 754311.html
|
||||
load 776328.html
|
||||
load 776333.html
|
||||
|
|
|
@ -614,11 +614,14 @@ WrapperFactory::WrapForSameCompartmentXray(JSContext *cx, JSObject *obj)
|
|||
if (!wrapperObj)
|
||||
return NULL;
|
||||
|
||||
// Make the holder.
|
||||
JSObject *xrayHolder = XrayUtils::createHolder(cx, obj, parent);
|
||||
if (!xrayHolder)
|
||||
return nullptr;
|
||||
js::SetProxyExtra(wrapperObj, 0, js::ObjectValue(*xrayHolder));
|
||||
// Make the holder. Note that this is currently for WNs only until we fix
|
||||
// bug 761704.
|
||||
if (type == XrayForWrappedNative) {
|
||||
JSObject *xrayHolder = XrayUtils::createHolder(cx, obj, parent);
|
||||
if (!xrayHolder)
|
||||
return nullptr;
|
||||
js::SetProxyExtra(wrapperObj, 0, js::ObjectValue(*xrayHolder));
|
||||
}
|
||||
return wrapperObj;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче