Bug 1310967 - Update MessageEvent to the latest spec, r=smaug

This commit is contained in:
Andrea Marchesini
2016-10-24 17:10:46 +02:00
parent f83033ae45
commit 4e495f34fc
13 changed files with 34 additions and 54 deletions

View File

@@ -147,7 +147,8 @@ PostMessageEvent::Run()
event->InitMessageEvent(nullptr, NS_LITERAL_STRING("message"),
false /*non-bubbling */, false /*cancelable */,
messageData, mCallerOrigin,
EmptyString(), source, nullptr);
EmptyString(), source,
Sequence<OwningNonNull<MessagePort>>());
nsTArray<RefPtr<MessagePort>> ports = TakeTransferredPorts();
event->SetPorts(Move(ports));