Bug 1769290 - Part 13: Apply mozilla-js-handle-rooted-typedef against extensions r=andi

Differential Revision: https://phabricator.services.mozilla.com/D151780
This commit is contained in:
Kagami Sascha Rosylight 2022-07-14 17:00:20 +00:00
parent 8deafa42d6
commit c8a6450e63
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ nsresult EvaluateAdminConfigScript(const char* js_buffer, size_t length,
filename, globalContext, callbacks, skipFirstLine);
}
nsresult EvaluateAdminConfigScript(JS::HandleObject sandbox,
nsresult EvaluateAdminConfigScript(JS::Handle<JSObject*> sandbox,
const char* js_buffer, size_t length,
const char* filename, bool globalContext,
bool callbacks, bool skipFirstLine) {
@ -140,7 +140,7 @@ nsresult EvaluateAdminConfigScript(JS::HandleObject sandbox,
JSContext* cx = jsapi.cx();
nsAutoCString script(js_buffer, length);
JS::RootedValue v(cx);
JS::Rooted<JS::Value> v(cx);
nsString convertedScript;
bool isUTF8 = IsUtf8(script);

View File

@ -15,7 +15,7 @@ nsresult EvaluateAdminConfigScript(const char* js_buffer, size_t length,
bool bCallbacks, bool skipFirstLine,
bool isPrivileged = false);
nsresult EvaluateAdminConfigScript(JS::HandleObject sandbox,
nsresult EvaluateAdminConfigScript(JS::Handle<JSObject*> sandbox,
const char* js_buffer, size_t length,
const char* filename, bool bGlobalContext,
bool bCallbacks, bool skipFirstLine);