mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 991016 - Check return value of a setDelegate call. r=efaust.
--HG-- extra : rebase_source : 052f55b4d10dc2a266b8cff6f94740e92b431624
This commit is contained in:
parent
ed98c1bc4b
commit
d21cf14964
@ -88,8 +88,10 @@ CrossCompartmentWrapper::getPrototype(JSContext* cx, HandleObject wrapper,
|
||||
AutoCompartment call(cx, wrapped);
|
||||
if (!GetPrototype(cx, wrapped, protop))
|
||||
return false;
|
||||
if (protop)
|
||||
protop->setDelegate(cx);
|
||||
if (protop) {
|
||||
if (!protop->setDelegate(cx))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return cx->compartment()->wrap(cx, protop);
|
||||
|
Loading…
Reference in New Issue
Block a user