Bug 1224061 followup to fix bustage. r=me on a CLOSED TREE IGNORE IDL

This commit is contained in:
Kyle Huey 2015-11-13 09:23:59 +08:00
parent 13d023fa6b
commit c9773e9cc2
2 changed files with 2 additions and 6 deletions

View File

@ -161,7 +161,7 @@ interface nsIDOMEvent : nsISupports
* @param cancelableArg Specifies whether or not the event's default
* action can be prevented.
*/
[notxpcom]
[notxpcom,nostdcall]
void initEvent(in DOMString eventTypeArg,
in boolean canBubbleArg,
in boolean cancelableArg);

View File

@ -1046,11 +1046,7 @@ ExtendableMessageEvent::Constructor(mozilla::dom::EventTarget* aEventTarget,
{
RefPtr<ExtendableMessageEvent> event = new ExtendableMessageEvent(aEventTarget);
aRv = event->InitEvent(aType, aOptions.mBubbles, aOptions.mCancelable);
if (NS_WARN_IF(aRv.Failed())) {
return nullptr;
}
event->InitEvent(aType, aOptions.mBubbles, aOptions.mCancelable);
bool trusted = event->Init(aEventTarget);
event->SetTrusted(trusted);