Canop / Canop/miaou

Chat is empty when using ghostery or darkreader

Open
#97 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
553
Forks
73
PR merge metrics
No merged PRs in 30d

Description

The site load but all is empty for if any of [darkreader](https://addons.mozilla.org/en-US/firefox/addon/darkreader/) or [ghosterry](https://addons.mozilla.org/en-US/firefox/addon/ghostery/) are enable, console log when open https://miaou.dystroy.org/3490?broot:

```none
jQuery.Deferred exception: skin.stringToColour is not a function r@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:62285
md.addMessage@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:69724
chat.messagesIn/<@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:10760
chat.messagesIn@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:10580
chat.start@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:11562
@https://miaou.dystroy.org/static/pad.min.js?v=04:1:2183
miaou/<@https://miaou.dystroy.org/static/miaou.min.js?v=56:1:34
l@https://miaou.dystroy.org/static/jquery-3.3.1.min.js:2:29375
a/ https://miaou.dystroy.org/static/pad.min.js?v=04:1
miaou https://miaou.dystroy.org/static/miaou.min.js?v=56:1
jQuery 2
l
c

Uncaught TypeError: skin.stringToColour is not a function
r https://miaou.dystroy.org/static/miaou.min.js?v=56:1
addMessage https://miaou.dystroy.org/static/miaou.min.js?v=56:1
messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
onevent https://miaou.dystroy.org/socket.io/socket.io.js:8
onpacket https://miaou.dystroy.org/socket.io/socket.io.js:8
exports https://miaou.dystroy.org/socket.io/socket.io.js:8
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
ondecoded https://miaou.dystroy.org/socket.io/socket.io.js:6
exports https://miaou.dystroy.org/socket.io/socket.io.js:8
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
add https://miaou.dystroy.org/socket.io/socket.io.js:6
ondata https://miaou.dystroy.org/socket.io/socket.io.js:6
exports https://miaou.dystroy.org/socket.io/socket.io.js:8
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
onPacket https://miaou.dystroy.org/socket.io/socket.io.js:6
setTransport https://miaou.dystroy.org/socket.io/socket.io.js:6
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
onPacket https://miaou.dystroy.org/socket.io/socket.io.js:7
onData https://miaou.dystroy.org/socket.io/socket.io.js:7
onmessage https://miaou.dystroy.org/socket.io/socket.io.js:8

miaou.min.js:1:62285
r https://miaou.dystroy.org/static/miaou.min.js?v=56:1
addMessage https://miaou.dystroy.org/static/miaou.min.js?v=56:1
messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
forEach self-hosted:225
messagesIn https://miaou.dystroy.org/static/miaou.min.js?v=56:1
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
onevent https://miaou.dystroy.org/socket.io/socket.io.js:8
onpacket https://miaou.dystroy.org/socket.io/socket.io.js:8
exports https://miaou.dystroy.org/socket.io/socket.io.js:8
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
ondecoded https://miaou.dystroy.org/socket.io/socket.io.js:6
exports https://miaou.dystroy.org/socket.io/socket.io.js:8
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
add https://miaou.dystroy.org/socket.io/socket.io.js:6
ondata https://miaou.dystroy.org/socket.io/socket.io.js:6
exports https://miaou.dystroy.org/socket.io/socket.io.js:8
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
onPacket https://miaou.dystroy.org/socket.io/socket.io.js:6
setTransport https://miaou.dystroy.org/socket.io/socket.io.js:6
emit https://miaou.dystroy.org/socket.io/socket.io.js:6
onPacket https://miaou.dystroy.org/socket.io/socket.io.js:7
onData https://miaou.dystroy.org/socket.io/socket.io.js:7
onmessage https://miaou.dystroy.org/socket.io/socket.io.js:8

Uncaught DOMException: CSSStyleSheet.rules getter: Not allowed to access cross-origin stylesheet miaou.min.js:1
getCssValue https://miaou.dystroy.org/static/miaou.min.js?v=56:1
https://miaou.dystroy.org/static/miaou.min.js?v=56:1
miaou https://miaou.dystroy.org/static/miaou.min.js?v=56:1
jQuery 2

Some cookies are misusing the recommended “sameSite“ attribute 2
Cookie “io” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite socket.io
Cookie “io” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite socket.io
```

Firefox: 79.0 (64-bit)

Error log look the same for the two extensions when enable.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the empty chat at https://miaou.dystroy.org/3490?broot with Dark Reader or Ghostery enabled, then inspect the reported failure in static/miaou.min.js and the related startup path in static/pad.min.js. Confirm the cause of the skin.stringToColour error and verify that messages render without the TypeError when either extension is active.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.