Closed Bug 1302938 Opened 8 years ago Closed 8 years ago

Explain why user referrer trimming policy can be overriden

Categories

(Core :: Networking: HTTP, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: francois, Assigned: francois)

Details

(Whiteboard: [necko-active])

Attachments

(1 file)

When reading through the code we have to set the Referer header correctly, I found that the user trimming preference (network.http.referer.trimmingPolicy) is
ignored when "origin" is specified:

http://searchfox.org/mozilla-central/rev/6b94deded39a868f248a492e74e05733d6c4ed48/netwerk/protocol/http/HttpBaseChannel.cpp#1514

but since "origin" (2) is the strictest trimming policy, that's all good.

It may be worth explaining this in a comment.
Assignee: nobody → francois
Status: NEW → ASSIGNED
Comment on attachment 8791484 [details]
Bug 1302938 - Explain why user referrer trimming policy can be overriden.

https://reviewboard.mozilla.org/r/78922/#review79978
Attachment #8791484 - Flags: review?(dd.mozilla) → review+
Pushed by fmarier@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/883ddedd5ec5
Explain why user referrer trimming policy can be overriden. r=dragana
https://hg.mozilla.org/mozilla-central/rev/883ddedd5ec5
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: