зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1017424 part 9. Remove redundant xpconnect code looking for ChromeWindow/ModalContentWindow classes. r=bholley
This commit is contained in:
Родитель
1f4c6b7396
Коммит
b0b2acb195
|
@ -120,9 +120,7 @@ XPCWrappedNativeScope::XPCWrappedNativeScope(JSContext *cx,
|
||||||
mUseContentXBLScope = mAllowContentXBLScope;
|
mUseContentXBLScope = mAllowContentXBLScope;
|
||||||
if (mUseContentXBLScope) {
|
if (mUseContentXBLScope) {
|
||||||
const js::Class *clasp = js::GetObjectClass(mGlobalJSObject);
|
const js::Class *clasp = js::GetObjectClass(mGlobalJSObject);
|
||||||
mUseContentXBLScope = !strcmp(clasp->name, "Window") ||
|
mUseContentXBLScope = !strcmp(clasp->name, "Window");
|
||||||
!strcmp(clasp->name, "ChromeWindow") ||
|
|
||||||
!strcmp(clasp->name, "ModalContentWindow");
|
|
||||||
}
|
}
|
||||||
if (mUseContentXBLScope) {
|
if (mUseContentXBLScope) {
|
||||||
mUseContentXBLScope = principal && !nsContentUtils::IsSystemPrincipal(principal);
|
mUseContentXBLScope = principal && !nsContentUtils::IsSystemPrincipal(principal);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче