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
892be572
Commit
892be572
authored
Mar 14, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Access document object via browser object in nsIChannel::AsyncOpen.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b0ffd08a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
nsio.c
dlls/mshtml/nsio.c
+4
-4
No files found.
dlls/mshtml/nsio.c
View file @
892be572
...
...
@@ -1063,17 +1063,17 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
cancel
=
TRUE
;
}
if
(
window
==
window
->
doc_obj
->
basedoc
.
window
)
{
if
(
is_main_content_window
(
window
)
)
{
if
(
!
This
->
uri
->
channel_bsc
)
{
/* top window navigation initiated by Gecko */
nsres
=
before_async_open
(
This
,
window
->
doc_obj
->
nscontain
er
,
&
cancel
);
nsres
=
before_async_open
(
This
,
window
->
brows
er
,
&
cancel
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
cancel
)
{
TRACE
(
"canceled
\n
"
);
nsres
=
NS_BINDING_ABORTED
;
}
}
else
if
(
window
->
doc_obj
->
mime
)
{
}
else
if
(
window
->
browser
->
doc
->
mime
)
{
heap_free
(
This
->
content_type
);
This
->
content_type
=
heap_strdupWtoA
(
window
->
doc_obj
->
mime
);
This
->
content_type
=
heap_strdupWtoA
(
window
->
browser
->
doc
->
mime
);
}
}
}
...
...
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