swift-selection-search icon indicating copy to clipboard operation
swift-selection-search copied to clipboard

Bug: popup does not appear on Fosstodon

Open Jackymancs4 opened this issue 4 years ago • 6 comments

Describe the problem The popup does not appear on any page on https://fosstodon.org

How to reproduce the problem Steps to reproduce the behavior:

  1. Go to https://fosstodon.org/about
  2. Select any text
  3. The popup does not appear, but the scroll bar move, indicating that something has been appended on the bottom of the page (out of view)

Anything else you'd like to include Hello @CanisLupus Usually I'd take care of this myself, but I'm a little short on time. I briefly messed around with CSS but with no result. So, it appears that SSS fails on any Mastodon server using 3.2.0, while on https://mastodon.technology/about (that uses 3.1.x) it works normally. In any case, <sss-popup> tag is properly inserted, so I guess is strictly a styling issue. Thanks.

System info:

  • Browser: Firefox
  • Browser version: 79.0
  • System: macOS

Jackymancs4 avatar Aug 12 '20 11:08 Jackymancs4

Everything is working normally here.

ZIEXED avatar Aug 12 '20 14:08 ZIEXED

Everything is working normally here.

Can you be more specific about what is working and under which conditions?

Jackymancs4 avatar Aug 12 '20 14:08 Jackymancs4

Hey @Jackymancs4, for better or worse I can confirm that it happens on my end as well (Windows, FF 79). It's probably due to the website's content security policies, since this error appears in the console for me when the popup is supposed to appear:

Content Security Policy: The page's settings blocked the loading of a resource at inline ("style-src").

That's blocking the popup's CSS from working.

I thought I had solved this by modifying the CSP of pages when needed, so I'm not sure what is different with that site or what I'm doing wrong (or if something changed in Firefox itself). Doing the CSP modification is, as far as I know, the only way to avoid this problem, i.e. "consider addon rules more important than website rules, since addons represent the user". However, it's not working here. Hmm...

CanisLupus avatar Aug 13 '20 22:08 CanisLupus

I have also tried this on a clean FF profile with only SSS to see if it was some other extension also modifying the CSP and conflicting, but it still happens.

@ZIEXED Do you have any idea what could be different on your end?

CanisLupus avatar Aug 13 '20 22:08 CanisLupus

Sorry I forgot that I have CSP disabled here, I can see the problem after enabling it again.

ZIEXED avatar Aug 13 '20 22:08 ZIEXED

Ah, thanks for checking. :)

CanisLupus avatar Aug 13 '20 22:08 CanisLupus