On Wed Aug 6 19:52:23 2025 +0000, Jacek Caban wrote:
Doing that here would fire for each binding we perform, including things like CSS, scripts, and images. If we want to catch only document bindings, see `before_async_open` in `nsChannel_AsyncOpen`. It's currently guarded by `is_main_content_window`, so it won't trigger, and at least some of that probably should remain guarded, but I guess it would fit better there. A test in MSHTML itself (like in `tests/htmldoc.c`) would more precisely show us how it's supposed to work, by avoiding the ieframe layer. Also, it may be more convenient to use the res: protocol and embed the source in resources, we already have a few of those. If http is important for some reason, we could add the iframe source to test.winehq.org.
In my local changes I have the beforenavigate fire in "if(is_doc_channel)" in async_open which seems to work, if that is ok.
I will look into the res protocol and putting the test in htmldoc.