nsStringBundle preload can fail in content processes leaving the process without localized strings

RESOLVED FIXED in Firefox 57

Status

()

defect
RESOLVED FIXED
2 years ago
Last year

People

(Reporter: gkrizsanits, Assigned: gkrizsanits)

Tracking

unspecified
mozilla58
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox57 fixed, firefox58 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

2 years ago
This is a fall out from bug 1385249.
Assignee

Updated

2 years ago
Blocks: 1385249
Assignee

Updated

2 years ago
Blocks: 1401599
Assignee

Comment 3

2 years ago
Comment on attachment 8913739 [details] [diff] [review]
Delay nsStringBundle preloading in content processes. v2

Approval Request Comment
[Feature/Bug causing the regression]: Bug 1363482 (preloading strings)

[User impact if declined]: Preloading localized string bundles might fail, leaving the content process without localized strings forever. This can lead to a wide variety of failures from incorrectly rendering buttons to failing reporting errors and who knows what else. 

[Is this code covered by automated tests?]: Mostly. There can be still edge cases we have not considered, but this patch fixes the ones I can think of and fixed the intermittent failures I know about.

[Has the fix been verified in Nightly?]: Not yet.

[Needs manual test from QE? If yes, steps to reproduce]: I don't think manual testing is possible. Landing the patch under bug 1385249 will do some validation and bug 1401599 should be fixed by this patch as well.

[List of other uplifts needed for the feature/fix]: None.

[Is the change risky?]: It is more risky not taking it.

[Why is the change risky/not risky?]: The worst it can cause is that by delaying the preloading of these strings, it might come with a tiny startup time regression. Not taking it can result misbehaving content processes.

[String changes made/needed]: None.
Attachment #8913739 - Flags: approval-mozilla-beta?

Comment 4

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/53f147e1524e
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment on attachment 8913739 [details] [diff] [review]
Delay nsStringBundle preloading in content processes. v2

Seems like a must fix for 57, Beta57+
Attachment #8913739 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.