mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 852115 - initEvent should unset defaultPrevented; r=smaug
This commit is contained in:
parent
fbc1011912
commit
32798624fe
@ -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;
|
||||
|
@ -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 \
|
||||
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"initEvent should unset defaultPrevented.": true
|
||||
}
|
Loading…
Reference in New Issue
Block a user