DevTools/Features/SourceMap: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{FeatureStatus
{{FeatureStatus
|Feature name=SourceMap
|Feature name=SourceMap
|Feature stage=Development
|Feature stage=Landed
|Feature health=Blocked
|Feature status=In progress
|Feature status note=Work has gotten to a demoable state. Needs to be picked up and finished.
|Feature version=23
|Feature health=OK
|Feature status note=Initial support landed in Firefox 23. Improvements coming down the pipe as always.
}}
}}
{{FeatureTeam
{{FeatureTeam
|Feature product manager=Kevin Dangoor
|Feature feature manager=Dave Camp
|Feature feature manager=Dave Camp
|Feature lead engineer=Nick Fitzgerald
|Feature lead engineer=Nick Fitzgerald
Line 12: Line 13:
}}
}}
{{FeaturePageBody
{{FeaturePageBody
|Feature open issues and risks=Nick Fitzgerald is an intern and primary developer of this feature. He has gone back to school.
|Feature overview=Nearly every web developer starts with JavaScript in one form during development and then produces JavaScript in another form for production use. Most often, this is a case of joining files together and minifying the output to reduce the number of requests the browser needs to make and how much data the browser needs to transfer. Another example of JavaScript starting in one form and ending up in the final form used by the browser is in PHP scripts which will sometimes generate bits of JavaScript as they generate their pages.
|Feature overview=Nearly every web developer starts with JavaScript in one form during development and then produces JavaScript in another form for production use. Most often, this is a case of joining files together and minifying the output to reduce the number of requests the browser needs to make and how much data the browser needs to transfer. Another example of JavaScript starting in one form and ending up in the final form used by the browser is in PHP scripts which will sometimes generate bits of JavaScript as they generate their pages.


Line 66: Line 66:
When an error is first generated, the source maps have not yet been loaded. That means that the Web Console cannot immediately display the mapped error info. Once an error is hit, however, the map should be loaded and the error message should be updated as soon as possible to contain the mapped info.
When an error is first generated, the source maps have not yet been loaded. That means that the Web Console cannot immediately display the mapped error info. Once an error is hit, however, the map should be loaded and the error message should be updated as soon as possible to contain the mapped info.
|Feature ux design=[[File:SourceMapInConsole.png|Source mapped output in the Web Console]]
|Feature ux design=[[File:SourceMapInConsole.png|Source mapped output in the Web Console]]
|Feature implementation notes=TBD (status page link)
|Feature implementation notes=* {{bug|771597}} - Source maps + debugger meta bug


* {{bug|669999}} - Add a library for parsing and consuming source map files to Firefox
[https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit The source map file format specification]
 
* {{bug|670002}} - Use source maps in the web console
 
* {{bug|679189}} - Allow eval'd or script tag injected scripts which have no source URL to be source mapped
 
* {{bug|568142}} - Add column information to be available to debuggers.
 
* {{bug|618650}} - map JS source coordinates to source language that was translated to JS
 
 
[https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit The source map file format spec originally proposed by Google]. I (fitzgen) have edit permissions and am working with them on making something we can all agree upon.
 
This feature is related to the [[Script_Origin_Tracking|Script Origin Tracking proposal]], because the mapping should be able to accommodate the many ways in which JavaScript can come into existence on a page.
 
* A [https://bugs.webkit.org/show_bug.cgi?id=60550 bug with a patch] was opened for WebKit but closed INVALID.
** Webkit has [https://bugs.webkit.org/show_bug.cgi?id=30933 another bug] open for this feature.
** A new [https://bugs.webkit.org/show_bug.cgi?id=63940 bug with a patch] was opened.
}}
}}
{{FeatureInfo
{{FeatureInfo
|Feature priority=P3
|Feature priority=P3
|Feature rank=6
|Feature rank=3
|Feature roadmap=Developer Tools
|Feature roadmap=Developer Tools
|Feature list=Desktop
|Feature list=Desktop
Confirmed users
125

edits