Bug 145150

Summary: Web Inspector: Support for source maps in remote debugging of JSContext
Product: WebKit Reporter: Robert Payne <robertpayne>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: blake.friedman, graouts, inspector-bugzilla-changes, jonowells, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: All   
Bug Depends on: 154303    
Bug Blocks:    

Description Robert Payne 2015-05-18 16:50:22 PDT
If one uses the remote debugger to debug a JSContext instance on an iOS device or simulator source maps do not work.

Reproduction Steps:

1. Start up a simple iOS application in the simulator that creates a JSContext and loads a script with source maps
2. Connect via WebKit remote debugging to the JSContext

Observed Results:

Source maps are not loaded and digested into the web inspector

Expected Results:

Source maps should be loaded and digested into the web inspector

-----------------------------------------

It appears that NetworkAgent.loadResource and Promise are not available to JSContext and thus the source map loading is skipped.
Comment 1 Radar WebKit Bug Importer 2015-05-18 16:50:49 PDT
<rdar://problem/21009604>
Comment 2 Joseph Pecoraro 2015-05-18 17:00:40 PDT
<rdar://problem/17826429>
Comment 3 Joseph Pecoraro 2016-02-16 11:58:10 PST
As a first step, we will at least allow inline SourceMaps (a data uri sourceMappingURL which contains inline source via the `sourcesContent` list). I have a patch up for that on:
<https://webkit.org/b/154303> JSContext Inspector: Support for inline source maps

Lets keep this for tracking loading a Source Map over the network, which still does not exist yet.