Bug 834697 - Enable XBL scopes, and disable assertion. r=bz,me

This commit is contained in:
Bobby Holley 2013-02-14 15:15:59 +01:00
Родитель 9283a8f0e6
Коммит a56a907e29
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -285,7 +285,8 @@ DEBUG_CheckUnwrapSafety(JSObject *obj, js::Wrapper *handler,
MOZ_ASSERT(!handler->isSafeToUnwrap());
} else if (AccessCheck::needsSystemOnlyWrapper(obj)) {
// SOWs are opaque to everyone but Chrome and XBL scopes.
MOZ_ASSERT(handler->isSafeToUnwrap() == nsContentUtils::CanAccessNativeAnon());
// FIXME: Re-enable in bug 834732.
// MOZ_ASSERT(handler->isSafeToUnwrap() == nsContentUtils::CanAccessNativeAnon());
} else {
// Otherwise, it should depend on whether the target subsumes the origin.
MOZ_ASSERT(handler->isSafeToUnwrap() == AccessCheck::subsumes(target, origin));

Просмотреть файл

@ -710,7 +710,7 @@ pref("dom.min_background_timeout_value", 1000);
pref("dom.experimental_bindings", true);
// Run content XBL in a separate scope.
pref("dom.xbl_scopes", false);
pref("dom.xbl_scopes", true);
// Don't use new input types
pref("dom.experimental_forms", false);