Bug 1313007 - Remove ExtendableMessageEvent::SetSource, r=qdot

This commit is contained in:
Andrea Marchesini 2016-10-26 22:02:54 +02:00
parent c73c377b2d
commit 65ae873c8a
3 changed files with 1 additions and 17 deletions

View File

@ -1252,18 +1252,6 @@ ExtendableMessageEvent::GetPorts(nsTArray<RefPtr<MessagePort>>& aPorts)
aPorts = mPorts;
}
void
ExtendableMessageEvent::SetSource(ServiceWorkerClient* aClient)
{
mClient = aClient;
}
void
ExtendableMessageEvent::SetSource(ServiceWorker* aServiceWorker)
{
mServiceWorker = aServiceWorker;
}
NS_IMPL_CYCLE_COLLECTION_CLASS(ExtendableMessageEvent)
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(ExtendableMessageEvent, Event)

View File

@ -308,10 +308,6 @@ public:
}
void GetPorts(nsTArray<RefPtr<MessagePort>>& aPorts);
void SetSource(ServiceWorkerClient* aClient);
void SetSource(ServiceWorker* aServiceWorker);
};
END_WORKERS_NAMESPACE

View File

@ -703,6 +703,7 @@ public:
init.mData = messageData;
init.mPorts = ports;
init.mSource.SetValue().SetAsClient() = client;
ErrorResult rv;
extendableEvent = ExtendableMessageEvent::Constructor(
@ -711,7 +712,6 @@ public:
rv.SuppressException();
return false;
}
extendableEvent->SetSource(client);
domEvent = do_QueryObject(extendableEvent);
} else {