mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-04-20 14:16:49 +00:00
#399: passive event listener support M1266066
This commit is contained in:
@@ -522,6 +522,14 @@ Event::PreventDefaultInternal(bool aCalledByDefaultHandler)
|
||||
if (!mEvent->mFlags.mCancelable) {
|
||||
return;
|
||||
}
|
||||
if (mEvent->mFlags.mInPassiveListener) {
|
||||
#if DEBUG
|
||||
// XXX: There should be a warning here, but we don't have the string.
|
||||
// https://hg.mozilla.org/mozilla-central/rev/cda76e80a47c
|
||||
fprintf(stderr, "** PreventDefaultInternal called on Passive Listener\n");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
mEvent->mFlags.mDefaultPrevented = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user