9 Aug
2022
9 Aug
'22
6:33 p.m.
Jacek Caban (@jacek) commented about dlls/mshtml/htmlwindow.c:
+ DWORD port, port2; + BSTR bstr, bstr2; + HRESULT hres; + + if(V_VT(target_origin) != VT_BSTR) + return E_INVALIDARG; + + if(!wcscmp(V_BSTR(target_origin), L"*")) + return S_OK; + + hres = create_uri(V_BSTR(target_origin), Uri_CREATE_NOFRAG | Uri_CREATE_NO_DECODE_EXTRA_INFO, &target); + if(FAILED(hres)) + return hres; + + if(!window->base.outer_window || !(uri = window->base.outer_window->uri)) { + hres = S_OK; It doesn't seem right to match such windows to all target origins.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/580#note_5942