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

mshtml: Skip windows with no URI when deciding whether to send storage events.

They're not going to match anyway. Signed-off-by: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
parent 1946c2dc
...@@ -282,6 +282,8 @@ static HRESULT send_storage_event_impl(struct send_storage_event_ctx *ctx, HTMLI ...@@ -282,6 +282,8 @@ static HRESULT send_storage_event_impl(struct send_storage_event_ctx *ctx, HTMLI
origin = storage->session_storage->origin; origin = storage->session_storage->origin;
origin_len = ctx->skip_window ? wcslen(origin) : storage->session_storage->origin_len; origin_len = ctx->skip_window ? wcslen(origin) : storage->session_storage->origin_len;
bstr = NULL; bstr = NULL;
}else if(!window->base.outer_window->uri) {
return S_OK;
}else { }else {
hres = IUri_GetHost(window->base.outer_window->uri, &bstr); hres = IUri_GetHost(window->base.outer_window->uri, &bstr);
if(hres != S_OK) { 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