Skip to content

fetch doesn't show up in breadcrumbs if user has LastPass' Chrome extension installed #1601

Closed
@teeberg

Description

@teeberg

Package + Version

I'm using sentry-javascript 4.0.6 from the CDN.

Description

I am currently trying to migrate to sentry-javascript and noticed during the migration that the fetch breadcrumbs disappeared. It looks like #1520 stopped logging them if fetch was detected to be replaced.

Disabling my extensions one by one, I found that the LastPass Chrome extension seems to replace window.fetch but still ends up calling the native .fetch(), even though the check from #1520 fails now, since window.fetch.toString(), with lastpass installed, returns:

function(t,n){var o=r(n),u=e.apply(this,arguments);if(o){var c=function(t){s({requestID:o,statusCode:t&&t.status})};u.then(c).catch(c)}return u}

i.e. does not include "native". So now, fetch doesn't show up in the breadcrumbs anymore at all. Turning off LastPass makes them be captured, judging by them appearing in the UI.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions