Bug 1288031 - CloseHandlerStarted() is called wrongly in WorkerPrivate, r=khuey

This commit is contained in:
Andrea Marchesini 2016-07-21 09:18:32 +02:00
Родитель f7d06c7a06
Коммит 05637a1bd9
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -605,7 +605,9 @@ class CloseEventRunnable final : public WorkerRunnable
public:
explicit CloseEventRunnable(WorkerPrivate* aWorkerPrivate)
: WorkerRunnable(aWorkerPrivate, WorkerThreadUnchangedBusyCount)
{ }
{
aWorkerPrivate->CloseHandlerStarted();
}
private:
virtual bool
@ -623,8 +625,6 @@ private:
virtual bool
WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override
{
aWorkerPrivate->CloseHandlerStarted();
WorkerGlobalScope* globalScope = aWorkerPrivate->GlobalScope();
RefPtr<Event> event = NS_NewDOMEvent(globalScope, nullptr, nullptr);