On Tue Dec 5 16:52:54 2023 +0000, Jacek Caban wrote:
`browser->content_window` is not necessarily the same thing as `outer_window`, it will be different for iframes.
I see, I thought as much but confused a bit with the edit mode check.
Do you have any suggestions? Basically, my dilemma is that checking for `dom_interactive_time` fails some tests in `htmldoc.c` because setup_edit_mode will set the readystate back to uninitialized, and then load the doc again, but the dom_interactive_time is kept the same and thus the tests will fail.
I don't understand how the setup_edit_mode thing works at all, mind explaining a bit? Should I just reset `dom_interactive_time` there to 0, or something else?
The thing is, based on my current knowledge of how the binding works, this creates a **new** document and this one gets detached, doesn't it? So checking for the readystate *of the new document* seems a bit… working by pure luck? Or I got it completely wrong.