Closed
Bug 341340
Opened 19 years ago
Closed 19 years ago
microsummary service should identify itself when downloading pages
Categories
(Firefox Graveyard :: Microsummaries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 2 beta2
People
(Reporter: myk, Assigned: zeniko)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
|
1.06 KB,
patch
|
myk
:
review+
darin.moz
:
superreview+
mconnor
:
approval1.8.1+
|
Details | Diff | Splinter Review |
When the microsummary service downloads a page to summarize it, it should identify itself to the server so the server can adjust pageview stats, block problematic generators, and generally be able to tell the difference between a microsummary service-initiated request and a user-initiated request.
One option is to modify the user-agent for the requests. Another is to add an extra HTTP header. Are there others, and which is best?
| Reporter | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [swag: 2d]
Comment 1•19 years ago
|
||
We use "X-moz: prefetch" for link-based prefetching, so it might make sense to extend that header. "X-moz: microsummary" perhaps?
| Reporter | ||
Updated•19 years ago
|
Flags: blocking-firefox2?
| Reporter | ||
Comment 3•19 years ago
|
||
(In reply to comment #1)
> We use "X-moz: prefetch" for link-based prefetching, so it might make sense to
> extend that header. "X-moz: microsummary" perhaps?
Makes sense to me.
Priority: -- → P2
Whiteboard: [swag: 2d] → [swag: 1.5d]
| Assignee | ||
Comment 4•19 years ago
|
||
Once bug 339543 is fixed, this should be a matter of adding one line (request.setHeader("X-moz", "microsummary")) to MicrosummaryResource.load -- reducing Microsummary SWAGs by about 1.4 days. Right?
| Reporter | ||
Comment 5•19 years ago
|
||
(In reply to comment #4)
> Once bug 339543 is fixed, this should be a matter of adding one line
> (request.setHeader("X-moz", "microsummary")) to MicrosummaryResource.load --
> reducing Microsummary SWAGs by about 1.4 days. Right?
Right. Adding dependency and reducing swag (but to 0.25d rather than 0.1d, as I'm calculating swag in 0.25d increments).
Depends on: 339543
Whiteboard: [swag: 1.5d] → [swag: 0.25d]
Updated•19 years ago
|
Target Milestone: Firefox 2 beta1 → Firefox 2 beta2
| Reporter | ||
Updated•19 years ago
|
Whiteboard: [swag: 0.25d] → [myk: mss] [swag: 0.25d]
| Reporter | ||
Updated•19 years ago
|
Component: Bookmarks → Microsummaries
Whiteboard: [myk: mss] [swag: 0.25d] → [swag: 0.25d]
| Assignee | ||
Comment 6•19 years ago
|
||
Assignee: myk → zeniko
Attachment #229344 -
Flags: review?(myk)
| Reporter | ||
Comment 7•19 years ago
|
||
Comment on attachment 229344 [details] [diff] [review]
one-line fix
>+ request.setRequestHeader("X-moz", "microsummary");
Works great, just one minor issue: the prefetch service capitalizes the m in moz when adding this header, i.e. it specifies X-Moz rather than X-moz:
http://lxr.mozilla.org/mozilla/source/uriloader/prefetch/nsPrefetchService.cpp#244
http://lxr.mozilla.org/mozilla/source/uriloader/prefetch/nsPrefetchService.cpp#341
We should be consistent with it.
Attachment #229344 -
Flags: review?(myk) → review-
| Assignee | ||
Comment 8•19 years ago
|
||
Attachment #229344 -
Attachment is obsolete: true
Attachment #229737 -
Flags: review?(myk)
| Reporter | ||
Comment 9•19 years ago
|
||
Comment on attachment 229737 [details] [diff] [review]
one-line fix without nit
Perfect. Just to make sure this is what we want, let's have Darin sr this.
Attachment #229737 -
Flags: superreview?(darin)
Attachment #229737 -
Flags: review?(myk)
Attachment #229737 -
Flags: review+
Comment 10•19 years ago
|
||
Comment on attachment 229737 [details] [diff] [review]
one-line fix without nit
be sure to document this someplace where website admins can easily find it, sr=darin
Attachment #229737 -
Flags: superreview?(darin) → superreview+
Updated•19 years ago
|
Whiteboard: [swag: 0.25d] → [has patch][needs trunk landing, approval][checkin needed]
Comment 11•19 years ago
|
||
mozilla/browser/components/microsummaries/src/nsMicrosummaryService.js.in 1.26
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [has patch][needs trunk landing, approval][checkin needed] → [has patch][needs approval]
Version: Trunk → 2.0 Branch
| Reporter | ||
Comment 12•19 years ago
|
||
Comment on attachment 229737 [details] [diff] [review]
one-line fix without nit
Notes for drivers considering this approval request:
This is a trivial fix with a very low risk of regression. It has been on the trunk since Wednesday morning.
Attachment #229737 -
Flags: approval1.8.1?
Comment 13•19 years ago
|
||
Comment on attachment 229737 [details] [diff] [review]
one-line fix without nit
a=mconnor on behalf of drivers for checkin to the 1.8 branch
Attachment #229737 -
Flags: approval1.8.1? → approval1.8.1+
| Reporter | ||
Updated•19 years ago
|
Keywords: fixed1.8.1
Whiteboard: [has patch][needs approval]
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•