[devtools] Resolve less uiLocations to non-existent CSS/script locations
Both Bindings.cssWorkspaceBinding.uiLocationToRawLocations and well as Bindings.debuggerWorkspaceBinding.uiLocationToRawLocations resolve locations to non-existing CSS and Script locations. This patch fixes Bindings.debuggerWorkspaceBinding.uiLocationToRawLocations to not do this anymore, and hacks Bindings.cssWorkspaceBinding.uiLocationToRawLocations to not do it for formatted sources anymore. For the ultimate fix, we need to get the end position for inline CSS from the back-end. This will allow us to clean-up the hack as well. The significance of this change is that it enables precise coverage gutters for inline CSS and inline scripts. Bug: chromium:1004203, chromium:1005708, chromium:1005789 Change-Id: Ieadb2aef7e610ecec35e28f5f1cc4516a28a0780 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1814299 Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#698431}
Showing
Please register or sign in to comment