Skip to content

feat: Normalise web-view URLs to app:/// - #43

Merged
timfish merged 2 commits into
masterfrom
tim/normalize-paths
Oct 19, 2026
Merged

timfish merged 2 commits into
masterfrom
tim/normalize-paths

Conversation

@timfish

@timfish timfish commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Tauri serves the web-view from tauri://localhost on macOS, iOS and Linux, from http://tauri.localhost on Windows and Android, and from the dev server URL in development, so one bug gave different frame filenames per platform and split into several issues. This adds a TauriNormalizeUrls integration to defaultOptions that replaces window.location.origin (with or without a trailing slash) with app:/// in stack frames, debug_meta source map images, request.url, transaction names, span descriptions and span URL data, and replay urls. It runs as an event processor, after applyDebugIds and before applyDebugMeta, so debug IDs still match and the debug images get the normalised code_file; there are no Rust changes, and standalone span envelopes and breadcrumbs are not changed. The new test/e2e/normalize-paths.test.ts checks the error, debug ID and transaction scenarios, and the README now explains how to upload source maps with debug IDs or the app:/// URL prefix.

@timfish
timfish force-pushed the tim/normalize-paths branch 2 times, most recently from 58f88af to b68b2b7 Compare October 19, 2026 13:24
@timfish
timfish force-pushed the tim/normalize-paths branch from b68b2b7 to d518513 Compare October 19, 2026 13:39
@timfish
timfish merged commit afcc0a7 into master Oct 19, 2026
8 checks passed
@timfish
timfish deleted the tim/normalize-paths branch November 4, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant