Skip to content

✨RUM-16635 Add wildcard host pattern matching to WebView event bridge#4703

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 8 commits into
mainfrom
bplasovska/RUM-15826/webview-wildcard-matching
Jun 9, 2026
Merged

✨RUM-16635 Add wildcard host pattern matching to WebView event bridge#4703
gh-worker-dd-mergequeue-cf854d[bot] merged 8 commits into
mainfrom
bplasovska/RUM-15826/webview-wildcard-matching

Conversation

@barboraplasovska

@barboraplasovska barboraplasovska commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Motivation

Part of RUM-15826. iOS SDK counterpart DataDog/dd-sdk-ios#2963.

Changes

Adds a new optional getAllowedWebViewHostPatterns?() method to the DatadogEventBridge interface. When present, canUseEventBridge() uses wildcard pattern matching via plain string operations instead of the legacy exact + subdomain-suffix path.

Invalid patterns (more than one *) produce a display.error console warning so customers see an actionable signal. Old Browser SDK versions receiving wildcard entries from a new mobile SDK will silently ignore them (literal match fails) while plain host entries continue to bridge normally.

Test instructions

CI should pass.

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jun 1, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 44.44%
Overall Coverage: 76.75% (-0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 3e2ecdd | Docs | Datadog PR Page | Give us feedback!

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Jun 1, 2026

Copy link
Copy Markdown

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 171.86 KiB 172.12 KiB +272 B +0.15%
Rum Profiler 7.88 KiB 7.88 KiB 0 B 0.00%
Rum Recorder 21.21 KiB 21.21 KiB 0 B 0.00%
Logs 54.31 KiB 54.57 KiB +259 B +0.47%
Rum Slim 129.69 KiB 129.94 KiB +259 B +0.20%
Worker 22.96 KiB 22.96 KiB 0 B 0.00%

@barboraplasovska barboraplasovska changed the title RUM-15826 Add wildcard host pattern matching to WebView event bridge ✨RUM-15826 Add wildcard host pattern matching to WebView event bridge Jun 1, 2026
@barboraplasovska

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@barboraplasovska
barboraplasovska force-pushed the bplasovska/RUM-15826/webview-wildcard-matching branch from 3884f98 to 6a7e913 Compare June 4, 2026 11:37
@barboraplasovska
barboraplasovska marked this pull request as ready for review June 4, 2026 11:37
@barboraplasovska
barboraplasovska requested a review from a team as a code owner June 4, 2026 11:37
@barboraplasovska barboraplasovska changed the title ✨RUM-15826 Add wildcard host pattern matching to WebView event bridge RUM-16635 Add wildcard host pattern matching to WebView event bridge Jun 4, 2026
@barboraplasovska
barboraplasovska force-pushed the bplasovska/RUM-15826/webview-wildcard-matching branch from 6a7e913 to 5f724c9 Compare June 4, 2026 13:01
Comment thread packages/browser-core/src/transport/eventBridge.ts
@barboraplasovska barboraplasovska changed the title RUM-16635 Add wildcard host pattern matching to WebView event bridge ✨RUM-16635 Add wildcard host pattern matching to WebView event bridge Jun 4, 2026
@barboraplasovska
barboraplasovska requested a review from mormubis June 5, 2026 08:21
Comment thread packages/browser-core/src/transport/eventBridge.spec.ts
Comment thread packages/browser-core/src/transport/eventBridge.ts Outdated
@barboraplasovska
barboraplasovska force-pushed the bplasovska/RUM-15826/webview-wildcard-matching branch from 7a9cd64 to 257b49e Compare June 8, 2026 11:52
@barboraplasovska
barboraplasovska force-pushed the bplasovska/RUM-15826/webview-wildcard-matching branch from 257b49e to 3e2ecdd Compare June 8, 2026 12:07
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 10ce053 into main Jun 9, 2026
31 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the bplasovska/RUM-15826/webview-wildcard-matching branch June 9, 2026 14:30
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants