Gabriel Ivăncescu : mshtml: Skip windows with no URI when deciding whether to send storage events.
Module: wine Branch: master Commit: db53e46bad3196a662976ea4c9c34a251aad10d4 URL: https://gitlab.winehq.org/wine/wine/-/commit/db53e46bad3196a662976ea4c9c34a2... Author: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> Date: Thu Aug 10 19:10:23 2023 +0300 mshtml: Skip windows with no URI when deciding whether to send storage events. They're not going to match anyway. Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- dlls/mshtml/htmlstorage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/mshtml/htmlstorage.c b/dlls/mshtml/htmlstorage.c index cad2b2dbd32..2cf32580b2a 100644 --- a/dlls/mshtml/htmlstorage.c +++ b/dlls/mshtml/htmlstorage.c @@ -282,6 +282,8 @@ static HRESULT send_storage_event_impl(struct send_storage_event_ctx *ctx, HTMLI origin = storage->session_storage->origin; origin_len = ctx->skip_window ? wcslen(origin) : storage->session_storage->origin_len; bstr = NULL; + }else if(!window->base.outer_window->uri) { + return S_OK; }else { hres = IUri_GetHost(window->base.outer_window->uri, &bstr); if(hres != S_OK) {
participants (1)
-
Alexandre Julliard