Closed Bug 696555 Opened 14 years ago Closed 13 years ago

Move update.locale into omni.jar

Categories

(Toolkit :: Application Update, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: glandium, Assigned: glandium)

References

Details

(Whiteboard: [inbound])

Attachments

(1 file, 2 obsolete files)

If I'm not mistaken, the update.locale file is only read from the nsUpdateService.js, and is gotten from FileUtils.getFile(KEY_APPDIR, [FILE_UPDATE_LOCALE]) and FileUtils.getFile(KEY_GRED, [FILE_UPDATE_LOCALE]) if the former doesn't exist. On Fennec, this means we need to extract the file so that it lives in the application directory. We could move it into the omni.jar, with the result that Fennec doesn't need to extract it. We should then be able to use resource://app/update.locale and resource://gre/update.locale to get the file instead of the FileUtils.getFile calls above.
Attached patch Move update.locale into omni.jar (obsolete) — Splinter Review
This is untested, but should work.
Attached patch Move update.locale into omni.jar (obsolete) — Splinter Review
Should be better like this
Attachment #568853 - Attachment is obsolete: true
I think we want to remove update.locale all together. See bug 695699.
Let's go for bug 695699
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
In the end, we're going to do it this way.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Attachment #570753 - Flags: review?(robert.bugzilla)
Attachment #568857 - Attachment is obsolete: true
Assignee: nobody → mh+mozilla
Comment on attachment 570753 [details] [diff] [review] Move update.locale into omni.jar <rs> glandium: if tests pass r=me (...) <rs> glandium: I took a quick look and I'm fine with you taking my word from irc
Attachment #570753 - Flags: review?(robert.bugzilla) → review+
Status: REOPENED → RESOLVED
Closed: 14 years ago13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Blocks: 704836
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: