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

@ -306,13 +306,12 @@ nsresult WorkletModuleLoader::GetResolveFailureMessage(
ResolveError aError, const nsAString& aSpecifier, nsAString& aResult) {
uint8_t index = static_cast<uint8_t>(aError);
MOZ_ASSERT(index < static_cast<uint8_t>(ResolveError::Length));
MOZ_ASSERT(mLocalizedStrs);
MOZ_ASSERT(!mLocalizedStrs->IsEmpty());
if (!mLocalizedStrs || NS_WARN_IF(mLocalizedStrs->IsEmpty())) {
MOZ_ASSERT(HasSetLocalizedStrings());
if (NS_WARN_IF(mLocalizedStrs.IsEmpty())) {
return NS_ERROR_FAILURE;
}
const nsString& localizedStr = mLocalizedStrs->ElementAt(index);
const nsString& localizedStr = mLocalizedStrs.ElementAt(index);
AutoTArray<nsString, 1> params;
params.AppendElement(aSpecifier);

View file

@ -55,9 +55,10 @@ class WorkletModuleLoader : public JS::loader::ModuleLoaderBase {
void RemoveRequest(nsIURI* aURI);
JS::loader::ModuleLoadRequest* GetRequest(nsIURI* aURI) const;
bool HasSetLocalizedStrings() const { return (bool)mLocalizedStrs; }
void SetLocalizedStrings(const nsTArray<nsString>* aStrings) {
mLocalizedStrs = aStrings;
bool HasSetLocalizedStrings() const { return !mLocalizedStrs.IsEmpty(); }
void SetLocalizedStrings(nsTArray<nsString>&& aStrings) {
MOZ_ASSERT(!aStrings.IsEmpty());
mLocalizedStrs = std::move(aStrings);
}
private:
@ -104,7 +105,7 @@ class WorkletModuleLoader : public JS::loader::ModuleLoaderBase {
// We get the localized strings on the main thread, and pass it to
// WorkletModuleLoader.
const nsTArray<nsString>* mLocalizedStrs = nullptr;
nsTArray<nsString> mLocalizedStrs;
};
} // namespace loader