mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 20:11:38 +08:00
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>
11 lines
234 B
HTML
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>
|