Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85218

DevTools fail to load external sourcemaps

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.15.0
    • WebEngine
    • None
    • Linux/X11
    • 943d8fea1a5dc5769cd35e18907d970bf9ef30d5

    Description

      DevConsole does not load external source maps, i.e. referenced via `//# sourceMappingURL= `. Chrome works fine with those files. In Falkon I get the following message "DevTools failed to parse SourceMap: <correct and clickable URL>". 

      Source maps do not work unless I include sources in it. So I have to a) create fat source maps with embedded sources and b) include them via data-urls. Chrome needs neither a) nor b) for source maps to work.

      I added a print statement `Common.console.log(e.name + ': ' + e.message);` to the `SourceMapManager.attachSourceMap()` and it prints out: "Error: Could not load content for <a correct sourcemap uri> : HTTP status code: 200". One of my script libs contains a reference to an absent source map file, and the exception for it is the same ("Could not load content...").

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            eugeneshalygin Eugene Shalygin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes