зеркало из https://github.com/mozilla/gecko-dev.git
Bug 834697 - Enable XBL scopes, and disable assertion. r=bz,me
This commit is contained in:
Родитель
9283a8f0e6
Коммит
a56a907e29
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче