зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1472976 part 4 - Use JS::GetRealmPrincipals instead of JS_GetCompartmentPrincipals in XPCWrappedNativeScope::GetPrincipal. r=mrbkap
This commit is contained in:
Родитель
2b60db1326
Коммит
90d9694728
|
@ -833,8 +833,8 @@ public:
|
|||
|
||||
nsIPrincipal*
|
||||
GetPrincipal() const {
|
||||
JS::Compartment* c = js::GetObjectCompartment(mGlobalJSObject);
|
||||
return nsJSPrincipals::get(JS_GetCompartmentPrincipals(c));
|
||||
JS::Realm* r = js::GetNonCCWObjectRealm(mGlobalJSObject);
|
||||
return nsJSPrincipals::get(JS::GetRealmPrincipals(r));
|
||||
}
|
||||
|
||||
JSObject*
|
||||
|
|
Загрузка…
Ссылка в новой задаче