Closed Bug 1938340 Opened 1 year ago Closed 1 year ago

Make crash reporter client always fall back to bundled locale

Categories

(Toolkit :: Crash Reporting, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: afranchuk, Assigned: afranchuk)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

In bug 1936809, a user encountered an issue where localization info was located but failed to load. In this case, we encounter a fatal error. However, we should instead fall back to loading the bundled (English) locale info. This may be confusing to a user, so maybe we should somehow still notify in the UI that the correct locale information failed to load.

When loading locales, fall back to the bundled locale if any error
occurs. Previously, we only used the bundled locale if we couldn't
read the omnijar, however we didn't do so if we failed to parse the
locale information within the omnijar.

To better expose early errors, this rearranges the code to set the log
file as early as possible, and updates the file when we get more
information from parsing the extra file. Otherwise, some of the earlier
error paths might only be logging to stderr, which is difficult for
users access and provide to us in a bug.

This also adds a textbox with the full error source trace to the error
dialog. The trade-off here is that the first line will be localized
(when possible), however the rest of the error information will not be
(as the strings come from external code). This is fine, as this
information is mainly useful in bug reports (which is also why I made it
a textbox, for easy text selection).

Blocks: 1919769
Blocks: 1928839
Attachment #9446140 - Attachment description: Bug 1938340 - Improve crash reporter client locale loading and early error handling. r=gsvelto → Bug 1938340 - Improve early error handling and logging. r=gsvelto

Bug 1940763 ends up addressing the primary concern, however the patch is still valuable as it improves logging and adds more context to the error dialog.

Pushed by afranchuk@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0874fcba521f Improve early error handling and logging. r=gsvelto,fluent-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: