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
9e308135
Commit
9e308135
authored
Aug 30, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Always call OnStartRequest before OnStopRequest.
parent
7b156524
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
17 deletions
+33
-17
navigate.c
dlls/mshtml/navigate.c
+33
-17
No files found.
dlls/mshtml/navigate.c
View file @
9e308135
...
...
@@ -879,6 +879,38 @@ struct nsChannelBSC {
nsProtocolStream
*
nsstream
;
};
static
void
on_start_nsrequest
(
nsChannelBSC
*
This
)
{
nsresult
nsres
;
/* FIXME: it's needed for http connections from BindToObject. */
if
(
!
This
->
nschannel
->
response_status
)
This
->
nschannel
->
response_status
=
200
;
nsres
=
nsIStreamListener_OnStartRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
);
if
(
NS_FAILED
(
nsres
))
FIXME
(
"OnStartRequest failed: %08x
\n
"
,
nsres
);
}
static
void
on_stop_nsrequest
(
nsChannelBSC
*
This
)
{
nsresult
nsres
;
if
(
!
This
->
nslistener
)
return
;
if
(
!
This
->
bsc
.
readed
)
{
TRACE
(
"No data read! Calling OnStartRequest
\n
"
);
on_start_nsrequest
(
This
);
}
nsres
=
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
,
NS_OK
);
if
(
NS_FAILED
(
nsres
))
WARN
(
"OnStopRequest failed: %08x
\n
"
,
nsres
);
}
static
HRESULT
read_stream_data
(
nsChannelBSC
*
This
,
IStream
*
stream
)
{
DWORD
read
;
...
...
@@ -914,14 +946,7 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
&&
(
BYTE
)
This
->
nsstream
->
buf
[
1
]
==
0xfe
)
This
->
nschannel
->
charset
=
heap_strdupA
(
UTF16_STR
);
/* FIXME: it's needed for http connections from BindToObject. */
if
(
!
This
->
nschannel
->
response_status
)
This
->
nschannel
->
response_status
=
200
;
nsres
=
nsIStreamListener_OnStartRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
);
if
(
NS_FAILED
(
nsres
))
FIXME
(
"OnStartRequest failed: %08x
\n
"
,
nsres
);
on_start_nsrequest
(
This
);
/* events are reset when a new document URI is loaded, so re-initialise them here */
if
(
This
->
bsc
.
doc
&&
This
->
bsc
.
doc
->
bscallback
==
This
&&
This
->
bsc
.
doc
->
nscontainer
)
{
...
...
@@ -948,15 +973,6 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
return
S_OK
;
}
static
void
on_stop_nsrequest
(
nsChannelBSC
*
This
)
{
if
(
!
This
->
nslistener
)
return
;
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
,
NS_OK
);
}
static
void
add_nsrequest
(
nsChannelBSC
*
This
)
{
nsresult
nsres
;
...
...
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