Bug 956376 - Part 4: Use Debugger.findSources in PromisesActor#attach. r=ochameau
☠☠ backed out by 9c13dbdf4cc9 ☠ ☠
authorTooru Fujisawa <arai_a@mac.com>
Thu, 23 Aug 2018 09:27:31 +0900
changeset 481753 9cb7826b8f28a91d0c3e0034c4a645f08d371885
parent 481752 37f94ae472d60f1004844c09146c9eb3b3522055
child 481754 c09a146819d3a65127cee966b326efa9ee8ea4aa
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersochameau
bugs956376
milestone63.0a1
Bug 956376 - Part 4: 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);