Bug 1286390 - Add sourceMapURL to source actor form. r=jlongster
authorJason Laster <jlaster@mozilla.com>
Tue, 12 Jul 2016 14:40:00 -0400
changeset 388633 25d022b355beb807a9fdf0a2bb0c768f3dd207c1
parent 388397 2f9e69c982f1e67887a1834b36ff0af4ababb3af
child 388634 c49f826bb58e489d9276f4d4fc8152bbc13919a3
push id23215
push userluca.greco@alcacoop.it
push dateSat, 16 Jul 2016 20:37:12 +0000
reviewersjlongster
bugs1286390
milestone50.0a1
Bug 1286390 - Add sourceMapURL to source actor form. r=jlongster
devtools/server/actors/source.js
--- a/devtools/server/actors/source.js
+++ b/devtools/server/actors/source.js
@@ -216,16 +216,17 @@ let SourceActor = ActorClassWithSpec(sou
       actor: this.actorID,
       generatedUrl: this.generatedSource ? this.generatedSource.url : null,
       url: this.url ? this.url.split(" -> ").pop() : null,
       addonID: this._addonID,
       addonPath: this._addonPath,
       isBlackBoxed: this.threadActor.sources.isBlackBoxed(this.url),
       isPrettyPrinted: this.threadActor.sources.isPrettyPrinted(this.url),
       isSourceMapped: this.isSourceMapped,
+      sourceMapURL: source ? source.sourceMapURL : null,
       introductionUrl: introductionUrl ? introductionUrl.split(" -> ").pop() : null,
       introductionType: source ? source.introductionType : null
     };
   },
 
   disconnect: function () {
     if (this.registeredPool && this.registeredPool.sourceActors) {
       delete this.registeredPool.sourceActors[this.actorID];