зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1546331 - Missing call to WaitForIsDebuggerRegistered r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D52139 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
b7c55f9282
Коммит
c2e2e5965d
|
@ -1468,6 +1468,12 @@ void WorkerPrivate::EnableDebugger() {
|
|||
void WorkerPrivate::DisableDebugger() {
|
||||
AssertIsOnParentThread();
|
||||
|
||||
// RegisterDebuggerMainThreadRunnable might be dispatched but not executed.
|
||||
// Wait for its execution before unregistraion.
|
||||
if (!NS_IsMainThread()) {
|
||||
WaitForIsDebuggerRegistered(true);
|
||||
}
|
||||
|
||||
if (NS_FAILED(UnregisterWorkerDebugger(this))) {
|
||||
NS_WARNING("Failed to unregister worker debugger!");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче