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: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
ecc54b84ad
commit
a5028f1e26
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue