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

@ -1258,6 +1258,8 @@ bool RuntimeService::RegisterWorker(WorkerPrivate& aWorkerPrivate) {
}
} else {
if (!mNavigatorPropertiesLoaded) {
MutexAutoLock lock(mMutex);
if (NS_FAILED(Navigator::GetAppVersion(
mNavigatorProperties.mAppVersion, aWorkerPrivate.GetDocument(),
false /* aUsePrefOverriddenValue */)) ||
@ -1692,6 +1694,11 @@ void RuntimeService::CrashIfHanging() {
void RuntimeService::Cleanup() {
AssertIsOnMainThread();
if (mCleanedUp) {
return;
}
mCleanedUp = true;
if (!mShuttingDown) {
Shutdown();
}
@ -1786,9 +1793,9 @@ void RuntimeService::Cleanup() {
obs->RemoveObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID);
mObserved = false;
}
}
nsLayoutStatics::Release();
nsLayoutStatics::Release();
}
}
void RuntimeService::AddAllTopLevelWorkersToArray(
@ -1923,11 +1930,13 @@ void RuntimeService::UpdateAllWorkerContextOptions() {
void RuntimeService::UpdateAppVersionOverridePreference(
const nsAString& aValue) {
AssertIsOnMainThread();
MutexAutoLock lock(mMutex);
mNavigatorProperties.mAppVersionOverridden = aValue;
}
void RuntimeService::UpdatePlatformOverridePreference(const nsAString& aValue) {
AssertIsOnMainThread();
MutexAutoLock lock(mMutex);
mNavigatorProperties.mPlatformOverridden = aValue;
}
@ -1935,7 +1944,10 @@ void RuntimeService::UpdateAllWorkerLanguages(
const nsTArray<nsString>& aLanguages) {
MOZ_ASSERT(NS_IsMainThread());
mNavigatorProperties.mLanguages = aLanguages.Clone();
{
MutexAutoLock lock(mMutex);
mNavigatorProperties.mLanguages = aLanguages.Clone();
}
BroadcastAllWorkers(
[&aLanguages](auto& worker) { worker.UpdateLanguages(aLanguages); });
}