Bug 1264291 - initEvent must unset the stop propagation flag; r=smaug

Tests upstream <https://github.com/w3c/web-platform-tests/pull/3472>.
This commit is contained in:
Aryeh Gregor 2016-08-18 16:37:26 +03:00
Родитель ffe70cba70
Коммит d41a879b6a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -598,6 +598,8 @@ Event::InitEvent(const nsAString& aEventTypeArg,
mEvent->mFlags.mDefaultPrevented = false;
mEvent->mFlags.mDefaultPreventedByContent = false;
mEvent->mFlags.mDefaultPreventedByChrome = false;
mEvent->mFlags.mPropagationStopped = false;
mEvent->mFlags.mImmediatePropagationStopped = false;
// Clearing the old targets, so that the event is targeted correctly when
// re-dispatching it.