mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1313007 - Remove ExtendableMessageEvent::SetSource, r=qdot
This commit is contained in:
parent
c73c377b2d
commit
65ae873c8a
@ -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)
|
||||
|
@ -308,10 +308,6 @@ public:
|
||||
}
|
||||
|
||||
void GetPorts(nsTArray<RefPtr<MessagePort>>& aPorts);
|
||||
|
||||
void SetSource(ServiceWorkerClient* aClient);
|
||||
|
||||
void SetSource(ServiceWorker* aServiceWorker);
|
||||
};
|
||||
|
||||
END_WORKERS_NAMESPACE
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user