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

@ -52,7 +52,8 @@ void CachePromiseHandler::ResolvedCallback(JSContext* aCx,
JS::Handle<JS::Value> aValue,
ErrorResult& aRv) {
AssertIsOnMainThread();
if (mRequestHandle->IsEmpty()) {
// skip to schedule execution if it has been scheduled already.
if (mRequestHandle->mExecutionScheduled) {
return;
}
WorkerLoadContext* loadContext = mRequestHandle->GetContext();
@ -75,7 +76,8 @@ void CachePromiseHandler::RejectedCallback(JSContext* aCx,
JS::Handle<JS::Value> aValue,
ErrorResult& aRv) {
AssertIsOnMainThread();
if (mRequestHandle->IsEmpty()) {
// skip to schedule execution if it has been scheduled already.
if (mRequestHandle->mExecutionScheduled) {
return;
}
WorkerLoadContext* loadContext = mRequestHandle->GetContext();
@ -267,6 +269,11 @@ void CacheLoadHandler::Fail(nsresult aRv) {
mPump->Cancel(aRv);
mPump = nullptr;
}
if (mRequestHandle->mExecutionScheduled) {
return;
}
if (mRequestHandle->IsEmpty()) {
return;
}
@ -281,7 +288,12 @@ void CacheLoadHandler::Fail(nsresult aRv) {
loadContext->mCachePromise = nullptr;
mRequestHandle->LoadingFinished(aRv);
if (loadContext->mLoadingFinished) {
loadContext->mLoadResult = aRv;
mRequestHandle->MaybeExecuteFinishedScripts();
} else {
mRequestHandle->LoadingFinished(aRv);
}
}
void CacheLoadHandler::Load(Cache* aCache) {