app: update NotifyJSRunToCompletionStart call for enigne API changes

This commit is contained in:
2024-04-04 13:07:24 +08:00
parent 9d11d8aa7a
commit f138bbcecf
+1 -2
View File
@@ -740,9 +740,8 @@ bool InjectJS(nsIDOMWindow* dom, const wchar_t* userScript, CString& result)
JSAutoRequest ar(cx);
JSAutoNullableCompartment ac(cx, _globalJSObject);
JS::Rooted<JS::Value> asyncStack(cx, JS::NullValue());
JS::Rooted<JS::Value> asyncCauseValue(cx, JS::NullValue());
docShell->NotifyJSRunToCompletionStart("InjectJS", L"InjectJS", L"InjectJS", 1, asyncStack, asyncCauseValue);
docShell->NotifyJSRunToCompletionStart("InjectJS", L"InjectJS", L"InjectJS", 1, asyncStack, "");
JS::Rooted<JSObject*> globalJSObject(cx, innerGlobal->GetGlobalJSObject());
JS::Rooted<JS::Value> v (cx, JS::UndefinedValue());