• Alexey Kozyatinskiy's avatar
    [inspector] added V8InspectorClient::resourceNameToUrl · dbfcc487
    Alexey Kozyatinskiy authored
    Some clients (see Node.js) use platform path as ScriptOrigin.
    Reporting platform path in protocol makes using protocol much harder.
    This CL introduced V8InspectorClient::resourceNameToUrl method that
    is called for any reported using protocol url.
    V8Inspector uses url internally as well so protocol client may generate
    pattern for blackboxing with file urls only and does not need to build
    complicated regexp that covers files urls and platform paths on
    different platforms.
    
    R=lushnikov@chromium.org
    TBR=yangguo@chromium.org
    
    Bug: none
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;luci.chromium.try:linux_chromium_rel_ng;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Iff302e7441df922fa5d689fe510f5a9bfd470b9b
    Reviewed-on: https://chromium-review.googlesource.com/1164624
    Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Reviewed-by: 's avatarAlexei Filippov <alph@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#55029}
    dbfcc487
resource-name-to-url.js 1.88 KB