New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 695796 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Feb 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Load local source map for remote site

Reported by max.nord...@gmail.com, Feb 24 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Go to your site, typically something in production
2. Open the dev tools, sources panel
3. <Load local source map>

What is the expected behavior?
To be able to load an arbitrary, local source map for any site. Basically be able to debug in production without exposing your source map or use hacks like serving it from a special domain.

What went wrong?
This doesn't exists as far as I know.

Did this work before? No 

Chrome version: 56.0.2924.87  Channel: stable
OS Version: OS X 10.12.3
Flash Version: Shockwave Flash 24.0 r0

All other alternatives I know of require some sort of infrastructure, i.e. server side authentication/authorization of loading the source map. If you put `localhost` as your source map domain, you are just begging for an security exploit.

I think having the ability to use a local file would be the best solution, and could be seen as an extension of the current persistent workspace idea.
 
Status: WontFix (was: Unconfirmed)
This functionality exists, but somewhat hard to find:
1. Open compiled script in sources
2. Right click on script -> Add Sourcemap..
3. paste sourcemap url


add-source-map.png
64.7 KB View Download
Owner: lushnikov@chromium.org
Oh, that's neat but as you said hard to find. Perhaps the real bug here is discovery, and integration with the persistent workspace.

Anyway, thanks this will help a bunch for the awesome tooling <3.

Sign in to add a comment