Bug 1308956 - Get rid of MessagePortList - part 1 - MessagePortList removed from events, r=smaug

This commit is contained in:
Andrea Marchesini
2016-10-13 15:19:24 +02:00
parent 4e496b651a
commit ae47ca23c2
16 changed files with 111 additions and 86 deletions

View File

@@ -150,9 +150,7 @@ PostMessageEvent::Run()
EmptyString(), source, nullptr);
nsTArray<RefPtr<MessagePort>> ports = TakeTransferredPorts();
event->SetPorts(new MessagePortList(static_cast<dom::Event*>(event.get()),
ports));
event->SetPorts(Move(ports));
// We can't simply call dispatchEvent on the window because doing so ends
// up flipping the trusted bit on the event, and we don't want that to