On Thu Apr 25 17:41:29 2024 +0000, Gabriel Ivăncescu wrote:
The "this" object can be anything. It doesn't have to be a mshtml object. So what happens then? That's why I store the entire function context along with the this object in the function interface. For the props, we do have a mshtml object (the one holding the prop), so we don't need that, hence why it's a different interface. You did mention the IID. The only way I can see how this can work out is by duplicating the interface checks from mshtml into jscript. Is that actually a good idea? I'd rather not duplicate code if mshtml can already handle it. BTW, how do I even store the IID without the function context (in the function interface, not the proxy)? For `prop_fixup`, do you mean to use PropGetInfo? Or did I misunderstand? Honestly, I believe I tried that at first and something didn't work out, but that was awhile ago, maybe I was wrong or something changed since then. Not sure.
Actually wait nevermind, we can't use the IJSDispatchHost for functions, because functions can be completely detached from the object: ```jscript var a = document.createEvent; a(...) ``` I remember I did try that at first and it was a dead end.