Enable update agent to get the update directory path
Categories
(Toolkit :: Application Update, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: bytesized, Assigned: bytesized)
References
Details
Attachments
(2 files)
The update agent will need access to the update directory for its instance of Firefox. A complicating factor is that the update directory, if it doesn't exist, absolutely must be created with the correct permissions (which is currently done by the update directory path generation function). This means that, ideally, we shouldn't duplicate this functionality, but should instead reuse or, if necessary, rewrite the existing functionality.
The functionality currently lives here. It doesn't use any XUL code, but it is written in C++, which makes it difficult to link to from Rust.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
I've posted a patch that almost works. It builds updatecommon.lib, and links the update agent to it. Unfortunately, the two things are not properly linked in the dependency graph, so I believe that whether or not ./mach build
builds on the first try ends up being a race condition.
Assignee | ||
Comment 3•5 years ago
|
||
The update agent links against updatecommon (/toolkit/mozapps/update/common), but it does so in a mechanism that our build system doesn't actually support. This patch ensures that the updatecommon library will be built before the update agent, so that the update agent can link successfully.
Depends on D69875
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8fde1306bba7
https://hg.mozilla.org/mozilla-central/rev/772c8a4a58ae
Description
•