CDP: Add column numbers to network initiator objects when possible
When initiator objects are created for parser and script type requests a line number is passed, so that clients can possibly link http requests to locations in source files. For some reasons, only the line number is passed and not the column. This means that for minified files (where all content is on one line) it is impossible to link to the exact location. Furthermore, clients like DevTools which know how to re-format minified files won't be able to link to the right line once a file is re-formatted. The column number is already available in the TextPosition object that is set in FetchInitiatorInfo, so in this change, we just return it to the client too. Corresponding frontend CL: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2444236/ Bug: 1134064 Change-Id: I297924c3a22176309bd0fe4b613f7f1a42163ff6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2442367Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Commit-Queue: Patrick Brosset <patrick.brosset@microsoft.com> Cr-Commit-Position: refs/heads/master@{#814138}
Showing
12 KB