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
5fad02d0
Commit
5fad02d0
authored
Apr 05, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Remove old channel from load group in…
mshtml: Remove old channel from load group in nsIAsyncVerifyRedirectCallback::AsyncOnChannelRedirect.
parent
e0f93874
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
navigate.c
dlls/mshtml/navigate.c
+13
-4
No files found.
dlls/mshtml/navigate.c
View file @
5fad02d0
...
...
@@ -1200,17 +1200,16 @@ static nsrefcnt NSAPI nsAsyncVerifyRedirectCallback_Release(nsIAsyncVerifyRedire
static
nsresult
NSAPI
nsAsyncVerifyRedirectCallback_AsyncOnChannelRedirect
(
nsIAsyncVerifyRedirectCallback
*
iface
,
nsresult
result
)
{
nsRedirectCallback
*
This
=
impl_from_nsIAsyncVerifyRedirectCallback
(
iface
);
nsChannel
*
old_nschannel
;
nsresult
nsres
;
TRACE
(
"(%p)->(%08x)
\n
"
,
This
,
result
);
if
(
This
->
bsc
->
nschannel
)
nsIHttpChannel_Release
(
&
This
->
bsc
->
nschannel
->
nsIHttpChannel_iface
);
old_nschannel
=
This
->
bsc
->
nschannel
;
nsIChannel_AddRef
(
&
This
->
nschannel
->
nsIHttpChannel_iface
);
This
->
bsc
->
nschannel
=
This
->
nschannel
;
if
(
This
->
nschannel
->
load_group
)
{
nsresult
nsres
;
nsres
=
nsILoadGroup_AddRequest
(
This
->
nschannel
->
load_group
,
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
NULL
);
if
(
NS_FAILED
(
nsres
))
...
...
@@ -1228,6 +1227,14 @@ static nsresult NSAPI nsAsyncVerifyRedirectCallback_AsyncOnChannelRedirect(nsIAs
}
}
if
(
old_nschannel
)
{
nsres
=
nsILoadGroup_RemoveRequest
(
old_nschannel
->
load_group
,
(
nsIRequest
*
)
&
old_nschannel
->
nsIHttpChannel_iface
,
NULL
,
NS_OK
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"RemoveRequest failed: %08x
\n
"
,
nsres
);
nsIHttpChannel_Release
(
&
old_nschannel
->
nsIHttpChannel_iface
);
}
return
NS_OK
;
}
...
...
@@ -1480,6 +1487,8 @@ static HRESULT handle_redirect(nsChannelBSC *This, const WCHAR *new_url)
hres
=
create_redirect_nschannel
(
new_url
,
This
->
nschannel
,
&
new_channel
);
if
(
SUCCEEDED
(
hres
))
{
TRACE
(
"%p %p->%p
\n
"
,
This
,
This
->
nschannel
,
new_channel
);
hres
=
create_redirect_callback
(
new_channel
,
This
,
&
callback
);
nsIChannel_Release
(
&
new_channel
->
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