Commit a5028f1e authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Don't rely on the outer_window in document.mimeType.

This would have crashed on detached windows, and checking the navigation_start time has the same effect except it's decoupled from the outer window. Signed-off-by: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
parent ecc54b84
......@@ -1296,7 +1296,7 @@ static HRESULT WINAPI HTMLDocument_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
*p = NULL;
if(This->window && This->window->base.outer_window->readystate == READYSTATE_UNINITIALIZED)
if(This->window && !This->window->navigation_start_time)
return (*p = SysAllocString(L"")) ? S_OK : E_FAIL;
nsAString_InitDepend(&nsstr, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment