Skip to content

[BUG]Another script (tabThumbnailTooltip.uc.js) stopped working in Firefox nightly 136 due to recent changes in Content Security Policy. #110

Description

@kaos-55

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions