Skip to content

Conversation

denrase
Copy link
Collaborator

@denrase denrase commented Sep 23, 2025

📜 Description

Safely access browser navigator.deviceMemory

Looks like the previous approach, where we'd name the extension the same as the original, was never calling the proper extension. Static analyser was throwing a warning, but we have ignored it.

💡 Motivation and Context

Closes #3237

💚 How did you test it?

Running sample

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

Copy link

codecov bot commented Sep 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.96%. Comparing base (819c1e7) to head (b62a943).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3268   +/-   ##
=======================================
  Coverage   87.96%   87.96%           
=======================================
  Files         290      290           
  Lines       10003    10003           
=======================================
  Hits         8799     8799           
  Misses       1204     1204           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Sep 23, 2025

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 468.78 ms 460.30 ms -8.48 ms
Size 13.93 MiB 15.00 MiB 1.06 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
e45c0e1 447.29 ms 558.33 ms 111.04 ms
0fb3800 465.64 ms 536.77 ms 71.13 ms
eca355d 485.50 ms 569.85 ms 84.35 ms
c26ed0a 465.52 ms 476.38 ms 10.86 ms
2cb90b9 479.38 ms 552.69 ms 73.31 ms
81f83eb 471.40 ms 522.14 ms 50.74 ms
192b44c 472.26 ms 477.34 ms 5.08 ms
93b7728 475.28 ms 489.13 ms 13.86 ms
ec78888 457.94 ms 519.96 ms 62.02 ms
7cfbbd6 499.69 ms 592.24 ms 92.55 ms

App size

Revision Plain With Sentry Diff
e45c0e1 6.54 MiB 7.70 MiB 1.16 MiB
0fb3800 6.54 MiB 7.69 MiB 1.15 MiB
eca355d 6.54 MiB 7.70 MiB 1.16 MiB
c26ed0a 13.93 MiB 14.93 MiB 1.00 MiB
2cb90b9 6.54 MiB 7.70 MiB 1.17 MiB
81f83eb 6.54 MiB 7.69 MiB 1.15 MiB
192b44c 13.93 MiB 14.93 MiB 1.00 MiB
93b7728 6.54 MiB 7.69 MiB 1.15 MiB
ec78888 6.54 MiB 7.69 MiB 1.15 MiB
7cfbbd6 6.54 MiB 7.70 MiB 1.17 MiB

Previous results on branch: fix/type-error-null

Startup times

Revision Plain With Sentry Diff
28313fd 454.76 ms 444.10 ms -10.66 ms
0656669 468.20 ms 483.54 ms 15.34 ms

App size

Revision Plain With Sentry Diff
28313fd 13.93 MiB 15.00 MiB 1.06 MiB
0656669 13.93 MiB 15.00 MiB 1.06 MiB

@denrase denrase marked this pull request as ready for review September 23, 2025 09:37
Copy link
Contributor

github-actions bot commented Sep 23, 2025

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1265.94 ms 1264.07 ms -1.87 ms
Size 5.53 MiB 6.00 MiB 479.95 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
eca355d 1238.39 ms 1266.98 ms 28.59 ms
54acf91 1257.65 ms 1277.96 ms 20.31 ms
81f83eb 1259.53 ms 1273.39 ms 13.86 ms
c26ed0a 1244.11 ms 1263.85 ms 19.75 ms
c8596a6 1234.11 ms 1241.19 ms 7.08 ms
dbd526b 1244.78 ms 1259.02 ms 14.24 ms
192b44c 1269.08 ms 1275.52 ms 6.44 ms
79f6b41 1269.33 ms 1279.71 ms 10.38 ms
75284dc 1254.81 ms 1262.28 ms 7.46 ms
de377fd 1252.28 ms 1254.76 ms 2.48 ms

App size

Revision Plain With Sentry Diff
eca355d 7.86 MiB 9.44 MiB 1.58 MiB
54acf91 20.70 MiB 22.46 MiB 1.75 MiB
81f83eb 7.86 MiB 9.44 MiB 1.58 MiB
c26ed0a 5.53 MiB 5.97 MiB 453.76 KiB
c8596a6 7.86 MiB 9.44 MiB 1.58 MiB
dbd526b 7.86 MiB 9.44 MiB 1.58 MiB
192b44c 5.53 MiB 5.96 MiB 444.33 KiB
79f6b41 7.86 MiB 9.44 MiB 1.58 MiB
75284dc 5.53 MiB 5.97 MiB 453.77 KiB
de377fd 20.71 MiB 22.43 MiB 1.73 MiB

Previous results on branch: fix/type-error-null

Startup times

Revision Plain With Sentry Diff
0656669 1257.68 ms 1266.08 ms 8.40 ms
28313fd 1235.63 ms 1224.15 ms -11.49 ms
7bbbaaf 1261.51 ms 1260.41 ms -1.10 ms

App size

Revision Plain With Sentry Diff
0656669 5.53 MiB 6.00 MiB 479.95 KiB
28313fd 5.53 MiB 6.00 MiB 479.96 KiB
7bbbaaf 5.53 MiB 6.00 MiB 479.95 KiB

@denrase
Copy link
Collaborator Author

denrase commented Sep 23, 2025

@stefanosiano One more pls 🙇

@stefanosiano
Copy link
Member

stefanosiano commented Sep 23, 2025

can you also add a test for it, with null memory not crashing (if relatively straightforward)?

@denrase denrase merged commit 8541716 into main Sep 23, 2025
136 checks passed
@denrase denrase deleted the fix/type-error-null branch September 23, 2025 11:48
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.

TypeError: null: type 'Null' is not a subtype of type 'double'
2 participants