Closed Bug 220220 Opened 21 years ago Closed 21 years ago

make UA string depend on config/milestone.txt

Categories

(Core :: Networking: HTTP, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Whiteboard: [patch])

Attachments

(1 file, 1 obsolete file)

Making the UA string depend on config/milestone.txt will make it easier to bump
the version number, especially now that we have to change all.js for all the
various apps.

I prefer the idea of hard-coding the version in HTTP over having a pref,
although we could have an additional pref file.  I prefer hard-coding since I'd
rather the UA-string version not be an API that it looks like embedders
can/should change (or forget to change!).
Attached patch patch (obsolete) — Splinter Review
This hardcodes the UA string version using the MOZILLA_VERSION macro and
removes checking the general.useragent.misc pref but leaves the GetMisc /
SetMisc API on nsIHttpProtocolHandler.

It also fixes a variable-shadowing warning in nsHttpHandler.cpp.
Attached patch patchSplinter Review
The MAPI code looks unused, so I removed it, but it wouldn't be too hard to fix
(and make it always use the Mozilla version, although who knows what it was
intended to be used for if it's unused).
Attachment #132100 - Attachment is obsolete: true
Attachment #132101 - Flags: review?(darin) → review+
Attachment #132101 - Flags: superreview?(bryner) → superreview+
Fix checked in to trunk, 2003-09-24 22:39 -0700.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: