diff --git a/k-meleon/app/MozUtils.cpp b/k-meleon/app/MozUtils.cpp index 7ce915eb..fa2d6548 100644 --- a/k-meleon/app/MozUtils.cpp +++ b/k-meleon/app/MozUtils.cpp @@ -740,7 +740,10 @@ bool InjectJS(nsIDOMWindow* dom, const wchar_t* userScript, CString& result) JSAutoRequest ar(cx); JSAutoNullableCompartment ac(cx, _globalJSObject); - docShell->NotifyJSRunToCompletionStart("InjectJS", L"InjectJS", L"InjectJS",1); + JS::Rooted stack(cx, JS::NullValue()); + JS::Rooted asyncCauseValue(cx, JS::NullValue()); + + docShell->NotifyJSRunToCompletionStart("InjectJS", L"InjectJS", L"InjectJS", 1, stack, asyncCauseValue); JS::Rooted globalJSObject(cx, innerGlobal->GetGlobalJSObject()); JS::Rooted v (cx, JS::UndefinedValue());