Skip to content

Conversation

@thomas-lebeau
Copy link
Collaborator

@thomas-lebeau thomas-lebeau commented Oct 1, 2025

Motivation

Prevent browser extensions to inadvertently inject the SDK in the main realm of a page.

Changes

  • Stops the sdk when injected from extension without configuring allowedTrackingOrigin
  • Configure allowedTrackingOrigin in our developer extension when overriding the init configuration

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.

@cit-pr-commenter
Copy link

cit-pr-commenter bot commented Oct 1, 2025

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 161.81 KiB 161.61 KiB -202 B -0.12%
Rum Recorder 19.43 KiB 19.43 KiB 0 B 0.00%
Rum Profiler 5.32 KiB 5.32 KiB 0 B 0.00%
Logs 56.06 KiB 55.86 KiB -196 B -0.34%
Flagging 944 B 944 B 0 B 0.00%
Rum Slim 119.44 KiB 119.25 KiB -196 B -0.16%
Worker 23.60 KiB 23.60 KiB 0 B 0.00%
🚀 CPU Performance
Action Name Base CPU Time (ms) Local CPU Time (ms) 𝚫%
RUM - add global context 0.0078 0.0039 -50.00%
RUM - add action 0.0266 0.0117 -56.02%
RUM - add error 0.0211 0.011 -47.87%
RUM - add timing 0.0054 0.0025 -53.70%
RUM - start view 0.0069 0.003 -56.52%
RUM - start/stop session replay recording 0.0013 0.0006 -53.85%
Logs - log message 0.0259 0.0133 -48.65%
🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 25.64 KiB 25.11 KiB -538 B
RUM - add action 43.05 KiB 45.59 KiB +2.54 KiB
RUM - add timing 25.72 KiB 25.56 KiB -162 B
RUM - add error 48.81 KiB 51.10 KiB +2.29 KiB
RUM - start/stop session replay recording 24.66 KiB 24.24 KiB -435 B
RUM - start view 421.80 KiB 428.44 KiB +6.64 KiB
Logs - log message 41.64 KiB 41.63 KiB -7 B

🔗 RealWorld

@datadog-official
Copy link

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 92.50% (-0.01%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1c201db | Docs | Was this helpful? Give us feedback!

@thomas-lebeau thomas-lebeau marked this pull request as ready for review October 3, 2025 06:19
@thomas-lebeau thomas-lebeau requested a review from a team as a code owner October 3, 2025 06:19
@thomas-lebeau thomas-lebeau merged commit 85989fb into main Oct 6, 2025
21 checks passed
@thomas-lebeau thomas-lebeau deleted the thomas.lebeau/enforce-allowed-tracking-origin branch October 6, 2025 07:30
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.

4 participants