Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Using SourceMap/X-SourceMap HTTP header

91 views
Skip to first unread message

John Lenz

unread,
Feb 3, 2015, 11:16:17 AM2/3/15
to Bryce Cronkite-Ratcliff, Nick Fitzgerald, dev-js-s...@lists.mozilla.org
Nick does FF support the header?

On Thu, Jan 22, 2015 at 3:47 PM, Bryce Cronkite-Ratcliff <bry...@gmail.com>
wrote:

> Hi folks,
>
> I'm trying to use the http header to set the location of the sourcemaps for
> code I am serving.
>
> Neither firefox (developer edition 37) or chrome (v40) are responding to
> the requests, as in, I see no network activity in the network tabs of each
> browser's respective devtools that is attempting to fetch the sourcemaps.
>
> I've tried setting SourceMap, X-SourceMap, and both together, setting as
> the header value either an absolute URL or script-origin relative URI. I
> have also tried changing the content-type of the response from
> application/json to text/javascript to application/javascript and
> application/x-javascript .
>
> The //# sourceMappingUrl comment works as advertised and I see sourcemaps
> retrieved right and left as well as related network requests.
>
> I would prefer to use the HTTP header but I am not sure how to proceed.
>
> Thank you!
> _______________________________________________
> dev-js-sourcemap mailing list
> dev-js-s...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-js-sourcemap
>

Nick Fitzgerald

unread,
Feb 3, 2015, 11:59:44 AM2/3/15
to John Lenz, Bryce Cronkite-Ratcliff, dev-js-s...@lists.mozilla.org
Yes, it has since Firefox 27:
https://bugzilla.mozilla.org/show_bug.cgi?id=765993

Bryce, if you have a test case that reproduces the issue, please file a
bug:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Developer%20Tools%3A%20Debugger

Nick Fitzgerald

unread,
Feb 3, 2015, 12:01:00 PM2/3/15
to John Lenz, Bryce Cronkite-Ratcliff, dev-js-s...@lists.mozilla.org, Eddy Bruel
+Eddy, who implemented support for the SourceMap header.

On Tue, Feb 3, 2015 at 8:59 AM, Nick Fitzgerald <nfitz...@mozilla.com>
wrote:
0 new messages