зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1747059 - Use AllowIfExists in nsJSUtils::IsScriptable r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D147464
This commit is contained in:
Родитель
a1e06076f6
Коммит
925f5e5114
|
@ -139,7 +139,7 @@ nsresult nsJSUtils::CompileFunction(AutoJSAPI& jsapi,
|
|||
|
||||
/* static */
|
||||
bool nsJSUtils::IsScriptable(JS::Handle<JSObject*> aEvaluationGlobal) {
|
||||
return xpc::Scriptability::Get(aEvaluationGlobal).Allowed();
|
||||
return xpc::Scriptability::AllowedIfExists(aEvaluationGlobal);
|
||||
}
|
||||
|
||||
static bool AddScopeChainItem(JSContext* aCx, nsINode* aNode,
|
||||
|
|
Загрузка…
Ссылка в новой задаче