mshtml: Send load event synchronously for img elements that loaded instantly in legac...
commit144479afa1f85adae8e872cd755c71fc456d890d
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Wed, 30 Nov 2022 16:14:24 +0000 (30 18:14 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 30 Nov 2022 19:48:20 +0000 (30 20:48 +0100)
tree2123089eb30020758aed74ab9b8e43eb4a594c74
parentce54f50feb57dd3360e99a457dbcf8d3dc0b0993
mshtml: Send load event synchronously for img elements that loaded instantly in legacy modes.

Otherwise, script56.chm's javascript will keep reloading the image and
triggering onload events non-stop. It protects against this using a variable
"noReentry", which is only set temporarily while setting the source, so it
expects it to be triggered synchronously.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53927
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
25 files changed:
dlls/mshtml/htmlanchor.c
dlls/mshtml/htmlarea.c
dlls/mshtml/htmlbody.c
dlls/mshtml/htmlcomment.c
dlls/mshtml/htmldoc.c
dlls/mshtml/htmlelem.c
dlls/mshtml/htmlevent.h
dlls/mshtml/htmlform.c
dlls/mshtml/htmlframe.c
dlls/mshtml/htmlgeneric.c
dlls/mshtml/htmlhead.c
dlls/mshtml/htmlimg.c
dlls/mshtml/htmlinput.c
dlls/mshtml/htmllink.c
dlls/mshtml/htmlobject.c
dlls/mshtml/htmlscript.c
dlls/mshtml/htmlselect.c
dlls/mshtml/htmlstyleelem.c
dlls/mshtml/htmltable.c
dlls/mshtml/htmltextarea.c
dlls/mshtml/htmlwindow.c
dlls/mshtml/mshtml_private.h
dlls/mshtml/nsevents.c
dlls/mshtml/svg.c
dlls/mshtml/tests/events.c