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

Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment. #621

Closed
codehz opened this issue Sep 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working complete Use this label for a feature/bug issue that is complete but not released yet released

Comments

@codehz
Copy link

codehz commented Sep 27, 2024

Describe the bug
There are some suspicious errors in the developer tools

To Reproduce
Steps to reproduce the behavior:

  1. In Chrome/Chromium-based browser
  2. Open DevTools

Unhandled rejection: TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.

Expected behavior
I don't think it is normal behavior, but I can't know what is broken...

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser [e.g. chrome, safari] Arc (Chromium Engine Version 129.0.6668.59)
  • Version [e.g. 22]

Additional context
Seems related to https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API
I think it is possible to just bypass those like this userscript: https://greasyfork.org/zh-CN/scripts/433051-trusted-types-helper/code

@VampireChicken12
Copy link
Member

@codehz Thank you for reporting the issue. I have known about this for a while it has to do with the hide scrollbar feature. I'm going to fix it eventually.

@VampireChicken12 VampireChicken12 added the bug Something isn't working label Sep 27, 2024
@VampireChicken12 VampireChicken12 self-assigned this Sep 27, 2024
@VampireChicken12 VampireChicken12 moved this from Todo to Done in YouTube Enhancer Sep 27, 2024
@VampireChicken12 VampireChicken12 closed this as completed by moving to Done in YouTube Enhancer Sep 27, 2024
github-actions bot pushed a commit that referenced this issue Oct 13, 2024
# [1.27.0](v1.26.0...v1.27.0) (2024-10-13)

### Bug Fixes

* add missing function call ([fb3fdfd](fb3fdfd))
* Add shadow around on screen display to improve visibility [#591](#591) ([4a54256](4a54256))
* disable playback speed buttons when live ([585adc9](585adc9))
* **eslint:** migrate to flat config ([9a086ad](9a086ad))
* Features being enabled multiple times ([f758184](f758184))
* features not working on '/live' page ([3759d7f](3759d7f))
* **hide scrollbar:** Failed to set the 'innerHTML' property on 'Element' [#621](#621) ([74a46b5](74a46b5))
* **hide translate comment:** comment replies showed translate button [#471](#471) ([82a8104](82a8104))
* Make speed limit higher [#637](#637) ([35bcd4f](35bcd4f))
* playback speed buttons tooltip ([394b59f](394b59f))
* **playback speed buttons:** decrease increasing speed ([5269f33](5269f33))
* **playback speed buttons:** label not updating when adjusting speed with scroll wheel ([a16cd44](a16cd44))
* **playback speed buttons:** label not updating when player speed changes ([a88d29d](a88d29d))
* video id obtaining ([8edf9a4](8edf9a4))

### Features

* automatically disable closed captions [#371](#371) ([00a4870](00a4870))
* copyTimestampUrlButton ([80c7685](80c7685))
* hide official artist videos from home page ([7e202f1](7e202f1))
* Playlist length bar [#542](#542) ([8ed563f](8ed563f))
* **playlist length:** watch time options ([6782340](6782340))
* **video history:** do not resume or track history on official artist channels ([60e7797](60e7797))

## Release Artifacts
| File Name | SHA-256 Hash |
| :--- | :---: |
| youtube-enhancer-v1.27.0-Chrome.zip | 18f54c95d20543efa191d0438daf9362b7a0b9a6060f3f011a6c699d6cbfb353 |
| youtube-enhancer-v1.27.0-Chromium.zip | 18f54c95d20543efa191d0438daf9362b7a0b9a6060f3f011a6c699d6cbfb353 |
| youtube-enhancer-v1.27.0-Edge.zip | 18f54c95d20543efa191d0438daf9362b7a0b9a6060f3f011a6c699d6cbfb353 |
| youtube-enhancer-v1.27.0-Firefox.zip | 9899180b25e1e74fd251de0516fd442b1bcbdd277fd8b7c12629a618474a9b16 |
@VampireChicken12 VampireChicken12 added released complete Use this label for a feature/bug issue that is complete but not released yet labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete Use this label for a feature/bug issue that is complete but not released yet released
Projects
Status: Done - Released
Development

No branches or pull requests

2 participants