Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent a crash when XMLHttpRequest data goes missing #1564

Merged
merged 2 commits into from
Nov 3, 2021

Conversation

imjoehaines
Copy link
Contributor

Goal

This fixes the crash reported in #1561, though this means the network breadcrumb plugin is in a broken state — the data attached to the XMLHttpRequest has been removed and therefore we can't leave network breadcrumbs if this happens

@github-actions
Copy link

github-actions bot commented Nov 3, 2021

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 41.24 kB 12.71 kB
After 41.54 kB 12.79 kB
± ⚠️ +301 bytes ⚠️ +75 bytes

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-network-breadcrumbs/network-breadcrumbs.js 98.75%
(+0.1%)
89.58%
(+0.94%)
100%
(+0%)
98.81%
(+0.09%)

Total:

Lines Branches Functions Statements
82.53%(+0.03%) 71.94%(+0.06%) 83.57%(+0%) 81.51%(+0.02%)

Generated by 🚫 dangerJS against 034502f

Copy link
Contributor

@djskinner djskinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how peculiar

@imjoehaines imjoehaines merged commit 2503f32 into next Nov 3, 2021
@imjoehaines imjoehaines deleted the fix-error-in-network-breadcrumbs branch November 3, 2021 17:43
@imjoehaines imjoehaines mentioned this pull request Nov 8, 2021
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.

3 participants