Mojo JS bindings: convert relative path to URL properly.

BUG=699569
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:mac_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2930423002
Cr-Commit-Position: refs/heads/master@{#479006}
7 files changed