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

chrome.runtime.getURL introduced in Chrome 130 causing CSP ( content script loader ) #956

Closed
1 of 2 tasks
JoeyDoey opened this issue Dec 5, 2024 · 1 comment
Closed
1 of 2 tasks

Comments

@JoeyDoey
Copy link

JoeyDoey commented Dec 5, 2024

Build tool

Vite

Where do you see the problem?

  • In the browser
  • In the terminal

Describe the bug

  • CRxJS v.2.0.0-beta-28
  • Vite ^5.4.8

Curious if there should also have been an update to the actual content script loader code along with PR #928 https://github.com/crxjs/chrome-extension-tools/pull/928/files#diff-38edcc526cad433b0a47988742b914aadd43cc56903ae94148fafe33f821edfaL20

The content script loader still generates chrome.runtime.getURL....
2 0 0-beta-28-contentProLoader

dist-chrome-content-tsx-loader

chrome-csp-error

Reproduction

  • create new project w/ CRxJS v.2.0.0-beta-28
  • see generated /dist content script loader js

Logs

No response

System Info

System:
    OS: macOS
  Binaries:
    Node: 20.13.0
    bun: 1.0.33
  Browsers:
    Chrome: 131.0.6778.109
  npmPackages:
    vite: ^5.4.8 => 5.4.11

Severity

annoyance

@JoeyDoey
Copy link
Author

JoeyDoey commented Dec 10, 2024

Disregard the above! This issue has actually been fixed in latest crx beta v.2.0.0-beta-28

Just for more info:

I'm using CRX under the hood for Bedframe which i have installed globally on local. Bun aggressively caches installs such that running bun add <package>@latest still uses older local installation of package instead of actually installing latest from npm.

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

No branches or pull requests

1 participant