Bug 1411520 - nsMultiplexInputStream must use CancelableRunnable because it can be used in workers, r=bkelly

This commit is contained in:
Andrea Marchesini 2017-10-25 20:18:58 +02:00
Родитель afc0471f35
Коммит acd3aaaa13
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -729,13 +729,13 @@ nsMultiplexInputStream::CloseWithStatus(nsresult aStatus)
// This class is used to inform nsMultiplexInputStream that it's time to execute
// the asyncWait callback.
class AsyncWaitRunnable final : public Runnable
class AsyncWaitRunnable final : public CancelableRunnable
{
RefPtr<nsMultiplexInputStream> mStream;
public:
explicit AsyncWaitRunnable(nsMultiplexInputStream* aStream)
: Runnable("AsyncWaitRunnable")
: CancelableRunnable("AsyncWaitRunnable")
, mStream(aStream)
{
MOZ_ASSERT(aStream);