mshtml: Make sure that readState is READYSTATE_LOADING in read_stream_data.

This commit is contained in:
Jacek Caban 2010-03-18 01:04:15 +01:00 committed by Alexandre Julliard
parent d16bf5f9ba
commit 2b94ad5287
2 changed files with 4 additions and 2 deletions

View File

@ -972,8 +972,11 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
on_start_nsrequest(This);
if(This->window)
if(This->window) {
update_window_doc(This->window);
if(This->window->readystate != READYSTATE_LOADING)
set_ready_state(This->window, READYSTATE_LOADING);
}
}
This->bsc.readed += This->nsstream->buf_size;

View File

@ -1310,7 +1310,6 @@ static void test_onreadystatechange(IHTMLDocument2 *doc)
SET_EXPECT(iframe_onreadystatechange_interactive);
SET_EXPECT(iframe_onreadystatechange_complete);
pump_msgs(&called_iframe_onreadystatechange_complete);
todo_wine
CHECK_CALLED(iframe_onreadystatechange_loading);
CHECK_CALLED(iframe_onreadystatechange_interactive);
CHECK_CALLED(iframe_onreadystatechange_complete);