#292 closed
Scriptish

XHR Referrer setting "incorrect"

Reported by Scriptish | September 18th, 2011 @ 09:53 PM

The code from issue #285 is somewhat incorrect and really ugly. See commit 3955fce49bfd5c04a30993e681552bb0de903aab

The following could should work just fine IIRC and does not require observers and stuff:
``` if (details.headers && details.headers.Referer && req.channel instanceof Ci.nsIHttpChannel) {
try {

req.channel.referrer = Services.io.newURI(details.headers.Referer, null, null);

} catch (ex) {

Cu.reportError(ex);

} } ```

See: http://mxr.mozilla.org/mozilla-central/source/netwerk/protocol/http...

@erikvold, @u-nn

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket