Status

()

defect
RESOLVED FIXED
4 years ago
a month ago

People

(Reporter: franziskus, Assigned: nsm)

Tracking

(Blocks 1 bug)

unspecified
mozilla41
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox41 fixed)

Details

Attachments

(1 attachment, 1 obsolete attachment)

When querying a worker [1] firefox never sends a referrer, i.e. referrer policies have no effect.

[1] https://html.spec.whatwg.org/multipage/workers.html
Assignee: nobody → amarchesini
Posted patch referrer.patch (obsolete) — Splinter Review
I used the same code of XHR: in case we have a parentDoc I use the documentURI of that document, otherwise the parent principal.
Attachment #8612918 - Flags: review?(bugs)
Comment on attachment 8612918 [details] [diff] [review]
referrer.patch

copy-pasting this much code feels wrong, and I think bug 1169044 is adding some helper.
Attachment #8612918 - Flags: review?(bugs) → review-
Depends on: 1169044
Comment on attachment 8612918 [details] [diff] [review]
referrer.patch

Andrea, I've just updated the patch to use the function. Thanks for the test.
Attachment #8612918 - Attachment is obsolete: true
Comment on attachment 8615694 [details]
MozReview Request: Bug 1168933 - Send referrer when downloading worker script. r?smaug

Perhaps kyle could review this too.
Attachment #8615694 - Flags: review?(bugs) → review?(khuey)
Comment on attachment 8615694 [details]
MozReview Request: Bug 1168933 - Send referrer when downloading worker script. r?smaug

Bug 1168933 - Send referrer when downloading worker script. r?smaug
Attachment #8615694 - Flags: review?(khuey) → review?(bugs)
Attachment #8615694 - Flags: review?(bugs) → review?(khuey)
Assignee: amarchesini → nsm.nikhil
Comment on attachment 8615694 [details]
MozReview Request: Bug 1168933 - Send referrer when downloading worker script. r?smaug

https://reviewboard.mozilla.org/r/10351/#review10451

Ship It!

::: dom/workers/ScriptLoader.cpp:194
(Diff revision 2)
> +  if (httpChannel) {

if (nsCOMPtr<nsI....)
https://hg.mozilla.org/mozilla-central/rev/d44bc296a927
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Component: DOM → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.