Bug 1209559 - "Figure out why opening a toolbox on certain workers works only once.". r=janx
authorEddy Bruel <ejpbruel>
Tue, 23 Feb 2016 05:03:00 +0100
changeset 321915 585bca5e6a8d854f80daef37df7e648862c9c7ab
parent 321914 8ce7a3436936ed07c42de816f2a824b98559fb62
child 321916 2893ca049d37efe2b8ffa44adf359d4d18b64be4
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjanx
bugs1209559
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1209559 - "Figure out why opening a toolbox on certain workers works only once.". r=janx
devtools/shared/client/main.js
--- a/devtools/shared/client/main.js
+++ b/devtools/shared/client/main.js
@@ -1411,16 +1411,19 @@ WorkerClient.prototype = {
   },
 
   get isClosed() {
     return this._isClosed;
   },
 
   detach: DebuggerClient.requester({ type: "detach" }, {
     after: function (aResponse) {
+      if (this.thread) {
+        this.client.unregisterClient(this.thread);
+      }
       this.client.unregisterClient(this);
       return aResponse;
     },
 
     telemetry: "WORKERDETACH"
   }),
 
   attachThread: function(aOptions = {}, aOnResponse = noop) {