зеркало из https://github.com/mozilla/gecko-dev.git
bug 580128 - Outerize inner windows. r=jst
This commit is contained in:
Родитель
1d2520f0ea
Коммит
5be445d6b2
|
@ -1383,6 +1383,13 @@ XPCConvert::NativeInterface2JSObject(XPCLazyCallContext& lccx,
|
|||
|
||||
flat = locationWrapper;
|
||||
}
|
||||
else
|
||||
{
|
||||
OBJ_TO_OUTER_OBJECT(cx, flat);
|
||||
NS_ASSERTION(flat, "bad outer object hook!");
|
||||
NS_ASSERTION(flat->getCompartment() == cx->compartment,
|
||||
"bad compartment");
|
||||
}
|
||||
}
|
||||
|
||||
*d = OBJECT_TO_JSVAL(flat);
|
||||
|
|
Загрузка…
Ссылка в новой задаче