Closed Bug 413709 Opened 17 years ago Closed 17 years ago

Don't automatically update unofficial builds

Categories

(Camino Graveyard :: General, defect)

1.8 Branch
All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.6

People

(Reporter: mark, Assigned: mark)

Details

(Keywords: fixed1.8.1.12)

Attachments

(4 files, 1 obsolete file)

We should only stuff our update URL into official builds.  Builds other than those that we produce are of course more than welcome to stuff their own update URLs into their builds, but we shouldn't have other people's builds auto-update to official builds by default.  That kind of sucks for unofficial builders.
This is the accompanying nib change, but since we decided that we shouldn't use 10.5/IB 2.5.6 to build nibs, especially this nib (bug 413123), we don't want to check this one in.

The only change from the checked-in version of MainMenu.nib is that this connects the "Check for Updates…" menu item's target to the new checkForUpdates: selector added to MainController, instead of the one in SUUpdater.  This is done for menu item validation purposes - there's a small comment in the patch that explains it, too.
We need to really beat up on people who set MOZILLA_OFFICIAL in their builds (or let their users be updated to our builds).  There's really no reason for them to be doing it on the trunk anymore, since you get a real build ID all the time there.
I don't think we need to beat up on them, but when they say "how come you guys who obviously no nothing about compilers are auto-updating your unoptimized slow official build over my mad optimized build?" and bitch about how they need to repair permissions three times as a result, I don't mind pointing out to them that we played by the rules and they didn't.

More advanced third-party builders might want to provide their own appcast - they can link to it by setting APP_UPDATE_URL during the build.
Comment on attachment 298798 [details] [diff] [review]
Only put our app.update.url into official builds.  Disable update UI if there's no app.update.url.  Show a tooltip for disabled items to keep people from getting too confused.

>+		// Allow the application to provide an empty appcast string to
>+		// indicate that update checking should be disabled.
>+		return;

Couldn't we just set SUScheduledCheckIntervalKey to 0 to disable checking (as we do when the user turns off update checking), and not need to change Sparkle?
Reason I didn't do that is that then, anyone who ever runs an unofficial build will get their update pref turned off, no questions asked.
Comment on attachment 298798 [details] [diff] [review]
Only put our app.update.url into official builds.  Disable update UI if there's no app.update.url.  Show a tooltip for disabled items to keep people from getting too confused.

Excellent point.

I'll make you a new nib tonight if no-one else gets to it first.
Attachment #298798 - Flags: review?(stuart.morgan) → review+
No one else got to it first.
Oven fresh nibs, get 'em while they're hot.
Attachment #298799 - Attachment is obsolete: true
Thanks for the nib, Stuart.

Checked in on the trunk and MOZILLA_1_8_BRANCH before 1.6b3.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: fixed1.8.1.12
Resolution: --- → FIXED
Target Milestone: --- → Camino1.6
After landing attachment 298798 [details] [diff] [review], General Preference is highlighted when opening Preferences except History  Preference in my own branch build.
Screenshot forthcoming.
History has a text field, which will change the focus behavior, but I don't see how that has anything to do with this bug...
Sorry, I tested official latest branch (20080129) and I found the same problem.
So I filed a new bug 414741.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: