зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1523997 - Skip checking for -moz-binding in Element::WrapObject when in the content process r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D18124 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ce0e20a4ee
Коммит
6dd3ddfc0f
|
@ -544,6 +544,11 @@ JSObject* Element::WrapObject(JSContext* aCx,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (XRE_IsContentProcess() && !NodePrincipal()->IsSystemPrincipal()) {
|
||||
// We don't use XBL in content privileged content processes.
|
||||
return obj;
|
||||
}
|
||||
|
||||
Document* doc = GetComposedDoc();
|
||||
if (!doc) {
|
||||
// There's no baseclass that cares about this call so we just
|
||||
|
|
Загрузка…
Ссылка в новой задаче