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
9c464ca3
Commit
9c464ca3
authored
Nov 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fixed protocol tests on IE9.
parent
c59ecdce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
bindprot.c
dlls/urlmon/bindprot.c
+1
-0
protocol.c
dlls/urlmon/tests/protocol.c
+20
-3
No files found.
dlls/urlmon/bindprot.c
View file @
9c464ca3
...
...
@@ -203,6 +203,7 @@ static HRESULT handle_mime_filter(BindProtocol *This, IInternetProtocol *mime_fi
return
hres
;
}
/* NOTE: IE9 calls it on the new protocol_sink. It doesn't make sense to is seems to be a bug there. */
IInternetProtocolSink_ReportProgress
(
old_sink
,
BINDSTATUS_LOADINGMIMEHANDLER
,
NULL
);
IInternetProtocolSink_Release
(
old_sink
);
...
...
dlls/urlmon/tests/protocol.c
View file @
9c464ca3
...
...
@@ -112,7 +112,6 @@ DEFINE_EXPECT(UnlockRequest);
DEFINE_EXPECT
(
Abort
);
DEFINE_EXPECT
(
MimeFilter_CreateInstance
);
DEFINE_EXPECT
(
MimeFilter_Start
);
DEFINE_EXPECT
(
MimeFilter_ReportProgress
);
DEFINE_EXPECT
(
MimeFilter_ReportData
);
DEFINE_EXPECT
(
MimeFilter_ReportResult
);
DEFINE_EXPECT
(
MimeFilter_Terminate
);
...
...
@@ -1043,7 +1042,20 @@ static HRESULT WINAPI MimeProtocolSink_Switch(IInternetProtocolSink *iface, PROT
static
HRESULT
WINAPI
MimeProtocolSink_ReportProgress
(
IInternetProtocolSink
*
iface
,
ULONG
ulStatusCode
,
LPCWSTR
szStatusText
)
{
CHECK_EXPECT
(
MimeFilter_ReportProgress
);
switch
(
ulStatusCode
)
{
case
BINDSTATUS_LOADINGMIMEHANDLER
:
/*
* IE9 for some reason (bug?) calls this on mime handler's protocol sink instead of the
* main protocol sink. We check ReportProgress_LOADINGMIMEHANDLER both here and in
* ProtocolSink_ReportProgress to workaround it.
*/
CHECK_EXPECT
(
ReportProgress_LOADINGMIMEHANDLER
);
ok
(
!
szStatusText
,
"szStatusText = %s
\n
"
,
wine_dbgstr_w
(
szStatusText
));
break
;
default:
ok
(
0
,
"Unexpected status code %d
\n
"
,
ulStatusCode
);
}
return
S_OK
;
}
...
...
@@ -1742,6 +1754,7 @@ static HRESULT WINAPI ProtocolEmul_Continue(IInternetProtocolEx *iface,
if
(
pr
==
200
)
{
if
(
!
mimefilter_test
)
SET_EXPECT
(
Read
);
/* checked in BINDSTATUS_MIMETYPEAVAILABLE or ReportData */
SET_EXPECT
(
GetBindInfo
);
SET_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
}
if
(
pr
>=
200
)
...
...
@@ -1759,6 +1772,7 @@ static HRESULT WINAPI ProtocolEmul_Continue(IInternetProtocolEx *iface,
if
(
!
short_read
&&
pr
<
200
)
CHECK_CALLED
(
Read
);
if
(
pr
==
200
)
{
CLEAR_CALLED
(
GetBindInfo
);
/* IE9 */
CHECK_CALLED
(
ReportProgress_MIMETYPEAVAILABLE
);
}
}
else
{
...
...
@@ -1816,6 +1830,7 @@ static HRESULT WINAPI ProtocolEmul_Read(IInternetProtocolEx *iface, void *pv,
prot_state
=
4
;
if
(
short_read
)
{
SET_EXPECT
(
Read2
);
/* checked in BINDSTATUS_MIMETYPEAVAILABLE */
SET_EXPECT
(
GetBindInfo
);
SET_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
}
if
(
mimefilter_test
)
...
...
@@ -1827,8 +1842,10 @@ static HRESULT WINAPI ProtocolEmul_Read(IInternetProtocolEx *iface, void *pv,
BSCF_LASTDATANOTIFICATION
|
BSCF_INTERMEDIATEDATANOTIFICATION
,
0
,
0
);
read_report_data
--
;
ok
(
hres
==
S_OK
,
"ReportData failed: %08x
\n
"
,
hres
);
if
(
short_read
)
if
(
short_read
)
{
CLEAR_CALLED
(
GetBindInfo
);
/* IE9 */
CHECK_CALLED
(
ReportProgress_MIMETYPEAVAILABLE
);
}
if
(
mimefilter_test
)
CHECK_CALLED
(
MimeFilter_ReportData
);
else
if
(
direct_read
)
...
...
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