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]Another script (tabThumbnailTooltip.uc.js) stopped working in Firefox nightly 136 due to recent changes in Content Security Policy. #110

Open
kaos-55 opened this issue Jan 18, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kaos-55
Copy link
Contributor

kaos-55 commented Jan 18, 2025

Link to the file containing the bug
https://github.com/aminomancer/uc.css.js/blob/master/JS/tabThumbnailTooltip.uc.js

Describe the bug
Annoying again, but another one of the scripts I use has stopped working due to the changes implemented in Nightly 136 regarding the Content Security Policy.

To Reproduce
Steps to reproduce the behavior:

  1. Install Firefox nightly 136a1
  2. Install tabThumbnailTooltip.uc.js
  3. The tab thumbnail does not appear

Expected behavior
The tab thumbnail appears when installing the script.

Screenshots
This is what the browser console displays
Image

Desktop (please complete the following information):

  • OS: Winwdos 10
  • Firefox update channel: Nightly
  • Version: 136.a.1
  • Build ID: 20250118

Additional context
It seems that the problem is in line 98 of the script due to a csp violation which blocks the event handlers. Reading in the documentation I found that to avoid that violation you must replace the inline event handlers with addEventListener calls, I tried to fix it by rewriting the line with addEventListener but it didn't work, I don't know how to call MozXULElement.parseXULToFragment with addEventListener and then add it to the DOM using appendChild.

@kaos-55 kaos-55 added the bug Something isn't working label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants