Bug 1456907 - Report correct file name of modules requiring modules with a wrong path. r=jryans draft
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 25 Apr 2018 09:17:17 -0700
changeset 787907 6cb7873ddd4d304ba683bd8b732e6a0bbe2ee16d
parent 786343 378a8a64401f765bfd0706ff678a4f5db7c05385
push id107834
push userbmo:poirot.alex@gmail.com
push dateWed, 25 Apr 2018 16:18:47 +0000
reviewersjryans
bugs1456907
milestone61.0a1
Bug 1456907 - Report correct file name of modules requiring modules with a wrong path. r=jryans MozReview-Commit-ID: E8UuQ06eMJn
devtools/shared/base-loader.js
--- a/devtools/shared/base-loader.js
+++ b/devtools/shared/base-loader.js
@@ -49,17 +49,17 @@ function isRelative(id) {
   return id.startsWith(".");
 }
 
 function sourceURI(uri) {
   return String(uri).split(" -> ").pop();
 }
 
 function isntLoaderFrame(frame) {
-  return frame.fileName !== __URI__;
+  return frame.fileName !== __URI__ && !frame.fileName.endsWith("/browser-loader.js");
 }
 
 function parseURI(uri) {
   return String(uri).split(" -> ").pop();
 }
 
 function parseStack(stack) {
   let lines = String(stack).split("\n");