Files
react-native-devtools-frontend/test/e2e/resources/sources/worker-relative-sourcemap.html
T
Jaroslav Sevcik 6e877d5e1a Fix handling of relative source map paths for workers
We set the parent URL on child targets (such as workers) so that
sourceURL and sourceMappingURL are resolved relative to the
frame URL. We also add a test that checks that the source-mapped
file appears in the Source/Page pane.

Bug: chromium:1277002
Change-Id: I107b21d806420c98f39344bdf5902072fd398da0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3342111
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
2021-12-20 11:19:13 +00:00

11 lines
234 B
HTML

<body>
<script>
const worker1 = new Worker("data:application/javascript;base64," + btoa(`
console.log("Worker");
//# sourceMappingURL=worker-relative-sourcemap.js.map
//# sourceURL=worker-relative-sourcemap.js
`));
</script>
</body>