Closed Bug 1760704 Opened 2 years ago Closed 2 years ago

Add a test that ensures that channel-prefs.js is never changed

Categories

(Toolkit :: Application Update, task, P3)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: bytesized, Assigned: bytesized)

References

Details

(Whiteboard: [fidedi-ope])

Attachments

(1 file)

The channel-prefs.js file should never be changed. The reason for this is that our updater doesn't touch the file. Whatever its old contents were from before the update will be retained. So, even if we change it, its contents will only actually be changed for new installations, not for existing installations that are updated.

The updater doesn't update it for a couple of reasons. One is that QA uses this functionality during testing. Another is that Release Candidate builds have their channel (including in channel-prefs.js) set to Release. But when we deploy a Release Candidate to the Beta channel, we don't want those installations to actually use the Release channel.

Additionally, when we sign the installation for macOS, we sign it with the current version of channel-prefs.js. If, when we update, channel-prefs.js's contents do not match the contents when the package was signed, the signature won't actually validate. This is what happened in Bug 1431342. In order to make sure that that doesn't happen again, we should add a test that verifies that this file is never changed. This will ensure that no one changes it by accident and that if they try to change it on purpose, the application-update-reviewers group will be in the loop.

This should be a pretty easy test to write, so I'm going to try to have one up today or tomorrow.

Whiteboard: [fidedi-ope]
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cb22f8bfa91c
Add a test that ensures that channel-prefs.js is never changed r=nalexander
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: