mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 824723: Don't fire error events if the worker is shutting down. r=bent
This commit is contained in:
parent
274a68a7bc
commit
0fe5d16d9c
@ -937,9 +937,13 @@ public:
|
||||
bool
|
||||
WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate)
|
||||
{
|
||||
JSObject* target = aWorkerPrivate->IsAcceptingEvents() ?
|
||||
aWorkerPrivate->GetJSObject() :
|
||||
nullptr;
|
||||
// Don't fire this event if the JS object has been disconnected from the
|
||||
// private object.
|
||||
if (!aWorkerPrivate->IsAcceptingEvents()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
JSObject* target = aWorkerPrivate->GetJSObject();
|
||||
|
||||
uint64_t innerWindowId;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user