Bug 1630802 - P4. Remove unused member. r=bholley

It lead the AbstractThread's assumption that there can only be one active per thread be invalid.

Differential Revision: https://phabricator.services.mozilla.com/D71441
This commit is contained in:
Jean-Yves Avenard 2020-04-21 03:08:55 +00:00
parent 61ac17fa16
commit fe4218a373
2 changed files with 2 additions and 5 deletions

View File

@ -24,7 +24,6 @@
#include "jsfriendapi.h"
#include "js/ContextOptions.h"
#include "js/LocaleSensitive.h"
#include "mozilla/AbstractThread.h"
#include "mozilla/ArrayUtils.h"
#include "mozilla/Atomics.h"
#include "mozilla/Attributes.h"
@ -2229,13 +2228,10 @@ WorkerThreadPrimaryRunnable::Run() {
class MOZ_STACK_CLASS SetThreadHelper final {
// Raw pointer: this class is on the stack.
WorkerPrivate* mWorkerPrivate;
RefPtr<AbstractThread> mAbstractThread;
public:
SetThreadHelper(WorkerPrivate* aWorkerPrivate, WorkerThread* aThread)
: mWorkerPrivate(aWorkerPrivate),
mAbstractThread(AbstractThread::CreateXPCOMThreadWrapper(
NS_GetCurrentThread(), false)) {
: mWorkerPrivate(aWorkerPrivate) {
MOZ_ASSERT(aWorkerPrivate);
MOZ_ASSERT(aThread);

View File

@ -8,6 +8,7 @@
#include "mozilla/dom/MessageEvent.h"
#include "mozilla/dom/MessageEventBinding.h"
#include "mozilla/AbstractThread.h"
#include "mozilla/PerformanceUtils.h"
#include "nsProxyRelease.h"
#include "nsQueryObject.h"