From bc497a5fcfeee9606096d49b8e0e5a195f83f28f Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Thu, 13 Aug 2026 14:56:33 -0500 Subject: [PATCH] fix(web): adjust sourcemap linking pattern used for error reporting within mobile apps Fixes: #16367 Build-bot: skip build:web release:android release:ios Test-bot: skip --- common/web/sentry-manager/src/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/web/sentry-manager/src/index.ts b/common/web/sentry-manager/src/index.ts index 92085e7869..a87694e4e0 100644 --- a/common/web/sentry-manager/src/index.ts +++ b/common/web/sentry-manager/src/index.ts @@ -42,8 +42,19 @@ export class KeymanSentryManager { switch(location.protocol) { case 'http:': return 'http://' + location.host + '/' + filename; + case 'https:': + // Keyman for Android uses https://appassets.androidplatform.net + // to point to local files. See #16146. + if(this.keymanPlatform == 'android') { + return 'file:///' + filename; + } else { + return 'https://' + location.host + '/' + filename; + } case 'file:': return 'file:///' + filename; + // Used within the iOS Keyman engine. See #16136. + case 'keyman-engine:': + return 'file:///' + filename; default: return null; }