[Webkit-unassigned] [Bug 156021] New: Web Inspector: sourceMappingURL not used when sourceURL is set

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 30 04:59:54 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=156021

            Bug ID: 156021
           Summary: Web Inspector: sourceMappingURL not used when
                    sourceURL is set
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Macintosh
                OS: OS X 10.11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: eelco at motif.co
                CC: bburg at apple.com, graouts at webkit.org,
                    joepeck at webkit.org, mattbaker at apple.com,
                    nvasilyev at apple.com, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

Created attachment 275193
  --> https://bugs.webkit.org/attachment.cgi?id=275193&action=review
Example to reproduce the bug.

If both `sourceURL` and `sourceMappingURL` are set in a script, the mapping is not used.

To reproduce:
- Unzip the attached project.
- Host it by executing 'python -m SimpleHTTPServer 1234'
- Go to http://0.0.0.0:1234
- Open the Web Inspector Console (option-cmd-C)
- Look at the first error

Observed:
- The error is reported as originating from app.js:3

Expected:
- The error is reported as originating from app.coffee:1

Notes:
While adding `sourceURL` in this case is not necessary (the script was not generated), it should also not break the source mapping.  Removing the `sourceURL` from `app.js` will lead to the expected behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160330/7edd060e/attachment.html>


More information about the webkit-unassigned mailing list