Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
86c09714
Commit
86c09714
authored
Dec 21, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIChannel::Cancel implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
11a6bfc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
binding.h
dlls/mshtml/binding.h
+2
-0
navigate.c
dlls/mshtml/navigate.c
+15
-6
nsio.c
dlls/mshtml/nsio.c
+6
-2
No files found.
dlls/mshtml/binding.h
View file @
86c09714
...
...
@@ -55,6 +55,8 @@ typedef struct {
REQUEST_METHOD
request_method
;
struct
list
response_headers
;
struct
list
request_headers
;
nsChannelBSC
*
binding
;
}
nsChannel
;
typedef
struct
{
...
...
dlls/mshtml/navigate.c
View file @
86c09714
...
...
@@ -927,6 +927,8 @@ static HRESULT on_start_nsrequest(nsChannelBSC *This)
{
nsresult
nsres
;
This
->
nschannel
->
binding
=
This
;
/* FIXME: it's needed for http connections from BindToObject. */
if
(
!
This
->
nschannel
->
response_status
)
This
->
nschannel
->
response_status
=
200
;
...
...
@@ -972,11 +974,15 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
WARN
(
"OnStopRequest failed: %08x
\n
"
,
nsres
);
}
if
(
This
->
nschannel
&&
This
->
nschannel
->
load_group
)
{
nsres
=
nsILoadGroup_RemoveRequest
(
This
->
nschannel
->
load_group
,
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
NULL
,
request_result
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"RemoveRequest failed: %08x
\n
"
,
nsres
);
if
(
This
->
nschannel
)
{
if
(
This
->
nschannel
->
load_group
)
{
nsres
=
nsILoadGroup_RemoveRequest
(
This
->
nschannel
->
load_group
,
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
NULL
,
request_result
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"RemoveRequest failed: %08x
\n
"
,
nsres
);
}
if
(
This
->
nschannel
->
binding
==
This
)
This
->
nschannel
->
binding
=
NULL
;
}
}
...
...
@@ -1217,8 +1223,11 @@ static void nsChannelBSC_destroy(BSCallback *bsc)
{
nsChannelBSC
*
This
=
nsChannelBSC_from_BSCallback
(
bsc
);
if
(
This
->
nschannel
)
if
(
This
->
nschannel
)
{
if
(
This
->
nschannel
->
binding
==
This
)
This
->
nschannel
->
binding
=
NULL
;
nsIHttpChannel_Release
(
&
This
->
nschannel
->
nsIHttpChannel_iface
);
}
if
(
This
->
nslistener
)
nsIStreamListener_Release
(
This
->
nslistener
);
if
(
This
->
nscontext
)
...
...
dlls/mshtml/nsio.c
View file @
86c09714
...
...
@@ -617,9 +617,13 @@ static nsresult NSAPI nsChannel_Cancel(nsIHttpChannel *iface, nsresult aStatus)
{
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
FIXM
E
(
"(%p)->(%08x)
\n
"
,
This
,
aStatus
);
TRAC
E
(
"(%p)->(%08x)
\n
"
,
This
,
aStatus
);
return
NS_ERROR_NOT_IMPLEMENTED
;
if
(
This
->
binding
&&
This
->
binding
->
bsc
.
binding
)
IBinding_Abort
(
This
->
binding
->
bsc
.
binding
);
else
WARN
(
"No binding to cancel
\n
"
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsChannel_Suspend
(
nsIHttpChannel
*
iface
)
...
...
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