From f138bbcecf4ec824aa4506e4982debda355d0f4d Mon Sep 17 00:00:00 2001 From: roytam1 Date: Thu, 4 Apr 2024 13:07:24 +0800 Subject: [PATCH] app: update NotifyJSRunToCompletionStart call for enigne API changes --- k-meleon/app/MozUtils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/k-meleon/app/MozUtils.cpp b/k-meleon/app/MozUtils.cpp index 3c9c5634..31f559a0 100644 --- a/k-meleon/app/MozUtils.cpp +++ b/k-meleon/app/MozUtils.cpp @@ -740,9 +740,8 @@ bool InjectJS(nsIDOMWindow* dom, const wchar_t* userScript, CString& result) JSAutoRequest ar(cx); JSAutoNullableCompartment ac(cx, _globalJSObject); JS::Rooted asyncStack(cx, JS::NullValue()); - JS::Rooted 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 globalJSObject(cx, innerGlobal->GetGlobalJSObject()); JS::Rooted v (cx, JS::UndefinedValue());