Skip to content

Chrome Extension using @sentry/react gets rejected #15618

@FedorT22

Description

@FedorT22

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

9.5.0

Framework Version

React 18.3.1

Link to Sentry event

No response

Reproduction Example/SDK Setup

  1. Build the project with @sentry feedbackIntegration function using @sentry/browser or @sentry/react. You can follow README.md file in the project.
  2. See in the /dist/sidePanel.js and dist/sidePanel.js.map the piece of code wtih CDN link:

const o=Cn.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=OZ(r,e),e.onLoad&&(o.onload=e.onLoad);

  1. Submit the extension to the Chrome Webstore
  2. Wait for the Chrome Webstore answer

Steps to Reproduce

See #14891 (comment)

For the reference, here is a previous problem related fix:
https://github.com/getsentry/sentry-javascript/releases/tag/8.48.0

Expected Result

Extension is approved by the reviewers.

Actual Result

Extension is rejected by the reviewers
The given reason:

Violation reference ID: [Blue Argon](https://developer.chrome.com/docs/webstore/troubleshooting/#additional-requirements-for-manifest-v3)

Technical Requirements - Additional Requirements for Manifest V3:

Violation:
Including remotely hosted code in a Manifest V3 item.
Violating Content:
Code snippet: sidePanel.js: const o = jt.document.createElement("script"); o.async = !0, o.crossOrigin = "anonymous", o.src = vee(r, e), e.onLoad && (o.onload = e.onLoad);

The current work-around:
Clear up @sentry CDN setup during the build process with a help of patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: reactIssues related to the Sentry React SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions