Module: wine Branch: master Commit: 0dc3784b68b7dbc314cee8bea504bbf22da59a4f URL: https://gitlab.winehq.org/wine/wine/-/commit/0dc3784b68b7dbc314cee8bea504bbf...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Mon Dec 4 17:27:58 2023 +0200
mshtml: Don't attempt to send storage events after outer window is detached.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
---
dlls/mshtml/htmlstorage.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/mshtml/htmlstorage.c b/dlls/mshtml/htmlstorage.c index efd4b2d88ae..06d16e4e4aa 100644 --- a/dlls/mshtml/htmlstorage.c +++ b/dlls/mshtml/htmlstorage.c @@ -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)