8 Sep
2025
8 Sep
'25
3:53 p.m.
Jacek Caban (@jacek) commented about dlls/mshtml/omnavigator.c:
+ HRESULT hres; + VARIANT v; + + TRACE("(%p)->(%p)\n", This, var); + + if(!This->window->jscript) + return E_UNEXPECTED; + + if(!var) + return S_OK; + + hres = IWineJScript_CreateObject(This->window->jscript, &json); + if(FAILED(hres)) + return hres; + + hres = dispex_builtin_props_to_json(&This->navigation->dispex, This->window, &v); Why not just `IHTMLPerformanceNavigation_toJSON(This->navigation, &v)`? You wouldn't need to change stored type then.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8905#note_115354