Closed Bug 1928508 Opened 4 months ago Closed 21 days ago

Don't log the message "update.locale file doesn't exist" on Firefox installations with no updater

Categories

(Toolkit :: Application Update, defect, P3)

Firefox 132
defect

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: ethan.a.glasby, Assigned: erchen)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0

Steps to reproduce:

Opened Firefox

Actual results:

Firefox still runs, but logs reveal a number of errors, one of which is:
15:28:50.151 update.locale file doesn't exist in either the application or GRE directories 2 UpdateUtils.sys.mjs:143:13
getLocale resource://gre/modules/UpdateUtils.sys.mjs:143

Expected results:

Firefox should have locate the update.locale file, or create one if appropriate

Despite what the user agent suggests, the operating system is aarch64+16k Linux

The Bugbug bot thinks this bug should belong to the 'Toolkit::Application Update' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Application Update
Product: Firefox → Toolkit

Hi Ethan, thanks for filing this ticket!

Can you tell me how your Firefox is installed? Was it by the RPM Package Manager by any chance? Or did you download it from the Mozilla website?

Flags: needinfo?(ethan.a.glasby)

(In reply to Eric Chen from comment #3)

Hi Ethan, thanks for filing this ticket!

Can you tell me how your Firefox is installed? Was it by the RPM Package Manager by any chance? Or did you download it from the Mozilla website?

It was installed through the DNF Package Manager. Firefox was installed with "sudo dnf install firefox", and is referred to as the package "firefox-132.0-2.fc40.aarch64" by DNF.
I will also add that my OS is Fedora Asahi Remix which, while officially supported by Fedora, also has some oddities such as its use of 16k pagefile size.

Flags: needinfo?(ethan.a.glasby)

Thanks for the information. Firefox installations from the DNF Package Manager doesn't actually have an updater. Therefore the error messages you're seeing are updater warnings that shouldn't actually be displayed. I'll make a patch to address this.

Summary: Fedora Asahi Linux: update.locale file doesn't exist → Don't log the message "update.locale file doesn't exist" on Firefox installations with no updater
Assignee: nobody → erchen
Severity: -- → S3
Priority: -- → P3

:Eemeli, should we be packaging the update.locale file even when the Firefox installation doesn't have an updater?

Flags: needinfo?(earo)
Pushed by erchen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a37c1aa53d1c Guard update.locale missing error message with updater existence check r=nalexander
Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---

Sorry for the delay in answering, I saw the patch landing after the needinfo, and incorrectly presumed that the question had been answered.

The only reason why we might want to include an update.locale file even if there's no updater is if bug 1391213 might apply (see discussion starting from comment 18); the fix for that also reads the file to determine the default locale.

Do we have any situation (via DNF or otherwise) where localized repack builds are made available without updater? If so, it might be better to rename the file to something like default.locale and always include it.

Flags: needinfo?(earo) → needinfo?(erchen)

(In reply to Eemeli Aro [:eemeli] from comment #10)

Sorry for the delay in answering, I saw the patch landing after the needinfo, and incorrectly presumed that the question had been answered.

The only reason why we might want to include an update.locale file even if there's no updater is if bug 1391213 might apply (see discussion starting from comment 18); the fix for that also reads the file to determine the default locale.

Do we have any situation (via DNF or otherwise) where localized repack builds are made available without updater? If so, it might be better to rename the file to something like default.locale and always include it.

I wonder if the Android fat AARs are like that? They have lots of locales, don't ship the updater, and don't use langpacks (as opposed to MSIX repackages, which do use langpacks).

It sounds like we want to call this default.locale and just start including it more broadly, but I don't feel strongly about it.

Flags: needinfo?(earo)
Flags: needinfo?(erchen)
See Also: → 1936528

I filed bug 1936528 for the rename, and while investigating also submitted bug 1936505 regarding locale.ini.

Flags: needinfo?(earo)
Status: REOPENED → RESOLVED
Closed: 4 months ago21 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: