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

[BUG] Latest version throws errors/doesn't work #214

Closed
patrickhlauke opened this issue Jul 4, 2024 · 6 comments · Fixed by #215
Closed

[BUG] Latest version throws errors/doesn't work #214

patrickhlauke opened this issue Jul 4, 2024 · 6 comments · Fixed by #215
Assignees

Comments

@patrickhlauke
Copy link

Describe the bug
Not sure if this is a new change in latest version, or some change in Chrome, but the extension stopped working today.

Looking at the extension errors, it complains about

Refused to load the script 'https://code.jquery.com/jquery-3.6.0.min.js' because it violates the following Content Security Policy directive: "script-src 'self'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Refused to load the script 'https://code.jquery.com/jquery-3.6.0.min.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Refused to load the script 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js' because it violates the following Content Security Policy directive: "script-src 'self'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Refused to load the script 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any issue
  2. Observe that the extension does nothing

Expected behavior
For the extension to work...

Screenshots

screenshot showing that the extension is present, but doesn't render anyhing

screenshot of a github issue

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 126.0.6478.127 (Official Build) (64-bit)

Additional context
Add any other context about the problem here.

@johnmurphy01
Copy link
Contributor

Thanks @patrickhlauke . I just got the email that my newest submission to update the extension was rejected for the same reason. I guess when that happened, the Chrome web store decided to also break the live version that is in production that was approved. Thanks Google...

I'll try to work on this today.

@johnmurphy01
Copy link
Contributor

@patrickhlauke I've removed any references to CDNs and instead use the local files in the project. Hopefully this will resolve the issue. I've submitted another version for review

@patrickhlauke
Copy link
Author

The odd thing is, the extension seems/seemed to work for some of my colleagues earlier. Not sure if there's some deeper problem/difference somewhere. But I'll keep my eye on when it updates for me, and see if that solves it.

@patrickhlauke
Copy link
Author

@johnmurphy01 I'm a muppet. I realised just now what the actual problem was: yesterday I opted into GitHub's new "Beta" issue experience. That's what was causing the extension's buttons not to show up (I suspect the underlying structure for issue pages has changed, some id was changed, or similar, so the extension doesn't know where to render)

screenshot of the 'Beta' - Try the new experience notification/button

@johnmurphy01
Copy link
Contributor

That's okay. The newest version I submitted a few days ago was still rejected for the same reason outlined in this issue. So it needed to be fixed anyway.

@patrickhlauke
Copy link
Author

Had a look at trying to make the extension also work/show up in the new (beta) experience #218

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 a pull request may close this issue.

2 participants