зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921454 - Invert faulty assertion. r=jonco
This assertion is pretty clearly bogus, and only exists because, as it turns out, we never had any test coverage for transplanting SCSW objects with waivers. Even in the world when this stuff landed (bug 773962, which was well before the removal of Location SCSWs in bug 808608 and the conversion of Nodes to new bindings), we apparently never tested the waiver path. :-(
This commit is contained in:
Родитель
b920af5de8
Коммит
d75591e16f
|
@ -680,7 +680,7 @@ TransplantObjectWithWrapper(JSContext *cx,
|
|||
return newSameCompartmentWrapper;
|
||||
|
||||
RootedObject newIdentity(cx, Wrapper::wrappedObject(newSameCompartmentWrapper));
|
||||
MOZ_ASSERT(js::IsWrapper(newIdentity));
|
||||
MOZ_ASSERT(!js::IsWrapper(newIdentity));
|
||||
if (!FixWaiverAfterTransplant(cx, oldWaiver, newIdentity))
|
||||
return NULL;
|
||||
return newSameCompartmentWrapper;
|
||||
|
|
Загрузка…
Ссылка в новой задаче