DevTools: Enable JS Capability for inspector_main
Presently, the isNodeJS() method uses '===' operator which evaluates to true only for JS Capability. This check fails for inspector_main target as multiple capabilities are set for it. As a result, source maps doesn't get applied for inspector_main because the isNodeJS() check fails and prevents prefixing of "file://" to sourceMapURL as a consequence, leading to the source maps resource not being served. In this patch, we set only the JS Capability for inspector_main if the 'v8only' parameter in the URL is set to true. Bug: 846642 Change-Id: I96a01f3b984bf552c89c873d10f3bf0b5ecd67c8 Reviewed-on: https://chromium-review.googlesource.com/1095064 Commit-Queue: Dmitry Gozman <dgozman@chromium.org> Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#568539}
Showing
Please register or sign in to comment