Module: wine Branch: master Commit: 144479afa1f85adae8e872cd755c71fc456d890d URL: https://gitlab.winehq.org/wine/wine/-/commit/144479afa1f85adae8e872cd755c71f...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Wed Nov 30 18:14:24 2022 +0200
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
---
dlls/mshtml/htmlanchor.c | 1 + dlls/mshtml/htmlarea.c | 1 + dlls/mshtml/htmlbody.c | 1 + dlls/mshtml/htmlcomment.c | 1 + dlls/mshtml/htmldoc.c | 3 +++ dlls/mshtml/htmlelem.c | 13 +++++++++++ dlls/mshtml/htmlevent.h | 2 ++ dlls/mshtml/htmlform.c | 1 + dlls/mshtml/htmlframe.c | 2 ++ dlls/mshtml/htmlgeneric.c | 1 + dlls/mshtml/htmlhead.c | 4 ++++ dlls/mshtml/htmlimg.c | 40 +++++++++++++++++++++++++++++++- dlls/mshtml/htmlinput.c | 3 +++ dlls/mshtml/htmllink.c | 1 + dlls/mshtml/htmlobject.c | 2 ++ dlls/mshtml/htmlscript.c | 1 + dlls/mshtml/htmlselect.c | 2 ++ dlls/mshtml/htmlstyleelem.c | 1 + dlls/mshtml/htmltable.c | 3 +++ dlls/mshtml/htmltextarea.c | 1 + dlls/mshtml/htmlwindow.c | 1 + dlls/mshtml/mshtml_private.h | 3 +++ dlls/mshtml/nsevents.c | 11 ++++++++- dlls/mshtml/svg.c | 4 ++++ dlls/mshtml/tests/events.c | 54 +++++++++++++++++++++++++++++++++++++++----- 25 files changed, 149 insertions(+), 8 deletions(-)