Closed
Bug 3995
Opened 26 years ago
Closed 25 years ago
HTMLDocument property "referrer" doesn't return server name
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
M11
People
(Reporter: jcarpenter0524, Assigned: vidur)
References
()
Details
Build 3-18-99
WinNT
- Go to above URL and click "link"
- View this file using 4.51 and see the server name
- View on 5.0, and see only the text outside the script tags
Note for regression testing:
referrer returns the URI of the page that linked to the page. The value is an
empty string if the user navigated to the page directly (not through a link,
but, for example, via a bookmark).
Reporter | ||
Updated•26 years ago
|
QA Contact: 4015 → 3847
Reporter | ||
Updated•26 years ago
|
OS: Windows NT → All
Reporter | ||
Comment 1•26 years ago
|
||
Also on Mac PPC
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Component: DOM Level 1 → DOM Level 0
Assignee | ||
Comment 2•26 years ago
|
||
Moving to DOM Level 0. This is a property that existed in 4.x and before.
Reporter | ||
Updated•26 years ago
|
Target Milestone: M3
Assignee | ||
Comment 3•26 years ago
|
||
Umm...I thought we were done with M3. Jan, any reason for the change?
Assignee | ||
Updated•26 years ago
|
Target Milestone: M3 → M5
Assignee | ||
Updated•26 years ago
|
Target Milestone: M5 → M6
Assignee | ||
Updated•26 years ago
|
Target Milestone: M6 → M7
Assignee | ||
Comment 4•26 years ago
|
||
In the past, document.referrer was obtained from the URL_Struct. In Necko
(Necco?), where would I look to find this information?
Necko isn't in yet, but you'd look for the server name using the connection
object created for your request. More details come in when we land Necko.
Assignee | ||
Comment 6•26 years ago
|
||
Actually, the referrer is the URL of the page referring to the current one.
Thinking about it a bit more, maybe this is information that WebShells can
maintain, rather than relying (perhaps unreasonably) on netlib to do the right
thing.
I dont agree with keeping the referrer cached in the document is the right
thing. Cause this will fail on redirects.
Several web sites on the net require you to refer from a specific opening page.
(For example the adult ones require a warning page) This is accomplished thru
redirects.
So if you are on A, and you click on B, which redirects automatically to C, then
C expects to see B as a referrer and not A. What you will be caching is A, and
what you will get from Necko Magic is B. Make sense?
Assignee | ||
Comment 8•26 years ago
|
||
If Necko Magic can get this information for me, then great!
Assignee | ||
Comment 9•26 years ago
|
||
This one depends on Necko. Pushing off till M9 and post-Necko landing.
Target Milestone: M7 → M9
Target Milestone: M10 → M11
Let's get an update here. I suspect we want this fixed for beta, and now that
Necko's in we might have a fighting chance.
gagan: is the necko infrastructure in place? if so, could you give a short,
sweet description of how to get the data? We can mark it HELP WANTED once we
have something in here to guide people, and then vidur and I can duel for it if
nobody else picks it up in time for beta.
Comment 11•25 years ago
|
||
Gagan/Rick: Do you think the referrer should be an attribute on http channel
that the doc loader can set? Or should it be an argument passed into AsyncRead
or the socket channel constructor?
Rick/Judson: the docloader is going to have to propagate this into necko from
the current document.
Assignee | ||
Comment 12•25 years ago
|
||
It occurs to me that this is information that can be propagated without Necko.
The referring URL can be passed in as a parameter to LoadURL (the WebShell is
both the caller and callee of LoadURL in the link clicking case).
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Comment 13•25 years ago
|
||
Pam, Does image lib load urls too? I recall that it used to and that you set the
referrer when appropriate. I was originally thinking that this was some sort of
load group attribute? All urls in a load group are going to have the same root
referrer url right? There's another referer bug out there but I can't find it.
*** This bug has been marked as a duplicate of 7776 ***
Comment 14•25 years ago
|
||
the short/simple way to do this correctly is-
get the channel in OnEndRequest, QI it to nsIHTTPChannel, and then do a-
httpChannel->GetRequestHeader("Referer", &referer);
Comment 15•25 years ago
|
||
J:
The imglib does load an url in IL_GetImage() [in if.cpp] through a call
ic->net_cx->GetURL() which is ImageNetContextImpl::GetURL in
nsImageNetContextAsync.cppp [in gfx].
In IL_GetImage.cpp there is code commented out which would add a referer.
This was removed when the imglib was first 'BAMmed'. What should happen?
Feel free to email me outside of the bug report or phone.
-pn
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 16•25 years ago
|
||
Verified Duplicate
You need to log in
before you can comment on or make changes to this bug.
Description
•