icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -402,7 +402,7 @@ bool NewFunctionForwarder(JSContext* cx, HandleId idArg, HandleObject callable,
FunctionForwarderOptions& options,
MutableHandleValue vp) {
RootedId id(cx, idArg);
if (id.isVoid()) {
if (!id.isString()) {
id = GetJSIDByIndex(cx, XPCJSContext::IDX_EMPTYSTRING);
}
@ -501,7 +501,7 @@ bool ExportFunction(JSContext* cx, HandleValue vfunction, HandleValue vscope,
}
}
if (!funName) {
funName = JS_AtomizeAndPinString(cx, "");
funName = JS_GetEmptyString(cx);
}
JS_MarkCrossZoneIdValue(cx, StringValue(funName));
@ -511,7 +511,11 @@ bool ExportFunction(JSContext* cx, HandleValue vfunction, HandleValue vscope,
} else {
JS_MarkCrossZoneId(cx, id);
}
MOZ_ASSERT(id.isString());
if (!id.isString()) {
JS_ReportErrorASCII(cx, "defineAs must be a string");
return false;
}
// The function forwarder will live in the target compartment. Since
// this function will be referenced from its private slot, to avoid a

View file

@ -956,6 +956,8 @@ void XPCJSRuntime::WeakPointerZonesCallback(JSTracer* trc, void* data) {
self->mWrappedJSMap->UpdateWeakPointersAfterGC(trc);
self->mUAWidgetScopeMap.traceWeak(trc);
BrowsingContext::SweepWindowProxies(trc);
}
/* static */