Closed Bug 1128766 Opened 9 years ago Closed 7 years ago

Source maps fail to load on absolute URLs

Categories

(DevTools :: Debugger, defect, P2)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: azakai, Assigned: tromey)

References

(Blocks 2 open bugs)

Details

I have a source map with absolute paths, containing

{"version":3,"file":"bar.html","sources":["/media/alon/2f9a30d7-6124-42d9-87c5-3c80cb70ec54/home/alon/Downloads/temp/23/source-map-test/bar/src/bar.cpp","/media/alon/2f9a30d7-6124-42d9-87c5-3c80cb70ec54/home/alon/Downloads/temp/23/source-map-test/libfoo/src/foo.cpp"],"names":[],"mappings":";;;

etc. It loads ok in chrome, I can see both foo.cpp and bar.cpp, however in firefox all I see is

Error loading source:
loadSourceError

when I select either of those sources.

(I can provide the testcase files if that would help, but as the files are at absolute paths, it won't work out of the box...)
Care to open the browser console and post the error message details that are there?
Flags: needinfo?(nobody)
Ah nice, there's a stack trace there!

Got an exception during SA_onSource: "http://localhost:8000/media/alon/2f9a30d7-6124-42d9-87c5-3c80cb70ec54/home/alon/Downloads/temp/23/source-map-test/libfoo/src/foo.cpp" is not in the SourceMap.:
SourceMapConsumer_sourceContentFor@resource://gre/modules/devtools/SourceMap.jsm:433:13
SourceActor.prototype._getSourceText/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/script.js:2380:24
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:37
 script.js:5805:0
Error loading source:
loadSourceError debugger-view.js:431:0
Flags: needinfo?(nobody) → needinfo?(azakai)
(Sorry for bugspam)
Flags: needinfo?(azakai)
Blocks: source-maps
Priority: -- → P2
I made a test case that has absolute paths in the .map file, and it worked for me.
I'm using a recent artifact build, in particular one using the client-side source map
service, hooked up to the debugger and console.

Do you have some public test case I could try?  That might help.
I'm inclined to say this is fixed, but I wanted to check with you first.
If you could try nightly, perhaps, that would be helpful as well.
Assignee: nobody → ttromey
Flags: needinfo?(azakai)
Hmm, this is a while ago and I don't remember how I generated or received that testcase. Since a similar testcase worked for you, seems safe to assume this has been fixed.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(azakai)
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.