Bug 956376 - Part 3: Use Debugger.findSources in PromisesActor#attach. r=ochameau
☠☠ backed out by ddd5a54f6a52 ☠ ☠
authorTooru Fujisawa <arai_a@mac.com>
Thu, 23 Aug 2018 09:27:31 +0900
changeset 488062 3e61a2874367c13ba2c5ec361a5633f7da153d45
parent 488061 8169bed1fafcecd6f78077a71af10b37df1af23b
child 488063 1a3bb96c5554ee259ff3099fcb3e8a0b63012268
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs956376
milestone63.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 956376 - Part 3: Use Debugger.findSources in PromisesActor#attach. r=ochameau
devtools/server/actors/promises.js
--- a/devtools/server/actors/promises.js
+++ b/devtools/server/actors/promises.js
@@ -60,18 +60,18 @@ var PromisesActor = protocol.ActorClassW
     this.dbg.addDebuggees();
 
     this._navigationLifetimePool = this._createActorPool();
     this.conn.addActorPool(this._navigationLifetimePool);
 
     this._newPromises = [];
     this._promisesSettled = [];
 
-    this.dbg.findScripts().forEach(s => {
-      this.parentActor.sources.createSourceActors(s.source);
+    this.dbg.findSources().forEach(source => {
+      this.parentActor.sources.createSourceActors(source);
     });
 
     this.dbg.onNewScript = s => {
       this.parentActor.sources.createSourceActors(s.source);
     };
 
     EventEmitter.on(this.parentActor, "window-ready", this._onWindowReady);