From f0f2a09c5a1027cf7ca7013898e81d6344abd7a6 Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Wed, 5 Oct 2016 16:57:31 +0800 Subject: [PATCH] Bug 1278443 - Part 2: Continue to run the worker even if BackgroundChild fails to create. r=mrbkap MozReview-Commit-ID: LBBN4hfXigf --HG-- extra : rebase_source : f35e75eebf051ec5eb6948bbeb7742a573168602 --- dom/workers/RuntimeService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/workers/RuntimeService.cpp b/dom/workers/RuntimeService.cpp index 8bc6f0c5ac81..fb9b2ec6d854 100644 --- a/dom/workers/RuntimeService.cpp +++ b/dom/workers/RuntimeService.cpp @@ -2808,7 +2808,8 @@ WorkerThreadPrimaryRunnable::Run() // worker messages here. if (NS_WARN_IF(!BackgroundChild::SynchronouslyCreateForCurrentThread())) { // XXX need to fire an error at parent. - return NS_ERROR_UNEXPECTED; + // Failed in creating BackgroundChild: probably in shutdown. Continue to run + // without BackgroundChild created. } class MOZ_STACK_CLASS SetThreadHelper final