Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
eec86f64
Commit
eec86f64
authored
Aug 18, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIHttpChannel::referrer implementation.
parent
3d3f223a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsio.c
dlls/mshtml/nsio.c
+13
-3
No files found.
dlls/mshtml/mshtml_private.h
View file @
eec86f64
...
...
@@ -468,6 +468,7 @@ typedef struct {
nsISupports
*
owner
;
nsLoadFlags
load_flags
;
nsIURI
*
original_uri
;
nsIURI
*
referrer
;
char
*
content_type
;
char
*
charset
;
PRUint32
response_status
;
...
...
dlls/mshtml/nsio.c
View file @
eec86f64
...
...
@@ -491,6 +491,8 @@ static nsrefcnt NSAPI nsChannel_Release(nsIHttpChannel *iface)
nsIInterfaceRequestor_Release
(
This
->
notif_callback
);
if
(
This
->
original_uri
)
nsIURI_Release
(
This
->
original_uri
);
if
(
This
->
referrer
)
nsIURI_Release
(
This
->
referrer
);
free_http_headers
(
&
This
->
response_headers
);
free_http_headers
(
&
This
->
request_headers
);
...
...
@@ -1072,17 +1074,25 @@ static nsresult NSAPI nsChannel_GetReferrer(nsIHttpChannel *iface, nsIURI **aRef
{
nsChannel
*
This
=
NSCHANNEL_THIS
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
aReferrer
);
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
aReferrer
);
return
NS_ERROR_NOT_IMPLEMENTED
;
if
(
This
->
referrer
)
nsIURI_AddRef
(
This
->
referrer
);
*
aReferrer
=
This
->
referrer
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsChannel_SetReferrer
(
nsIHttpChannel
*
iface
,
nsIURI
*
aReferrer
)
{
nsChannel
*
This
=
NSCHANNEL_THIS
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
aReferrer
);
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
aReferrer
);
if
(
aReferrer
)
nsIURI_AddRef
(
aReferrer
);
if
(
This
->
referrer
)
nsIURI_Release
(
This
->
referrer
);
This
->
referrer
=
aReferrer
;
return
NS_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment