Closed
Bug 604680
Opened 14 years ago
Closed 13 years ago
Remove obsolete preference "general.useragent.extra.lightning"
Categories
(Calendar :: Lightning Only, defect)
Calendar
Lightning Only
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b4
People
(Reporter: ssitter, Assigned: Fallen)
References
Details
(Whiteboard: [needed beta][no l10n impact])
Attachments
(1 file)
3.90 KB,
patch
|
nomisvai
:
review+
|
Details | Diff | Splinter Review |
Bug 581008 removed general.useragent.extra.* support therefore we should remove our preference from default preferences. We should investigate if CalDAV server developers still require information about the used Lightning version. If yes we need to find a new solution for this.
Comment 1•14 years ago
|
||
Yes we do :) I think lightning should merge its user agent information to the "default" useragent before any requests sent as described here: https://developer.mozilla.org/en/Setting_HTTP_request_headers -> calling setRequestHeader("User-Agent","Lightning/...", with aMerge set to true I think it is important that we keep on using the User-Agent header because on the server side, the User-Agent Header is used a lot, for example in the default Apache access logs where it can be used to identify issues with different lightning versions.
Assignee | ||
Comment 2•14 years ago
|
||
I agree, I was hoping that core would reconsider in specific cases, but it seems there's no easy way to allow selective access to such prefs. I'd vote for a method in calProviderUtils.jsm that does the adding, which needs to be called in the caldav provider and any other providers that send http requests. Simon, if you agree, could you whip up a patch?
Updated•14 years ago
|
Assignee: nobody → simon.at.orcl
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•13 years ago
|
||
We should take this for the beta, in order to not lose the possibility to do statistical data. Maybe we can hook in even more aggressive, so all http-requests get the Calendar UA extension. This will allow pages like the Thunderbird Whats New tab to be shown correctly. This should be possible using an nsIObserverService notification, I believe it was http-on-something-request.
Whiteboard: [needed beta][no l10n impact]
Assignee | ||
Comment 4•13 years ago
|
||
This patch should take care
Assignee: nomisvai → philipp
Attachment #522090 -
Flags: review?(nomisvai)
Assignee | ||
Comment 5•13 years ago
|
||
Comment on attachment 522090 [details] [diff] [review] Fix - v1 I'll take anyone's review :-)
Attachment #522090 -
Flags: review?(ssitter)
Assignee | ||
Updated•13 years ago
|
Whiteboard: [needed beta][no l10n impact] → [needed beta][no l10n impact][needs review]
Comment 6•13 years ago
|
||
Comment on attachment 522090 [details] [diff] [review] Fix - v1 Looks good, r=nomisvai, just a little note: Typo in + classDescription: "Calendar webcal(s) protocal handler",
Attachment #522090 -
Flags: review?(nomisvai) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #522090 -
Flags: review?(ssitter)
Assignee | ||
Comment 7•13 years ago
|
||
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/2e0ce8604475> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Trunk
Assignee | ||
Comment 8•13 years ago
|
||
Backported to comm-miramar <http://hg.mozilla.org/releases/comm-miramar/rev/835f14e2c3ac>
Target Milestone: Trunk → 1.0b4
Assignee | ||
Updated•13 years ago
|
Whiteboard: [needed beta][no l10n impact][needs review] → [needed beta][no l10n impact]
Comment 9•13 years ago
|
||
Mozilla/5.0 (X11; Linux x86_64; rv:7.0a1) Gecko/20110601 Firefox/7.0a1 SeaMonkey/2.2a1pre ID:20110601003002 with Lightning 1.1a1pre nightly dated 2011-06-01 The Lightning version had already disappeared from the UA string as mentioned in comment #0. Now general.useragent.extra.lightning has been renamed calendar.useragent.extra in about:config. => VERIFIED.
Status: RESOLVED → VERIFIED
Comment 10•13 years ago
|
||
Sorry I missed that in my first review: When calling setRequestHeader, the "merge" flag seem to work for the User-Agent header (it's just a big string, not a multi-valued header.), I think it is important we preserve the Thunderbird version as well, maybe we could try calling getRequestHeader() and appending the lightning name/version to the new value. Reopening.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 11•13 years ago
|
||
This is already followed up in Bug 660522.
Comment 12•13 years ago
|
||
Another candidate to go into comm-aurora and comm-beta too?
Assignee | ||
Comment 13•13 years ago
|
||
Marking fixed again, see bug 660522. I believe the initial patch was landed before the aurora branching.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•