mshtml: Use inner window's outer_window in IHTMLDocument2::readyState.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
30c074963a
commit
ffb7ace4df
2 changed files with 2 additions and 1 deletions
|
@ -905,7 +905,7 @@ static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p
|
|||
if(!p)
|
||||
return E_POINTER;
|
||||
|
||||
return get_readystate_string(This->outer_window ? This->outer_window->readystate : 0, p);
|
||||
return get_readystate_string(This->window && This->window->base.outer_window ? This->window->base.outer_window->readystate : 0, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
|
||||
|
|
|
@ -119,6 +119,7 @@ function detached_iframe_doc() {
|
|||
expect_exception(function() { origDoc.onclick; }, true);
|
||||
expect_exception(function() { origDoc.toString; }, true);
|
||||
expect_exception(function() { origDoc.toString(); }, true);
|
||||
expect_exception(function() { origDoc.readyState; }, true);
|
||||
expect_exception(function() { origDoc.URL; });
|
||||
expect_exception(function() { origDoc.URL = "blank.html"; });
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue