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

mshtml: Don't attempt to send storage events after outer window is detached.

parent a5028f1e
......@@ -322,6 +322,11 @@ static HRESULT send_storage_event(HTMLStorage *storage, BSTR key, BSTR old_value
HRESULT hres = S_OK;
ctx.url = NULL;
/* FIXME: Events are actually sent to the current window on native, even if we're detached. */
if(!window->base.outer_window)
goto done;
if(window->base.outer_window->uri_nofrag) {
hres = IUri_GetDisplayUri(window->base.outer_window->uri_nofrag, &ctx.url);
if(hres != S_OK)
......
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