mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 846890 - Avoid check for native anonymous content when possible (r=bholley)
This commit is contained in:
parent
e3e50d25df
commit
15ccdb3cef
@ -361,8 +361,6 @@ WrapperFactory::Rewrap(JSContext *cx, JSObject *existing, JSObject *obj,
|
||||
|
||||
Wrapper *wrapper;
|
||||
CompartmentPrivate *targetdata = EnsureCompartmentPrivate(target);
|
||||
bool canAccessNAC = targetIsChrome ||
|
||||
(targetSubsumesOrigin && nsContentUtils::IsCallerXBL());
|
||||
|
||||
//
|
||||
// First, handle the special cases.
|
||||
@ -383,7 +381,9 @@ WrapperFactory::Rewrap(JSContext *cx, JSObject *existing, JSObject *obj,
|
||||
} else if (IsComponentsObject(obj) && !AccessCheck::isChrome(target)) {
|
||||
wrapper = &FilteringWrapper<CrossCompartmentSecurityWrapper,
|
||||
ComponentsObjectPolicy>::singleton;
|
||||
} else if (AccessCheck::needsSystemOnlyWrapper(obj) && !canAccessNAC) {
|
||||
} else if (AccessCheck::needsSystemOnlyWrapper(obj) &&
|
||||
!(targetIsChrome || (targetSubsumesOrigin && nsContentUtils::IsCallerXBL())))
|
||||
{
|
||||
wrapper = &FilteringWrapper<CrossCompartmentSecurityWrapper,
|
||||
OnlyIfSubjectIsSystem>::singleton;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user