Jacek Caban : mshtml: Ignore preventDefault calls for non-cancelable events.
Alexandre Julliard
julliard at winehq.org
Fri Dec 1 14:08:20 CST 2017
Module: wine
Branch: master
Commit: 8600c2a57394b4d71e465e192b3621154b07c5ce
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8600c2a57394b4d71e465e192b3621154b07c5ce
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Dec 1 17:02:40 2017 +0100
mshtml: Ignore preventDefault calls for non-cancelable events.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlevent.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index a4fa956..01d9753 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -1063,8 +1063,10 @@ static HRESULT WINAPI DOMEvent_preventDefault(IDOMEvent *iface)
TRACE("(%p)\n", This);
- This->prevent_default = TRUE;
- nsIDOMEvent_PreventDefault(This->nsevent);
+ if(This->current_target && This->cancelable) {
+ This->prevent_default = TRUE;
+ nsIDOMEvent_PreventDefault(This->nsevent);
+ }
return S_OK;
}
More information about the wine-cvs
mailing list