Bug 852115 - initEvent should unset defaultPrevented; r=smaug

This commit is contained in:
Aryeh Gregor 2013-03-20 16:15:58 +02:00
parent fbc1011912
commit 32798624fe
3 changed files with 2 additions and 4 deletions

View File

@ -559,6 +559,8 @@ nsDOMEvent::InitEvent(const nsAString& aEventTypeArg, bool aCanBubbleArg, bool a
mEvent->mFlags.mBubbles = aCanBubbleArg;
mEvent->mFlags.mCancelable = aCancelableArg;
mEvent->mFlags.mDefaultPrevented = false;
// Clearing the old targets, so that the event is targeted correctly when
// re-dispatching it.
mEvent->target = nullptr;

View File

@ -17,7 +17,6 @@ MOCHITEST_FILES := \
test_Document-getElementsByTagName.html.json \
test_DocumentType-remove.html.json \
test_Element-remove.html.json \
test_Event-defaultPrevented.html.json \
test_EventTarget-dispatchEvent.html.json \
test_Node-isEqualNode.xhtml.json \
test_NodeFilter-constants.html.json \

View File

@ -1,3 +0,0 @@
{
"initEvent should unset defaultPrevented.": true
}