icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue