mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 667388 - Make the chrome-to-content Xray wrapper derive CrossCompartmentWrapper. r=mrbkap
The current situation seems incorrect, especially given the behavior of CrossOriginWrapper and XrayProxy. Currently it doesn't matter, but it probably will in the future.
This commit is contained in:
parent
a41865ae59
commit
6eee34997f
@ -318,7 +318,7 @@ WrapperFactory::Rewrap(JSContext *cx, JSObject *obj, JSObject *wrappedProto, JSO
|
||||
if (proxy) {
|
||||
wrapper = &XrayProxy::singleton;
|
||||
} else {
|
||||
typedef XrayWrapper<CrossCompartmentSecurityWrapper> Xray;
|
||||
typedef XrayWrapper<CrossCompartmentWrapper> Xray;
|
||||
usingXray = true;
|
||||
wrapper = &Xray::singleton;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user